You right click to open doors.

This commit is contained in:
Brianna 2020-09-01 14:11:26 -05:00
parent bddf2cad05
commit d189ab058b

View File

@ -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();