diff options
author | Dico200 <dico.karssiens@gmail.com> | 2015-03-26 16:48:54 +0100 |
---|---|---|
committer | Dico200 <dico.karssiens@gmail.com> | 2015-03-26 16:48:54 +0100 |
commit | 4cfa3a598f1ff399092bc62c1d97ed19fa97023b (patch) | |
tree | 23951c8ce31e9564b021fd8eefaef1a71e02cc61 /basecommands.py | |
parent | 75823ed0427ff48983c83a9510d1e1715056e1bf (diff) |
Tiny tweaks in basecommands.py
Diffstat (limited to 'basecommands.py')
-rw-r--r-- | basecommands.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basecommands.py b/basecommands.py index 88d6355..46cb86d 100644 --- a/basecommands.py +++ b/basecommands.py @@ -33,9 +33,9 @@ def simplecommand(cmd, def run(sender, command, label, args): isPlayer = is_player(sender) if not isSenderValid(senderLimit, isPlayer): - return "&cThis command can only be run from the console" if isplayer else "&cThis command can only be run by players" + return invalidSenderMsg(isPlayer) if not sender.hasPermission(permission): - return "&cYou do not have permission to use this command" + return "&cYou do not have permission to use that command" if ((not args) and helpNoargs) or (helpSubcmd and args and args[0].lower() == "help"): return getHelp(sender) if not checkargs(sender, args, amin, amax): @@ -96,7 +96,7 @@ def advancedcommand(cmd, if not isSenderValid(called.senderLimit, isPlayer): return invalidSenderMsg(isPlayer) if not sender.hasPermission(called.permission): - return "&cYou do not have permission to use this command" + return "&cYou do not have permission to use that command" if not checkargs(sender, args[1:], called.amin, called.amax): return None return called.call(sender, command, label, args) |