mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-22 18:09:06 +00:00
Added deprecated dummy methods to support current version of DiscordSRV
This commit is contained in:
parent
97f49ba1df
commit
48571bb5ef
@ -43,6 +43,7 @@ import mineverse.Aust1n46.chat.api.MineverseChatAPI;
|
||||
import mineverse.Aust1n46.chat.api.MineverseChatPlayer;
|
||||
import mineverse.Aust1n46.chat.api.events.VentureChatEvent;
|
||||
import mineverse.Aust1n46.chat.channel.ChatChannel;
|
||||
import mineverse.Aust1n46.chat.channel.ChatChannelInfo;
|
||||
//import mineverse.Aust1n46.chat.command.CCommand;
|
||||
import mineverse.Aust1n46.chat.command.MineverseCommand;
|
||||
import mineverse.Aust1n46.chat.command.MineverseCommandExecutor;
|
||||
@ -172,9 +173,14 @@ public class MineverseChat extends JavaPlugin implements PluginMessageListener {
|
||||
private LogLevels curLogLevel;
|
||||
|
||||
public long LINELENGTH = 40;
|
||||
|
||||
|
||||
// DiscordSRV backwards compatibility
|
||||
@Deprecated
|
||||
public static ChatChannelInfo ccInfo;
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
ccInfo = new ChatChannelInfo();
|
||||
try {
|
||||
Bukkit.getConsoleSender().sendMessage(Format.FormatStringAll("&8[&eVentureChat&8]&e - Initializing..."));
|
||||
if(!getDataFolder().exists()) {
|
||||
|
@ -0,0 +1,17 @@
|
||||
package mineverse.Aust1n46.chat.channel;
|
||||
|
||||
import mineverse.Aust1n46.chat.utilities.Format;
|
||||
|
||||
public class ChatChannelInfo {
|
||||
// DiscordSRV backwards compatibility
|
||||
@Deprecated
|
||||
public String FilterChat(String msg) {
|
||||
return Format.FilterChat(msg);
|
||||
}
|
||||
|
||||
// DiscordSRV backwards compatibility
|
||||
@Deprecated
|
||||
public ChatChannel getChannelInfo(String channel) {
|
||||
return ChatChannel.getChannel(channel);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user