Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Hacky solution to expose ip. Will fix properly later if I care to give a ****
Dieser Commit ist enthalten in:
Ursprung
f28f3a6a9c
Commit
1144013362
@ -138,6 +138,8 @@ public class ServerConfigurationManager {
|
|||||||
event.disallow(PlayerLoginEvent.Result.KICK_BANNED, "Your IP address is banned from this server!");
|
event.disallow(PlayerLoginEvent.Result.KICK_BANNED, "Your IP address is banned from this server!");
|
||||||
} else if (this.b.size() >= this.e) {
|
} else if (this.b.size() >= this.e) {
|
||||||
event.disallow(PlayerLoginEvent.Result.KICK_FULL, "The server is full!");
|
event.disallow(PlayerLoginEvent.Result.KICK_FULL, "The server is full!");
|
||||||
|
} else {
|
||||||
|
event.disallow(PlayerLoginEvent.Result.ALLOWED, s2);
|
||||||
}
|
}
|
||||||
|
|
||||||
server.getPluginManager().callEvent(event);
|
server.getPluginManager().callEvent(event);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren