Dieser Commit ist enthalten in:
Ursprung
52da054d5f
Commit
60f0a42337
@ -87,6 +87,9 @@ public class WorldInteraction extends BasicListener {
|
|||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void handleGoldenPressurePlate(PlayerInteractEvent event) {
|
public void handleGoldenPressurePlate(PlayerInteractEvent event) {
|
||||||
|
if(!ModifyCommand.modifying(event.getPlayer()))
|
||||||
|
event.setCancelled(true);
|
||||||
|
|
||||||
if(!event.hasBlock() || event.getAction() != Action.PHYSICAL || event.getClickedBlock().getType() != Material.LIGHT_WEIGHTED_PRESSURE_PLATE)
|
if(!event.hasBlock() || event.getAction() != Action.PHYSICAL || event.getClickedBlock().getType() != Material.LIGHT_WEIGHTED_PRESSURE_PLATE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren