From 5bc1a586f83dcd70e3f4063db40a529869d0ba44 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Thu, 28 Jul 2016 00:10:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B9=E6=B3=95=E9=9D=99=E6=80=81?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/pw/yumc/YumCore/bukkit/P.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/pw/yumc/YumCore/bukkit/P.java b/src/main/java/pw/yumc/YumCore/bukkit/P.java index fb97f74..1fe9f34 100644 --- a/src/main/java/pw/yumc/YumCore/bukkit/P.java +++ b/src/main/java/pw/yumc/YumCore/bukkit/P.java @@ -37,7 +37,7 @@ public class P { * * @return 插件命令 */ - public PluginCommand getCommand(final String name) { + public static PluginCommand getCommand(final String name) { return instance.getCommand(name); } @@ -45,35 +45,35 @@ public class P { * @return 获得插件配置文件 */ @SuppressWarnings("unchecked") - public FC getConfig() { + public static FC getConfig() { return (FC) instance.getConfig(); } /** * @return 获得插件文件夹 */ - public final File getDataFolder() { + public static final File getDataFolder() { return instance.getDataFolder(); } /** * @return 获得插件描述文件 */ - public final PluginDescriptionFile getDescription() { + public static final PluginDescriptionFile getDescription() { return instance.getDescription(); } /** * @return 获得插件日志器 */ - public final Logger getLogger() { + public static final Logger getLogger() { return instance.getLogger(); } /** * @return 插件名称 */ - public final String getName() { + public static final String getName() { return instance.getName(); } @@ -81,14 +81,14 @@ public class P { * @return 获得插件配置文件 */ @SuppressWarnings("unchecked") - public PI getPlugin() { + public static PI getPlugin() { return (PI) instance; } /** * @return 插件是否已启用 */ - public final boolean isEnabled() { + public static final boolean isEnabled() { return instance.isEnabled(); }