From 1a91e561faf8c282c195ae73730f2fab1243c0f8 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 7 Jun 2022 22:38:08 +0200 Subject: [PATCH] Disable SWTSI for now --- src/de/steamwar/bungeecore/commands/TeamCommand.java | 10 ++++++++++ src/de/steamwar/messages/BungeeCore.properties | 2 ++ src/de/steamwar/messages/BungeeCore_de.properties | 2 ++ 3 files changed, 14 insertions(+) diff --git a/src/de/steamwar/bungeecore/commands/TeamCommand.java b/src/de/steamwar/bungeecore/commands/TeamCommand.java index bde57e0..a6f4acc 100644 --- a/src/de/steamwar/bungeecore/commands/TeamCommand.java +++ b/src/de/steamwar/bungeecore/commands/TeamCommand.java @@ -565,6 +565,11 @@ public class TeamCommand extends BasicCommand { } private void tp(ProxiedPlayer player, SteamwarUser user, Team team, String[] args){ + if (!user.getUserGroup().isAdminGroup()) { + Message.send("DISABLED", player); + return; + } + if(args.length == 1){ if(notInTeam(player, user)) return; @@ -598,6 +603,11 @@ public class TeamCommand extends BasicCommand { } private void server(ProxiedPlayer player, SteamwarUser user, Team team, String[] args){ + if (!user.getUserGroup().isAdminGroup()) { + Message.send("DISABLED", player); + return; + } + if(notLeader(player, user, team)) return; if (user.isPunishedWithMessage(ChatSender.of(player), Punishment.PunishmentType.NoTeamServer)) { diff --git a/src/de/steamwar/messages/BungeeCore.properties b/src/de/steamwar/messages/BungeeCore.properties index a71a2b9..0ee445c 100644 --- a/src/de/steamwar/messages/BungeeCore.properties +++ b/src/de/steamwar/messages/BungeeCore.properties @@ -13,6 +13,8 @@ STEAMWAR_BRAND=§eSteam§8War.de §7({0}) §r<- §e{1} §7({2})§r DEV_NO_SERVER=§cThe server is currently not available. DEV_UNKNOWN_SERVER=§cPlease specify a dev server. +DISABLED=§cCurrently disabled. + #ModLoader blocker MODLOADER_INSTALLED=§7You play with §e{0} §7client. Therefore you can't join arenas. MODLOADER_INSTALLED_FABRIC=§7You play with §e{0} §7client. You can only join arenas with the SteamWar Modsender installed. diff --git a/src/de/steamwar/messages/BungeeCore_de.properties b/src/de/steamwar/messages/BungeeCore_de.properties index 830ae45..66d79db 100644 --- a/src/de/steamwar/messages/BungeeCore_de.properties +++ b/src/de/steamwar/messages/BungeeCore_de.properties @@ -10,6 +10,8 @@ INVALID_TIME=§cUngültige Zeitangabe. DEV_NO_SERVER=§cDer Server ist derzeit nicht erreichbar. DEV_UNKNOWN_SERVER=§cBitte gib einen DevServer an. +DISABLED=§cDerzeit deaktiviert. + #ModLoader blocker MODLOADER_INSTALLED=§7Du spielst mit §e{0} §7Client. Daher kannst du keinen Arenen beitreten. MODLOADER_INSTALLED_FABRIC=§7Du spielst mit §e{0} §7Client. Nur mit dem SteamWarModSender kannst du Arenen beitreten.