Fix for anon class command perms
This commit is contained in:
parent
708c687eea
commit
7353adf613
@ -1040,7 +1040,7 @@ public class MassiveCommand implements Active, PluginIdentifiableCommand
|
|||||||
if (basePrefix == null) return null;
|
if (basePrefix == null) return null;
|
||||||
|
|
||||||
// Only try if the name matches with the expected prefix ...
|
// 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;
|
if ( ! name.startsWith(basePrefix)) return null;
|
||||||
|
|
||||||
// ... and remove the prefix ...
|
// ... and remove the prefix ...
|
||||||
|
Loading…
Reference in New Issue
Block a user