forked from SteamWar/SteamWar
Fix Check and CheckCommand permission
This commit is contained in:
@@ -85,7 +85,6 @@ public class CheckCommand extends SWCommand {
|
||||
if (user.perms().contains(UserPerm.CHECK)) return true;
|
||||
return GameModeConfig.getAll()
|
||||
.stream()
|
||||
.filter(GameModeConfig::isActive)
|
||||
.anyMatch(gameMode -> gameMode.Checkers.contains(user.getId()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user