Using clicked material
This commit is contained in:
parent
63d3a0af76
commit
c02af9207b
Binary file not shown.
@ -752,7 +752,7 @@ public class FactionsPlayerListener implements Listener {
|
|||||||
|
|
||||||
if (block == null) return; // clicked in air, apparently
|
if (block == null) return; // clicked in air, apparently
|
||||||
SavageFactions.plugin.log("Checking for material permission");
|
SavageFactions.plugin.log("Checking for material permission");
|
||||||
if (GetPermissionFromUsableBlock(event.getMaterial()) == null) return;
|
if (GetPermissionFromUsableBlock(event.getClickedBlock().getType()) == null) return;
|
||||||
SavageFactions.plugin.log("Checking for use block permission");
|
SavageFactions.plugin.log("Checking for use block permission");
|
||||||
if (!canPlayerUseBlock(player, block, false)) {
|
if (!canPlayerUseBlock(player, block, false)) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user