Make help dialogue only show commands you have perms to #23
@ -95,9 +95,14 @@ def on_lol_command(sender, command, label, args):
|
||||
msg(sender, "&cInvalid number '&e%s&c'" % args[1])
|
||||
|
||||
else:
|
||||
if sender.hasPermission("utils.lol"):
|
||||
msg(sender, "&a/lol &eSay random message")
|
||||
msg(sender, "&a/lol list &eList all messages")
|
||||
if sender.hasPermission("utils.lol.id"):
|
||||
msg(sender, "&a/lol id <id> &eSay specific message")
|
||||
if sender.hasPermission("utils.lol.modify"):
|
||||
msg(sender, "&a/lol add <text> &eAdd message")
|
||||
msg(sender, "&a/lol del <id> &eDelete message")
|
||||
else:
|
||||
noperm(sender)
|
||||
return True
|
||||
|
Reference in New Issue
Block a user