SPIGOT-6605: Add method to access value of enforce-whitelist

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-06-26 09:58:34 +10:00
parent ae7ed4667b
commit 80472fd082

View File

@ -1518,6 +1518,16 @@ public final class CraftServer implements Server {
console.setHasWhitelist(value);
}
@Override
public boolean isWhitelistEnforced() {
return console.aN();
}
@Override
public void setWhitelistEnforced(boolean value) {
console.h(value);
}
@Override
public Set<OfflinePlayer> getWhitelistedPlayers() {
Set<OfflinePlayer> result = new LinkedHashSet<OfflinePlayer>();