Fixed Vault permissions setup.

This commit is contained in:
Tobias Ottenweller 2013-02-23 19:53:05 +01:00
parent e54914bd22
commit 08906f6004

View File

@ -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());