Archiviert
1
0

Merge branch 'firstJoinedMessage' of SteamWar/BungeeCore into master

Dieser Commit ist enthalten in:
Lixfel 2020-04-28 09:23:07 +02:00 committet von Gitea
Commit 6fb4866a4e
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;