mirror of
https://github.com/kaboomserver/extras.git
synced 2025-02-11 11:40:19 +00:00
PlayerConnection.java: Remove hostname check for play.flame.ga
flame.ga is no longer a valid domain.
This commit is contained in:
parent
8fdf9b227a
commit
3d1f8e5247
1 changed files with 0 additions and 6 deletions
|
@ -84,12 +84,6 @@ public final class PlayerConnection implements Listener {
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
void onPlayerLogin(final PlayerLoginEvent event) {
|
void onPlayerLogin(final PlayerLoginEvent event) {
|
||||||
if (event.getHostname().startsWith("play.flame.ga")
|
|
||||||
&& event.getHostname().endsWith(":25565")) {
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!ENABLE_JOIN_RESTRICTIONS) {
|
if (!ENABLE_JOIN_RESTRICTIONS) {
|
||||||
event.allow();
|
event.allow();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue