Skip to content

Commit

Permalink
Remove old string that was causing an error
Browse files Browse the repository at this point in the history
  • Loading branch information
axemwa committed Aug 22, 2019
1 parent dbdfc8a commit 5b601db
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,10 @@ private void onInteract(PlayerInteractEvent event) {
// If They Have An Individual Axe Permission For The Axe They Are Using, Let Them Strip The Log
if (event.getPlayer().hasPermission(axePermissions.get(event.getItem().getType())))
return;
String permission;

if (!event.getPlayer().hasPermission((axePermissions.get(event.getItem().getType())))) {
permission = (axePermissions.get(event.getItem().getType()));
event.getPlayer().sendMessage(cfgUtils.color(cfgUtils.prefix + " " + cfgUtils.noAxePermission
.replace("{permission}", permission)));
.replace("{permission}", (axePermissions.get(event.getItem().getType())))));
}

// Otherwise, Move On And Prevent Stripping The Log
Expand Down

0 comments on commit 5b601db

Please sign in to comment.