don't accept 0 args, remove try
This commit is contained in:
@@ -40,9 +40,8 @@ def add_input(creator, block, timeout_off, timeout_on):
|
||||
def onDammnspamCommand(sender, args):
|
||||
global inputs
|
||||
|
||||
try:
|
||||
plugHeader(sender, "DamnSpam")
|
||||
if len(args) <= 2:
|
||||
if len(args) in range(2):
|
||||
|
||||
if not str(sender.getGameMode()) == "CREATIVE":
|
||||
msg(sender, "&cYou can only do this in Creative mode.")
|
||||
@@ -91,8 +90,6 @@ def onDammnspamCommand(sender, args):
|
||||
else:
|
||||
msg(sender, "&c/damnspam <seconds> &e(Buttons/Levers)")
|
||||
msg(sender, "&c/damnspam <seconds after off> <seconds after on> &e(Levers only)")
|
||||
except Exception, e:
|
||||
error(e)
|
||||
|
||||
|
||||
@hook.event("block.BlockBreakEvent", "normal")
|
||||
|
||||
Reference in New Issue
Block a user