Merge pull request 'Fix Autoloader load at Observer' (#107) from AutoLoaderFix into master
Reviewed-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Commit
6600731321
@ -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