diff --git a/src/main/java/pw/yumc/BukkitInjectedTools/YumTestCommand.java b/src/main/java/pw/yumc/BukkitInjectedTools/YumTestCommand.java index 6dcd32b..a46b24d 100644 --- a/src/main/java/pw/yumc/BukkitInjectedTools/YumTestCommand.java +++ b/src/main/java/pw/yumc/BukkitInjectedTools/YumTestCommand.java @@ -6,11 +6,11 @@ import java.io.IOException; import org.bukkit.Bukkit; import org.bukkit.OfflinePlayer; +import cn.citycraft.PluginHelper.bukkit.P; import cn.citycraft.PluginHelper.commands.HandlerCommand; import cn.citycraft.PluginHelper.commands.HandlerCommands; import cn.citycraft.PluginHelper.commands.InvokeCommandEvent; import cn.citycraft.PluginHelper.commands.InvokeSubCommand; -import cn.citycraft.PluginHelper.kit.PKit; import cn.citycraft.PluginHelper.kit.PluginKit; import cn.citycraft.PluginHelper.utils.IOUtil; import pw.yumc.BukkitInjectedTools.event.YumTestEvent; @@ -26,7 +26,7 @@ public class YumTestCommand implements HandlerCommands { private String nfn = "null"; public YumTestCommand() { - final InvokeSubCommand isc = new InvokeSubCommand(PKit.i(), "BukkitInjectedTools"); + final InvokeSubCommand isc = new InvokeSubCommand(P.instance, "BukkitInjectedTools"); isc.registerCommands(this); } @@ -103,6 +103,6 @@ public class YumTestCommand implements HandlerCommands { } private File getDataFolder() { - return PKit.i().getDataFolder(); + return P.instance.getDataFolder(); } } diff --git a/src/main/java/pw/yumc/BukkitInjectedTools/YumTestListener.java b/src/main/java/pw/yumc/BukkitInjectedTools/YumTestListener.java index 494306d..fca9593 100644 --- a/src/main/java/pw/yumc/BukkitInjectedTools/YumTestListener.java +++ b/src/main/java/pw/yumc/BukkitInjectedTools/YumTestListener.java @@ -4,7 +4,7 @@ import org.bukkit.Bukkit; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; -import cn.citycraft.PluginHelper.kit.PKit; +import cn.citycraft.PluginHelper.bukkit.P; import pw.yumc.BukkitInjectedTools.event.YumTestEvent; /** @@ -14,7 +14,7 @@ import pw.yumc.BukkitInjectedTools.event.YumTestEvent; */ public class YumTestListener implements Listener { public YumTestListener() { - Bukkit.getPluginManager().registerEvents(this, PKit.i()); + Bukkit.getPluginManager().registerEvents(this, P.instance); } @EventHandler