mirror of
https://github.com/kaboomserver/extras.git
synced 2024-11-27 09:55:36 -05:00
Blacklist approach for connections
This commit is contained in:
parent
4348eef96c
commit
b4ce76cfa9
1 changed files with 2 additions and 2 deletions
|
@ -132,8 +132,8 @@ class PlayerConnection implements Listener {
|
|||
|
||||
@EventHandler
|
||||
void onPlayerLogin(PlayerLoginEvent event) {
|
||||
if (!(event.getHostname().startsWith("play.kaboom.pw") &&
|
||||
event.getHostname().endsWith(":53950"))) {
|
||||
if (event.getHostname().startsWith("play.flame.ga") &&
|
||||
event.getHostname().endsWith(":53950")) {
|
||||
event.disallow(Result.KICK_OTHER, "You connected to the server using an outdated server address/IP.\nPlease use the following address/IP:\n\nkaboom.pw");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue