SteamWar/BungeeCore
Archiviert
13
2

Adding a first joined message + removing 1.12 recommedation

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-04-26 09:17:31 +02:00
Ursprung 9ca9fcf38f
Commit 5de365d485
2 geänderte Dateien mit 1 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -86,10 +86,6 @@ public class ConnectionListener extends BasicListener {
} }
} }
} }
if(player.getPendingConnection().getVersion() < 335 || player.getPendingConnection().getVersion() > 340){
player.sendMessage(BungeeCore.CHAT_PREFIX + "§cWir empfehlen die Minecraft-Version 1.12.2");
}
} }
/** To redirect players to the lobby in case of server closure. */ /** To redirect players to the lobby in case of server closure. */

Datei anzeigen

@ -62,6 +62,7 @@ public class SteamwarUser {
user = dbInit(SQL.select("SELECT * FROM UserData WHERE UUID = ?", connection.getUniqueId().toString())); user = dbInit(SQL.select("SELECT * FROM UserData WHERE UUID = ?", connection.getUniqueId().toString()));
if(user == null) if(user == null)
throw new SecurityException("user == null"); throw new SecurityException("user == null");
BungeeCore.broadcast(BungeeCore.CHAT_PREFIX + "§7Begrüßt alle mal §e" + connection.getName() + " §7auf dem Server§8!");
} }
return user; return user;