feat: 添加启用的Hook

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-12-25 22:01:21 +08:00
parent 516cd09daa
commit 0649ad6490

View File

@ -39,12 +39,15 @@ public class MiaoLobby extends JavaPlugin implements CommandExecutor {
Bukkit.getMessenger().registerOutgoingPluginChannel(this, "BungeeCord"); Bukkit.getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
if (config.AutoTP) { if (config.AutoTP) {
new LoginHook(); new LoginHook();
Log.info("已配置为自动传送模式!");
} else if (config.LoginAutoTP) { } else if (config.LoginAutoTP) {
if (Bukkit.getPluginManager().isPluginEnabled("AuthMe")) { if (Bukkit.getPluginManager().isPluginEnabled("AuthMe")) {
new AuthMeHook(); new AuthMeHook();
Log.info("已配置为AuthMe登录传送模式!");
} }
if (Bukkit.getPluginManager().isPluginEnabled("VBossAuth")) { if (Bukkit.getPluginManager().isPluginEnabled("VBossAuth")) {
new VBossAuthHook(); new VBossAuthHook();
Log.info("已配置为VBossAuth登录传送模式!");
} }
} }
new Statistics(); new Statistics();