diff --git a/plumbot-bukkit/src/main/java/me/regadpole/plumbot/event/kook/KookEvent.java b/plumbot-bukkit/src/main/java/me/regadpole/plumbot/event/kook/KookEvent.java index 58f9807..e4026b8 100644 --- a/plumbot-bukkit/src/main/java/me/regadpole/plumbot/event/kook/KookEvent.java +++ b/plumbot-bukkit/src/main/java/me/regadpole/plumbot/event/kook/KookEvent.java @@ -289,7 +289,7 @@ public void onChannelMessageReceive(ChannelMessageEvent e) { e.getMessage().reply("id不能为空"); return; } - if(Config.getAdmins().contains(senderID)) { + if(admins.contains(senderID)) { if (!WhitelistHelper.checkIDNotExist(PlayerName)) { e.getMessage().reply("绑定失败,此ID已绑定用户"+DatabaseManager.getBindId(PlayerName, DataBase.type().toLowerCase(), PlumBot.getDatabase())); return; @@ -312,7 +312,7 @@ public void onChannelMessageReceive(ChannelMessageEvent e) { }); return; } else if (para.length==2) { - if(Config.getAdmins().contains(senderID)) { + if(admins.contains(senderID)) { if (!WhitelistHelper.checkIDNotExist(para[1])) { e.getMessage().reply("绑定失败,此ID已绑定用户"+DatabaseManager.getBindId(para[1], DataBase.type().toLowerCase(), PlumBot.getDatabase())); return;