From e79826c8d846ee5ee8b075ad19706ee1204b6ebd Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 29 Mar 2022 18:16:25 +0200 Subject: [PATCH] Hotfix WorldInteraction --- src/de/steamwar/lobby/listener/WorldInteraction.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/de/steamwar/lobby/listener/WorldInteraction.java b/src/de/steamwar/lobby/listener/WorldInteraction.java index 90207ea..b4c439f 100644 --- a/src/de/steamwar/lobby/listener/WorldInteraction.java +++ b/src/de/steamwar/lobby/listener/WorldInteraction.java @@ -34,6 +34,7 @@ import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.event.entity.FoodLevelChangeEvent; import org.bukkit.event.hanging.HangingBreakByEntityEvent; import org.bukkit.event.hanging.HangingBreakEvent; +import org.bukkit.event.player.PlayerArmorStandManipulateEvent; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.event.server.MapInitializeEvent; import org.bukkit.util.Vector; @@ -101,5 +102,11 @@ public class WorldInteraction extends BasicListener { public void onBlockPhysics(BlockPhysicsEvent event) { event.setCancelled(true); } + + @EventHandler + public void onPlayerArmorStandManipulate(PlayerArmorStandManipulateEvent event) { + if(!ModifyCommand.modifying(event.getPlayer())) + event.setCancelled(true); + } }