PermissionUtil change

Small change. Preparing for the ability to remove PERM classes
This commit is contained in:
Magnus Ulf 2019-01-27 17:13:46 +01:00
parent dd3724e663
commit 71db0c0c71

View File

@ -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('_', '.');
} }
// -------------------------------------------- // // -------------------------------------------- //