using is_creative helper

This commit is contained in:
jomo
2014-07-17 22:13:49 +02:00
parent a5e9fd348f
commit ebf8a22bae
3 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ def on_dammnspam_command(sender, args):
plugin_header(sender, "DamnSpam")
if len(args) in [1,2]:
if not str(sender.getGameMode()) == "CREATIVE":
if not is_creative(sender):
msg(sender, "&cYou can only do this in Creative mode.")
return True