@@ -751,15 +751,15 @@ public void onPlayerInteract(PlayerInteractEvent event) {
751
751
if (Conf .territoryBypasssProtectedMaterials .contains (block .getType ())) return ;
752
752
753
753
if (block == null ) return ; // clicked in air, apparently
754
-
754
+ SavageFactions . plugin . log ( "Checking for material permission" );
755
755
if (GetPermissionFromUsableBlock (event .getMaterial ()) == null ) return ;
756
- player . sendMessage ("Checking if you can use that block" );
756
+ SavageFactions . plugin . log ("Checking for use block permission " );
757
757
if (!canPlayerUseBlock (player , block , false )) {
758
758
event .setCancelled (true );
759
759
event .setUseInteractedBlock (Event .Result .DENY );
760
760
return ;
761
761
}
762
- player . sendMessage ("Checking if you can use that item" );
762
+ SavageFactions . plugin . log ("Checking if you can use that item" );
763
763
if (!playerCanUseItemHere (player , block .getLocation (), event .getMaterial (), false )) {
764
764
event .setCancelled (true );
765
765
event .setUseInteractedBlock (Event .Result .DENY );
@@ -910,11 +910,11 @@ else if (landOwned && !myFaction.getOwnerListString(loc).contains(player.getName
910
910
return false ;
911
911
} else if (!landOwned && access == Access .ALLOW ) return true ;
912
912
else {
913
- me .msg (TL . GENERIC_NOPERMISSION , action );
913
+ me .msg ("You cannot " + action + " in the territory of " + myFaction . getTag ( me . getFaction ()) );
914
914
return false ;
915
915
}
916
916
}
917
- me .msg (TL . GENERIC_NOPERMISSION , action );
917
+ me .msg ("You cannot " + action + " in the territory of " + myFaction . getTag ( me . getFaction ()) );
918
918
return false ;
919
919
}
920
920
/// <summary>
0 commit comments