Skip to content

Commit

Permalink
server_flagged: added negative flag support
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 17, 2022
1 parent 304f939 commit 4950c7f
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -552,7 +552,12 @@ else if (path.switch_ignoreCancelled != null) {
}
if (path.switch_serverFlagged != null) {
for (String flag : path.switch_serverFlagged) {
if (!DenizenCore.serverFlagMap.hasFlag(flag)) {
if (flag.startsWith("!")) {
if (DenizenCore.serverFlagMap.hasFlag(flag.substring(1))) {
return false;
}
}
else if (!DenizenCore.serverFlagMap.hasFlag(flag)) {
return false;
}
}
Expand Down

0 comments on commit 4950c7f

Please sign in to comment.