From 2fea72976d04ff4c1d660084b4310fad30e30de7 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Sat, 23 Jul 2016 14:37:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=B1=BB=E5=BA=93?= =?UTF-8?q?=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- .../java/pw/yumc/BukkitInjectedTools/YumTestCommand.java | 6 +++--- .../java/pw/yumc/BukkitInjectedTools/YumTestListener.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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