Make help dialogue only show commands you have perms to #23
@ -19,7 +19,8 @@ def print_help(sender):
|
|||||||
msg(sender, " &2/rp tp <id> &eTeleport to report's location & show details")
|
msg(sender, " &2/rp tp <id> &eTeleport to report's location & show details")
|
||||||
msg(sender, " &2/rp close <id> &eResolve an open report")
|
msg(sender, " &2/rp close <id> &eResolve an open report")
|
||||||
msg(sender, " &2/rp reopen <id> &eReopen a resolved report")
|
msg(sender, " &2/rp reopen <id> &eReopen a resolved report")
|
||||||
msg(sender, " &2/rp del <id> &eDelete a report (admin only)")
|
if sender.hasPermission(rp_permission + ".del"):
|
||||||
|
msg(sender, " &2/rp del <id> &eDelete a report")
|
||||||
|
|
||||||
|
|
||||||
def print_list(sender, closed):
|
def print_list(sender, closed):
|
||||||
|
15
saylol.py
15
saylol.py
@ -95,9 +95,14 @@ def on_lol_command(sender, command, label, args):
|
|||||||
msg(sender, "&cInvalid number '&e%s&c'" % args[1])
|
msg(sender, "&cInvalid number '&e%s&c'" % args[1])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
msg(sender, "&a/lol &eSay random message")
|
if sender.hasPermission("utils.lol"):
|
||||||
msg(sender, "&a/lol list &eList all messages")
|
msg(sender, "&a/lol &eSay random message")
|
||||||
msg(sender, "&a/lol id <id> &eSay specific message")
|
msg(sender, "&a/lol list &eList all messages")
|
||||||
msg(sender, "&a/lol add <text> &eAdd message")
|
if sender.hasPermission("utils.lol.id"):
|
||||||
msg(sender, "&a/lol del <id> &eDelete message")
|
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
|
return True
|
||||||
|
Reference in New Issue
Block a user