mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:31:29 +01:00
SPIGOT-6605: Add method to access value of enforce-whitelist
By: md_5 <git@md-5.net>
This commit is contained in:
parent
ae7ed4667b
commit
80472fd082
@ -1518,6 +1518,16 @@ public final class CraftServer implements Server {
|
|||||||
console.setHasWhitelist(value);
|
console.setHasWhitelist(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isWhitelistEnforced() {
|
||||||
|
return console.aN();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setWhitelistEnforced(boolean value) {
|
||||||
|
console.h(value);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<OfflinePlayer> getWhitelistedPlayers() {
|
public Set<OfflinePlayer> getWhitelistedPlayers() {
|
||||||
Set<OfflinePlayer> result = new LinkedHashSet<OfflinePlayer>();
|
Set<OfflinePlayer> result = new LinkedHashSet<OfflinePlayer>();
|
||||||
|
Loading…
Reference in New Issue
Block a user