diff options
author | PanFritz <redstonenoobpan@gmail.com> | 2015-01-17 04:31:03 +0100 |
---|---|---|
committer | PanFritz <redstonenoobpan@gmail.com> | 2015-01-17 04:31:03 +0100 |
commit | 583e2cd4f951334081116ac254b67bf8ed18574f (patch) | |
tree | 768d1fd42fe85e2f60ba021bac13066a1b9e824a /snowbrawl.py | |
parent | 041bc029ca69763db52ece0ba402f6f2d5b7a62c (diff) |
changed getType to getTypeId
Diffstat (limited to 'snowbrawl.py')
-rw-r--r-- | snowbrawl.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/snowbrawl.py b/snowbrawl.py index 0bc62a5..4e1e613 100644 --- a/snowbrawl.py +++ b/snowbrawl.py @@ -13,15 +13,15 @@ PlayersInQue @hook.event("entity.ProjectileHitEvent", "high") def onHit(event): print "thrown" - if event.getEntity().getType() != EntityType.SNOWBALL: + if event.getEntity().getTypeId() != EntityType.SNOWBALL: print "Not a snowball?" return print "passed first if statement" - """if event.getEntity().getWorld().getName() != "minigames": + if event.getEntity().getWorld().getName() != "minigames": print "Not in minigames" return print "all good." - event.getEntity().getWorld().createExplosion(event.getEntity().getLocation(),1)""" + event.getEntity().getWorld().createExplosion(event.getEntity().getLocation(),1) |