range starts at 0

This commit is contained in:
jomo
2014-07-14 05:25:57 +02:00
parent 35e59583bc
commit 626da9fb5c

View File

@@ -41,7 +41,7 @@ def onDammnspamCommand(sender, args):
global inputs global inputs
plugHeader(sender, "DamnSpam") plugHeader(sender, "DamnSpam")
if len(args) in range(2): if len(args) in [1,2]:
if not str(sender.getGameMode()) == "CREATIVE": if not str(sender.getGameMode()) == "CREATIVE":
msg(sender, "&cYou can only do this in Creative mode.") msg(sender, "&cYou can only do this in Creative mode.")