From a15aa5c37375c7047a49d3ebd749736ad2d77b9c Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 26 Mar 2022 11:42:49 +0100 Subject: [PATCH] Fix modifying --- src/de/steamwar/lobby/portal/CommandPortal.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/lobby/portal/CommandPortal.java b/src/de/steamwar/lobby/portal/CommandPortal.java index 53e66f3..3dfe6ed 100644 --- a/src/de/steamwar/lobby/portal/CommandPortal.java +++ b/src/de/steamwar/lobby/portal/CommandPortal.java @@ -21,6 +21,7 @@ package de.steamwar.lobby.portal; import de.steamwar.comms.packets.ExecuteCommandPacket; import de.steamwar.lobby.LobbySystem; +import de.steamwar.lobby.command.ModifyCommand; import de.steamwar.lobby.listener.Portals; import org.bukkit.Location; import org.bukkit.entity.Player; @@ -79,7 +80,8 @@ public class CommandPortal implements PortalHandler { cmd.append(pieces[i]).append(parts[i+1].substring(1)); } - player.sendMessage("/" + cmd); + if(ModifyCommand.modifying(player)) + player.sendMessage("/" + cmd); new ExecuteCommandPacket(player, cmd.toString()).send(player); }