Fix for anon class command perms

This commit is contained in:
TheComputerGeek2 authored and Magnus Ulf Jørgensen committed 2018-05-23 17:04:50 +02:00
1 parent 708c687eea
commit 7353adf613
1 file changed
+1 -1
@@ -1040,7 +1040,7 @@ public class MassiveCommand implements Active, PluginIdentifiableCommand
if (basePrefix == null) return null;
// Only try if the name matches with the expected prefix ...
String name = this.getClass().getSimpleName();
String name = getClassOrEnclosing(this).getSimpleName(); //this.getClass().getSimpleName();
if ( ! name.startsWith(basePrefix)) return null;
// ... and remove the prefix ...