From 5de365d48557b6222a1f4f06d7332a33a131956c Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 26 Apr 2020 09:17:31 +0200 Subject: [PATCH] Adding a first joined message + removing 1.12 recommedation Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/listeners/ConnectionListener.java | 4 ---- src/de/steamwar/bungeecore/sql/SteamwarUser.java | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/de/steamwar/bungeecore/listeners/ConnectionListener.java b/src/de/steamwar/bungeecore/listeners/ConnectionListener.java index 7da2da26..ddba2827 100644 --- a/src/de/steamwar/bungeecore/listeners/ConnectionListener.java +++ b/src/de/steamwar/bungeecore/listeners/ConnectionListener.java @@ -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. */ diff --git a/src/de/steamwar/bungeecore/sql/SteamwarUser.java b/src/de/steamwar/bungeecore/sql/SteamwarUser.java index b0320b51..e37255ad 100644 --- a/src/de/steamwar/bungeecore/sql/SteamwarUser.java +++ b/src/de/steamwar/bungeecore/sql/SteamwarUser.java @@ -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;