Question Help With Permissions

Discussion in 'Bukkit Help' started by Sphat, Feb 10, 2015.

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


    So I just started doing bukkit plugins so i'm a total noob at it(I'm learning as i go).How to make it so that a player command can only be used by an owner or an op? ( I know it has to do with permissions but what permission is it?)
    Last edited: Feb 10, 2015
  2. Offline


    What player command?
  3. Offline

    bwfcwalshy Retired Staff

    @Sphat Just do #hasPermission("Permission.node"){ You can create your own permissions and it will only work for ops or whoever has the permission.
  4. Offline


    It's part of a new plugin i'm working on (my first one actually). It's gonna be /tmaddnewplayer <player>. I'll be making a point system for ranks (e.g if a certain player has more than a custom number of points he will be a custom staff rank)
  5. Offline


    just dont include that command to be allowed for any other group and then do '*' for permissions on owner this gives Owner access to all commands on all plugins
Thread Status:
Not open for further replies.

Share This Page