You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TODO we should really base permission on the actual command permission, and not a (potentially inconsistent) api.registerHelp() entry!
commands.py
# i is each help item, like:
# ('/bmlist', 'List bookmark names', None)
for i in group:
command, args, permission = i[0].split(" ")[0], "", None
if i[0].split(" ") > 1:
# if there are args after the command
args = getargsafter(i[0].split(" "), 1)
# TODO we should really base permission on the
# actual command permission, and not a
# (potentially inconsistent) help entry!
# will only display is player has permission
print(i[2], player.hasPermission(i[2]))
if not player.hasPermission(i[2]):
The registerHelp item can be deprecated in a backwards compatible manner since it should properly match it's command anyway!
The text was updated successfully, but these errors were encountered:
TODO we should really base permission on the actual command permission, and not a (potentially inconsistent) api.registerHelp() entry!
commands.py
The registerHelp item can be deprecated in a backwards compatible manner since it should properly match it's command anyway!
The text was updated successfully, but these errors were encountered: