mirror of
https://e.coding.net/circlecloud/BukkitInjectedTools.git
synced 2024-11-22 01:48:45 +00:00
feat: 更新类库导入
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
f0f16e3779
commit
2fea72976d
@ -6,11 +6,11 @@ import java.io.IOException;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.OfflinePlayer;
|
import org.bukkit.OfflinePlayer;
|
||||||
|
|
||||||
|
import cn.citycraft.PluginHelper.bukkit.P;
|
||||||
import cn.citycraft.PluginHelper.commands.HandlerCommand;
|
import cn.citycraft.PluginHelper.commands.HandlerCommand;
|
||||||
import cn.citycraft.PluginHelper.commands.HandlerCommands;
|
import cn.citycraft.PluginHelper.commands.HandlerCommands;
|
||||||
import cn.citycraft.PluginHelper.commands.InvokeCommandEvent;
|
import cn.citycraft.PluginHelper.commands.InvokeCommandEvent;
|
||||||
import cn.citycraft.PluginHelper.commands.InvokeSubCommand;
|
import cn.citycraft.PluginHelper.commands.InvokeSubCommand;
|
||||||
import cn.citycraft.PluginHelper.kit.PKit;
|
|
||||||
import cn.citycraft.PluginHelper.kit.PluginKit;
|
import cn.citycraft.PluginHelper.kit.PluginKit;
|
||||||
import cn.citycraft.PluginHelper.utils.IOUtil;
|
import cn.citycraft.PluginHelper.utils.IOUtil;
|
||||||
import pw.yumc.BukkitInjectedTools.event.YumTestEvent;
|
import pw.yumc.BukkitInjectedTools.event.YumTestEvent;
|
||||||
@ -26,7 +26,7 @@ public class YumTestCommand implements HandlerCommands {
|
|||||||
private String nfn = "null";
|
private String nfn = "null";
|
||||||
|
|
||||||
public YumTestCommand() {
|
public YumTestCommand() {
|
||||||
final InvokeSubCommand isc = new InvokeSubCommand(PKit.i(), "BukkitInjectedTools");
|
final InvokeSubCommand isc = new InvokeSubCommand(P.instance, "BukkitInjectedTools");
|
||||||
isc.registerCommands(this);
|
isc.registerCommands(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,6 +103,6 @@ public class YumTestCommand implements HandlerCommands {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private File getDataFolder() {
|
private File getDataFolder() {
|
||||||
return PKit.i().getDataFolder();
|
return P.instance.getDataFolder();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import org.bukkit.Bukkit;
|
|||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
|
|
||||||
import cn.citycraft.PluginHelper.kit.PKit;
|
import cn.citycraft.PluginHelper.bukkit.P;
|
||||||
import pw.yumc.BukkitInjectedTools.event.YumTestEvent;
|
import pw.yumc.BukkitInjectedTools.event.YumTestEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -14,7 +14,7 @@ import pw.yumc.BukkitInjectedTools.event.YumTestEvent;
|
|||||||
*/
|
*/
|
||||||
public class YumTestListener implements Listener {
|
public class YumTestListener implements Listener {
|
||||||
public YumTestListener() {
|
public YumTestListener() {
|
||||||
Bukkit.getPluginManager().registerEvents(this, PKit.i());
|
Bukkit.getPluginManager().registerEvents(this, P.instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
Loading…
Reference in New Issue
Block a user