summaryrefslogtreecommitdiff
path: root/snowbrawl.py
diff options
context:
space:
mode:
authorPanFritz <redstonenoobpan@gmail.com>2015-01-17 00:21:42 +0100
committerPanFritz <redstonenoobpan@gmail.com>2015-01-17 00:21:42 +0100
commit5fc18d034fdbd8e0eab593b007cb67b2d3ef45b2 (patch)
tree9dbf2b1a99b18399e5ed69e136cdc608144fbf68 /snowbrawl.py
parentbc2c5196b2f20af0faea4c7ff6723853694dc471 (diff)
added debug code
Diffstat (limited to 'snowbrawl.py')
-rw-r--r--snowbrawl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/snowbrawl.py b/snowbrawl.py
index 4525819..303fb3b 100644
--- a/snowbrawl.py
+++ b/snowbrawl.py
@@ -12,10 +12,14 @@ PlayersInQue
@hook.event("Entity.ProjectileHitEvent", "high")
def onHit(event):
+ print "thrown"
if event.getEntity().getType() != EntityType.SNOWBALL:
+ print "Not a snowball?"
return
if event.getWorld().getName() != "minigames":
+ print "Not in minigames"
return
+ print "all good."
event.getWorld().createExplosion(event.getLocation(),1)