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?)
@Sphat Just do #hasPermission("Permission.node"){ You can create your own permissions and it will only work for ops or whoever has the permission.
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)
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