geforkt von SteamWar/BungeeCore
Merge branch 'firstJoinedMessage' of SteamWar/BungeeCore into master
Dieser Commit ist enthalten in:
Commit
6fb4866a4e
@ -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. */
|
||||
|
@ -62,6 +62,7 @@ public class SteamwarUser {
|
||||
user = dbInit(SQL.select("SELECT * FROM UserData WHERE UUID = ?", connection.getUniqueId().toString()));
|
||||
if(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;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren