Removed unneeded event call
This commit is contained in:
@@ -73,12 +73,10 @@ open class EcoDropQueue(val player: Player) : InternalDropQueue {
|
|||||||
world.dropItem(location, drop!!).velocity = Vector()
|
world.dropItem(location, drop!!).velocity = Vector()
|
||||||
}
|
}
|
||||||
if (xp > 0) {
|
if (xp > 0) {
|
||||||
val event = PlayerExpChangeEvent(player, xp)
|
|
||||||
Bukkit.getPluginManager().callEvent(event)
|
|
||||||
val orb =
|
val orb =
|
||||||
world.spawnEntity(player.location.add(0.0, 0.2, 0.0), EntityType.EXPERIENCE_ORB) as ExperienceOrb
|
world.spawnEntity(player.location.add(0.0, 0.2, 0.0), EntityType.EXPERIENCE_ORB) as ExperienceOrb
|
||||||
orb.velocity = Vector(0, 0, 0)
|
orb.velocity = Vector(0, 0, 0)
|
||||||
orb.experience = event.amount
|
orb.experience = xp
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (drop in items) {
|
for (drop in items) {
|
||||||
@@ -94,4 +92,4 @@ open class EcoDropQueue(val player: Player) : InternalDropQueue {
|
|||||||
init {
|
init {
|
||||||
location = player.location
|
location = player.location
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user