[Help] how to make a permission node not for commands? But for checking

Discussion in 'Plugin Development' started by Cheesepro, Aug 31, 2014.

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

    Cheesepro

    I checked with many popular plugins that they always have a permission not for commands just for checking if you have the permission of something.

    For example I want the server to check if the player have the permission of [kill.bypass] so then that the player will not get killed but every other player that don't have that permission.. like do I just use this?

    Code:
    if(player.hasPermission("kill.bypass")){
        //code here
    }
    but do I have to register the permission in plugin.yml too? since its not a command? but if I need to register it in the plugin.yml, whats the format of it?

    Thank you! :D
     
  2. Offline

    hintss

    You just do literally that? Permissions don't have to be registered in plugin.yml
     
  3. Offline

    Cheesepro

    hintss
    it doesn't seems to be working..
     
  4. Offline

    hintss

    and the code?
     
Thread Status:
Not open for further replies.

Share This Page