PermissionUtil change
Small change. Preparing for the ability to remove PERM classes
This commit is contained in:
parent
dd3724e663
commit
71db0c0c71
@ -45,7 +45,12 @@ public class PermissionUtil
|
|||||||
|
|
||||||
public static String createPermissionId(Plugin plugin, Enum<?> e)
|
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('_', '.');
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
Loading…
Reference in New Issue
Block a user