Fixed Vault permissions setup.
This commit is contained in:
parent
e54914bd22
commit
08906f6004
@ -63,7 +63,6 @@ public class Plugin extends JavaPlugin
|
||||
@Override
|
||||
public void onLoad()
|
||||
{
|
||||
setupPermissions();
|
||||
ConfigurationSerialization.registerClass(Gate.class);
|
||||
}
|
||||
|
||||
@ -78,8 +77,13 @@ public class Plugin extends JavaPlugin
|
||||
|
||||
if (rsp != null)
|
||||
{
|
||||
log("Using permission provider provided by Vault.");
|
||||
permission = rsp.getProvider();
|
||||
}
|
||||
else
|
||||
{
|
||||
log("Not using setup permission provider provided by Vault.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -95,6 +99,9 @@ public class Plugin extends JavaPlugin
|
||||
@Override
|
||||
public void onEnable()
|
||||
{
|
||||
// Setup permissions
|
||||
setupPermissions();
|
||||
|
||||
// Add the commands
|
||||
commands.add(new CommandHelp());
|
||||
commands.add(new CommandCreate());
|
||||
|
Loading…
x
Reference in New Issue
Block a user