Template
mirror of
https://github.com/LOOHP/Limbo.git
synced 2026-10-22 12:38:55 +00:00
change allowlist implementation to HashMap & don't leak the implementation outside of the ServerProperties class
This commit is contained in:
@@ -442,13 +442,11 @@ public class Limbo {
|
||||
return true;
|
||||
}
|
||||
|
||||
for (UUID allowedUuid : properties.getAllowlist()) {
|
||||
if (requestedUuid.equals(allowedUuid)) {
|
||||
if(!properties.isReducedDebugInfo()) {
|
||||
Limbo.getInstance().getConsole().sendMessage(String.format("allowlist: %s allowed", requestedUuid.toString()));
|
||||
}
|
||||
return true;
|
||||
if (properties.uuidIsAllowed(requestedUuid)) {
|
||||
if(!properties.isReducedDebugInfo()) {
|
||||
Limbo.getInstance().getConsole().sendMessage(String.format("allowlist: %s allowed", requestedUuid.toString()));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if(!properties.isReducedDebugInfo()) {
|
||||
|
||||
Reference in New Issue
Block a user