13
0

Hotfix WorldInteraction
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-03-29 18:16:25 +02:00
Ursprung 2762af4a0a
Commit e79826c8d8

Datei anzeigen

@ -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);
}
}