added import
This commit is contained in:
@@ -7,6 +7,7 @@ import org.bukkit.Location as Location
|
||||
import org.bukkit.entity.Player as Player
|
||||
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause as TeleportCause
|
||||
import org.bukkit.block as bblock
|
||||
import org.bukkit.event.entity as entity
|
||||
|
||||
|
||||
shared = {} # this dict can be used to share stuff across modules
|
||||
|
||||
@@ -10,7 +10,7 @@ Objective
|
||||
PlayersInQue
|
||||
"""
|
||||
|
||||
@hook.event("bukkit.event.entity.ProjectileHitEvent", "high")
|
||||
@hook.event("entity.ProjectileHitEvent", "high")
|
||||
def onHit(event):
|
||||
print "thrown"
|
||||
if event.getEntity().getType() != EntityType.SNOWBALL:
|
||||
|
||||
Reference in New Issue
Block a user