From 006e0c854a84d19d65cb49f19f541a6055d2060f Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Sat, 7 May 2022 15:12:54 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Esrc/de/steamwar/lobby/command/ModifyCo?= =?UTF-8?q?mmand.java=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/de/steamwar/lobby/command/ModifyCommand.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/de/steamwar/lobby/command/ModifyCommand.java b/src/de/steamwar/lobby/command/ModifyCommand.java index ba04ac4..e16f9ac 100644 --- a/src/de/steamwar/lobby/command/ModifyCommand.java +++ b/src/de/steamwar/lobby/command/ModifyCommand.java @@ -64,6 +64,10 @@ public class ModifyCommand extends SWCommand implements Listener { @Register("waitinghallspawn") public void setWaitingHallSpawn(Player player) { + SteamwarUser user = SteamwarUser.get(player.getUniqueId()); + if(!user.getUserGroup().isTeamGroup()) + return; + LobbySystem.config().setWaitingHallSpawn(player.getLocation()); } }