mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-29 13:45:13 +01:00
You right click to open doors.
This commit is contained in:
parent
bddf2cad05
commit
d189ab058b
@ -24,8 +24,7 @@ public class DoorPermission extends ListeningPermission {
|
|||||||
|
|
||||||
@PermissionHandler
|
@PermissionHandler
|
||||||
public void onInteract(PlayerInteractEvent event) {
|
public void onInteract(PlayerInteractEvent event) {
|
||||||
|
if (event.getAction() != Action.LEFT_CLICK_BLOCK)
|
||||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK && event.getAction() != Action.LEFT_CLICK_BLOCK)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
Loading…
Reference in New Issue
Block a user