mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Hacky solution to expose ip. Will fix properly later if I care to give a ****
This commit is contained in:
parent
f28f3a6a9c
commit
1144013362
@ -138,6 +138,8 @@ public class ServerConfigurationManager {
|
||||
event.disallow(PlayerLoginEvent.Result.KICK_BANNED, "Your IP address is banned from this server!");
|
||||
} else if (this.b.size() >= this.e) {
|
||||
event.disallow(PlayerLoginEvent.Result.KICK_FULL, "The server is full!");
|
||||
} else {
|
||||
event.disallow(PlayerLoginEvent.Result.ALLOWED, s2);
|
||||
}
|
||||
|
||||
server.getPluginManager().callEvent(event);
|
||||
|
Loading…
Reference in New Issue
Block a user