Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RegadPoleCN committed Jun 26, 2024
1 parent 384e6a5 commit 46bf9c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 46bf9c8

Please sign in to comment.