How to make Permissions work?

I’m not sure how I could get permissions to work. I know it probably involves CommandSpec, but how would I make certain commands have permissions when they are already in their own separate classes?


Any other improvement suggestions I will take.

Temp link to improved Command.rst

Looks ok to me, it should work.

if it doesn’t work, try this:

public Optional<CommandResult> process(CommandSource src, String args) {
  if(!src.hasPermission("xyz") return Optional.absent();

Seems like a bit of a rough approach, but if that’s the only way possible, then I’ll do it that way,