File tree 1 file changed +2
-3
lines changed
src/main/java/me/shanodekono/nostrip/listeners
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,10 @@ private void onInteract(PlayerInteractEvent event) {
83
83
// If They Have An Individual Axe Permission For The Axe They Are Using, Let Them Strip The Log
84
84
if (event .getPlayer ().hasPermission (axePermissions .get (event .getItem ().getType ())))
85
85
return ;
86
- String permission ;
86
+
87
87
if (!event .getPlayer ().hasPermission ((axePermissions .get (event .getItem ().getType ())))) {
88
- permission = (axePermissions .get (event .getItem ().getType ()));
89
88
event .getPlayer ().sendMessage (cfgUtils .color (cfgUtils .prefix + " " + cfgUtils .noAxePermission
90
- .replace ("{permission}" , permission )));
89
+ .replace ("{permission}" , ( axePermissions . get ( event . getItem (). getType ())) )));
91
90
}
92
91
93
92
// Otherwise, Move On And Prevent Stripping The Log
You can’t perform that action at this time.
0 commit comments