From 4cfa3a598f1ff399092bc62c1d97ed19fa97023b Mon Sep 17 00:00:00 2001 From: Dico200 Date: Thu, 26 Mar 2015 16:48:54 +0100 Subject: [PATCH] Tiny tweaks in basecommands.py --- basecommands.py | 6 +++--- 1 file 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)