[R] 给主类改名的结果

This commit is contained in:
Taskeren 2019-07-10 22:49:25 +08:00
parent e1a6b0af5e
commit 17bc48bdc0
5 changed files with 15 additions and 15 deletions

View File

@ -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();
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<Boolean>() {
return Bukkit.getScheduler().callSyncMethod(NativeBotPlugin.nativebotJavaPlugin, new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
MinecraftPlugin.logger().info("[$] "+command);
NativeBotPlugin.logger().info("[$] "+command);
return Bukkit.dispatchCommand(Bukkit.getServer().getConsoleSender(), command);
}
}).get();

View File

@ -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;
}