diff --git a/blockplacemods.py b/blockplacemods.py index 8d18699..fd7071e 100644 --- a/blockplacemods.py +++ b/blockplacemods.py @@ -150,8 +150,7 @@ def toggle_command(sender, command, label, args): if arg2 == "clear": if enabled: del values[uuid] - return " &aDisabled " + details[1] - return " &cAlready disabled: " + details[1] + return " &aDisabled " + details[1] if arg2 == "details": return " &aSetting %s:\n &9%s \n&6Accepted arguments: [|clear|details]" % (setting, details[2]) diff --git a/damnspam.py b/damnspam.py index af800af..83dfb5f 100644 --- a/damnspam.py +++ b/damnspam.py @@ -36,9 +36,9 @@ def on_dammnspam_command(sender, command, label, args): msg(sender, "&c/damnspam &e(Levers only)") return True #Gittestlol - if not is_creative(sender): - msg(sender, "&cYou can only do this in Creative mode.") - return True + if not is_creative(sender): + msg(sender, "&cYou can only do this in Creative mode.") + return True # /damnspam if len(args) == 1: @@ -47,6 +47,8 @@ def on_dammnspam_command(sender, command, label, args): timeout_on = round(float(timeout_on), 2) timeout_off = timeout_on if 60 >= timeout_on <= -2 or timeout_on == 0: + timeout_on = False + if timeout_on == False: msg(sender, "&cThe timeout must be within 0-60 or -1.") return True except ValueError: diff --git a/helpers.py b/helpers.py index 4c32e24..8485b2a 100755 --- a/helpers.py +++ b/helpers.py @@ -314,13 +314,3 @@ def array_to_list(array): for a in array: return_list += [a] return return_list - - -#debug wrapper -def debug(func): - def wrap(*args, **kwargs): - try: - func(*args, **kwargs) - except: - print(trace()) - return wrap