debug
This commit is contained in:
@@ -13,7 +13,7 @@ PlayersInQue
|
|||||||
@hook.event("entity.ProjectileHitEvent", "high")
|
@hook.event("entity.ProjectileHitEvent", "high")
|
||||||
def onHit(event):
|
def onHit(event):
|
||||||
print "thrown"
|
print "thrown"
|
||||||
if event.getEntity().getType() != EntityType.SNOWBALL:
|
"""if event.getEntity().getType() != EntityType.SNOWBALL:
|
||||||
print "Not a snowball?"
|
print "Not a snowball?"
|
||||||
return
|
return
|
||||||
print "passed first if statement"
|
print "passed first if statement"
|
||||||
@@ -21,11 +21,11 @@ def onHit(event):
|
|||||||
print "Not in minigames"
|
print "Not in minigames"
|
||||||
return
|
return
|
||||||
print "all good."
|
print "all good."
|
||||||
event.getEntity().getWorld().createExplosion(event.getEntity().getLocation(),1)
|
event.getEntity().getWorld().createExplosion(event.getEntity().getLocation(),1)"""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@hook.event("PlayerInteractEvent")
|
@hook.event("Player.PlayerInteractEvent")
|
||||||
def onClick(event):
|
def onClick(event):
|
||||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK):
|
if (event.getAction() != Action.RIGHT_CLICK_BLOCK):
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user