Fix Autoloader load at Observer #107
@ -158,6 +158,10 @@ public class AutoLoader extends IAutoLoader implements Listener {
|
|||||||
public void onPlayerInteract(PlayerInteractEvent event){
|
public void onPlayerInteract(PlayerInteractEvent event){
|
||||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK && event.getAction() != Action.PHYSICAL)
|
if (event.getAction() != Action.RIGHT_CLICK_BLOCK && event.getAction() != Action.PHYSICAL)
|
||||||
return;
|
return;
|
||||||
|
if (event.getClickedBlock().getBlockData().getMaterial() == Material.OBSERVER)
|
||||||
|
return;
|
||||||
|
|||||||
|
if (event.getPlayer().isSneaking())
|
||||||
|
return;
|
||||||
|
|
||||||
if(!setup || !event.getPlayer().equals(player))
|
if(!setup || !event.getPlayer().equals(player))
|
||||||
return;
|
return;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Was ist wenn man mit shift klick an einen Hebel platziert? Oder Noteblock oder ähnliches?