diff --git a/src/main/java/ren/taske/nativebot/bot/chatting/Chatting.java b/src/main/java/ren/taske/nativebot/bot/chatting/Chatting.java index 5f59e1a..29f32f6 100644 --- a/src/main/java/ren/taske/nativebot/bot/chatting/Chatting.java +++ b/src/main/java/ren/taske/nativebot/bot/chatting/Chatting.java @@ -8,7 +8,7 @@ import cc.moecraft.icq.event.events.message.EventMessage; import cc.moecraft.icq.user.User; import cc.moecraft.icq.utils.CQUtils; import cn.glycol.t18n.I18n; -import ren.taske.nativebot.MinecraftPlugin; +import ren.taske.nativebot.NativeBotPlugin; import ren.taske.nativebot.commons.Config; import ren.taske.nativebot.core.NativeBot; import ren.taske.nativebot.core.profile.UserMinecraft; @@ -17,10 +17,10 @@ import ren.taske.nativebot.util.MessageLib; public class Chatting { - protected final MinecraftPlugin plugin; + protected final NativeBotPlugin plugin; protected final NativeBot nativebot; - public Chatting(MinecraftPlugin plugin) { + public Chatting(NativeBotPlugin plugin) { this.plugin = plugin; this.nativebot = plugin.getBot(); } diff --git a/src/main/java/ren/taske/nativebot/bot/chatting/MinecraftMessage.java b/src/main/java/ren/taske/nativebot/bot/chatting/MinecraftMessage.java index 436c25b..a03d75d 100644 --- a/src/main/java/ren/taske/nativebot/bot/chatting/MinecraftMessage.java +++ b/src/main/java/ren/taske/nativebot/bot/chatting/MinecraftMessage.java @@ -4,13 +4,13 @@ import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.AsyncPlayerChatEvent; -import ren.taske.nativebot.MinecraftPlugin; +import ren.taske.nativebot.NativeBotPlugin; public class MinecraftMessage implements Listener { - protected final MinecraftPlugin plugin; + protected final NativeBotPlugin plugin; - public MinecraftMessage(MinecraftPlugin plugin) { + public MinecraftMessage(NativeBotPlugin plugin) { this.plugin = plugin; } diff --git a/src/main/java/ren/taske/nativebot/bot/chatting/TencentMessage.java b/src/main/java/ren/taske/nativebot/bot/chatting/TencentMessage.java index 5396a37..4e5036e 100644 --- a/src/main/java/ren/taske/nativebot/bot/chatting/TencentMessage.java +++ b/src/main/java/ren/taske/nativebot/bot/chatting/TencentMessage.java @@ -3,13 +3,13 @@ package ren.taske.nativebot.bot.chatting; import cc.moecraft.icq.event.EventHandler; import cc.moecraft.icq.event.IcqListener; import cc.moecraft.icq.event.events.message.EventMessage; -import ren.taske.nativebot.MinecraftPlugin; +import ren.taske.nativebot.NativeBotPlugin; public class TencentMessage extends IcqListener { - protected final MinecraftPlugin plugin; + protected final NativeBotPlugin plugin; - public TencentMessage(MinecraftPlugin plugin) { + public TencentMessage(NativeBotPlugin plugin) { this.plugin = plugin; } diff --git a/src/main/java/ren/taske/nativebot/bot/command/CommandConsole.java b/src/main/java/ren/taske/nativebot/bot/command/CommandConsole.java index 7f73ae8..9890651 100644 --- a/src/main/java/ren/taske/nativebot/bot/command/CommandConsole.java +++ b/src/main/java/ren/taske/nativebot/bot/command/CommandConsole.java @@ -10,7 +10,7 @@ import org.bukkit.command.CommandSender; import cc.moecraft.icq.event.events.message.EventMessage; import cc.moecraft.icq.user.User; import cn.glycol.t18n.I18n; -import ren.taske.nativebot.MinecraftPlugin; +import ren.taske.nativebot.NativeBotPlugin; import ren.taske.nativebot.commons.Reference; public class CommandConsole extends CommandBase { @@ -45,10 +45,10 @@ public class CommandConsole extends CommandBase { public static Boolean callSyncDispatch(CommandSender sender, String command) { try { - return Bukkit.getScheduler().callSyncMethod(MinecraftPlugin.nativebotJavaPlugin, new Callable() { + return Bukkit.getScheduler().callSyncMethod(NativeBotPlugin.nativebotJavaPlugin, new Callable() { @Override public Boolean call() throws Exception { - MinecraftPlugin.logger().info("[$] "+command); + NativeBotPlugin.logger().info("[$] "+command); return Bukkit.dispatchCommand(Bukkit.getServer().getConsoleSender(), command); } }).get(); diff --git a/src/main/java/ren/taske/nativebot/minecraft/command/CommandQQ.java b/src/main/java/ren/taske/nativebot/minecraft/command/CommandQQ.java index 77d66ab..9a97d4e 100644 --- a/src/main/java/ren/taske/nativebot/minecraft/command/CommandQQ.java +++ b/src/main/java/ren/taske/nativebot/minecraft/command/CommandQQ.java @@ -6,14 +6,14 @@ import org.bukkit.command.CommandSender; import cn.glycol.t18n.I18n; import ren.taske.data.util.ParseUtil; -import ren.taske.nativebot.MinecraftPlugin; +import ren.taske.nativebot.NativeBotPlugin; import ren.taske.nativebot.core.profile.UserMinecraft; public class CommandQQ implements CommandExecutor { - protected final MinecraftPlugin plugin; + protected final NativeBotPlugin plugin; - public CommandQQ(MinecraftPlugin plugin) { + public CommandQQ(NativeBotPlugin plugin) { this.plugin = plugin; }