Detecting Permissions Support

Discussion in 'Plugin Development' started by Zachster, May 10, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Zachster

    How do I detect if someone has a permissions plugin on their server? I have tried to use permissions but they do not work as I don't really use permissions on my server.
     
  2. Offline

    chasechocolate

    You can do it with Vault or just loop through all the plugins and check of it is a permission plugin.
     
  3. Offline

    Me4502

    If you just want to check if a player has perms, just do player.hasPermissions("Perms");
     
  4. Offline

    Zachster

    I know but when I do
    if(player.hasPermission("bla.bla")) {
    doCrap();
    }

    and I set the default to op and I am op, it still doesn't work. It doesn't work until I install a permissions plugin.
     
  5. Offline

    chasechocolate

  6. Offline

    Zachster

    But what about putting permissions in for everyone else? I want it to work for those who have permissions and those that don't.
     
  7. Offline

    ZeusAllMighty11

    You don't need to register perms in plugin.yml
     
  8. player.hasPermission("bla.bla") works on my server even when I don't have a permissions plugin. Hoping you are not testing with pex as its a buggy development plugin, link
     
Thread Status:
Not open for further replies.

Share This Page