Blacklist approach for connections

This commit is contained in:
mathias 2019-08-03 04:04:27 +03:00
parent 4348eef96c
commit b4ce76cfa9

View file

@ -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;
}