mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 21:17:00 +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
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue