1
1
mirror of https://github.com/geekfrog/PermissionsTime.git synced 2025-09-09 15:30:45 +00:00

读取权限包配置

This commit is contained in:
GeekFrog
2017-07-10 10:45:18 +08:00
parent 8fd9e9774d
commit 75d0f202fb
11 changed files with 228 additions and 13 deletions

View File

@ -15,22 +15,24 @@ public class PluginMain extends JavaPlugin {
public static final String PLUGIN_NAME = "PermissionsTime";
public static final String PLUGIN_VERSION = "0.0.1";
public static final String PLUGIN_NAME_LOWER_CASE = PLUGIN_NAME.toLowerCase(Locale.ENGLISH);
public static final Logger LOG = Logger.getLogger(PluginMain.PLUGIN_NAME);
public static final Logger LOG = Logger.getLogger("Minecraft");
private static PluginMain pm = null;
private ConfigManager cm = null;
@Override
public void onEnable() {
PluginMain.pm = this;
pm = this;
cm = new ConfigManager();
registerListeners();
registerCommands();
cm = new ConfigManager();
pm.getServer().getConsoleSender().sendMessage(StrUtil.messageFormat(PluginCfg.PLUGIN_PREFIX + "==============================="));
pm.getServer().getConsoleSender().sendMessage(StrUtil.messageFormat(PluginCfg.PLUGIN_PREFIX));
pm.getServer().getConsoleSender().sendMessage(StrUtil.messageFormat(PluginCfg.PLUGIN_PREFIX + " " + PluginMain.PLUGIN_NAME + " v" + PluginMain.PLUGIN_VERSION));
pm.getServer().getConsoleSender().sendMessage(StrUtil.messageFormat(PluginCfg.PLUGIN_PREFIX + " 作者:宅宅蛙 QQ324747460"));
pm.getServer().getConsoleSender().sendMessage(StrUtil.messageFormat(PluginCfg.PLUGIN_PREFIX + " authorGeekFrog QQ324747460"));
pm.getServer().getConsoleSender().sendMessage(StrUtil.messageFormat(PluginCfg.PLUGIN_PREFIX + " https://github.com/geekfrog/PermissionsTime/ "));
pm.getServer().getConsoleSender().sendMessage(StrUtil.messageFormat(PluginCfg.PLUGIN_PREFIX));
pm.getServer().getConsoleSender().sendMessage(StrUtil.messageFormat(PluginCfg.PLUGIN_PREFIX + "==============================="));
}
public static PluginMain getInstance() {