Fix for anon class command perms

This commit is contained in:
TheComputerGeek2 2018-05-21 10:33:52 -07:00 committed by Magnus Ulf Jørgensen
parent 708c687eea
commit 7353adf613

View File

@ -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 ...