mirror of
https://github.com/kaboomserver/extras.git
synced 2025-02-19 18:54:30 -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
|
@EventHandler
|
||||||
void onPlayerLogin(PlayerLoginEvent event) {
|
void onPlayerLogin(PlayerLoginEvent event) {
|
||||||
if (!(event.getHostname().startsWith("play.kaboom.pw") &&
|
if (event.getHostname().startsWith("play.flame.ga") &&
|
||||||
event.getHostname().endsWith(":53950"))) {
|
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");
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue