Dieser Commit ist enthalten in:
Ursprung
c304e77547
Commit
f3874cf9de
@ -75,28 +75,7 @@ public class WorldInteraction extends BasicListener {
|
||||
|
||||
@EventHandler
|
||||
public void onBlockPhysics(BlockPhysicsEvent event) {
|
||||
if (event.getSourceBlock().getType().name().endsWith("_PRESSURE_PLATE")) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
if (event.getSourceBlock().getType().name().endsWith("_BUTTON")) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
if (event.getSourceBlock().getType() == Material.LEVER) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onPlayerInteract(PlayerInteractEvent event) {
|
||||
if(ModifyCommand.modifying(event.getPlayer())) {
|
||||
return;
|
||||
}
|
||||
if (event.getClickedBlock() == null) {
|
||||
return;
|
||||
}
|
||||
if (event.getClickedBlock().getType().name().endsWith("_DOOR")) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren