PermissionUtil change
Small change. Preparing for the ability to remove PERM classes
This commit is contained in:
1 parent
dd3724e663
commit
71db0c0c71
1 file changed
+6
-1
@@ -45,7 +45,12 @@ public class PermissionUtil
|
||||
|
||||
public static String createPermissionId(Plugin plugin, Enum<?> e)
|
||||
{
|
||||
return plugin.getName().toLowerCase() + "." + e.name().toLowerCase().replace('_', '.');
|
||||
return createPermissionId(plugin, e.name());
|
||||
}
|
||||
|
||||
public static String createPermissionId(Plugin plugin, String enumName)
|
||||
{
|
||||
return plugin.getName().toLowerCase() + "." + enumName.toLowerCase().replace('_', '.');
|
||||
}
|
||||
|
||||
// -------------------------------------------- //
|
||||
|
||||
Reference in new issue
Block a user