dont import paper events
This commit is contained in:
parent
9cc91619dc
commit
77ff0a8921
@ -1,7 +1,6 @@
|
||||
package me.xginko.villageroptimizer.modules.gameplay;
|
||||
|
||||
import com.cryptomorin.xseries.XEntityType;
|
||||
import com.destroystokyo.paper.event.entity.EntityKnockbackByEntityEvent;
|
||||
import me.xginko.villageroptimizer.modules.VillagerOptimizerModule;
|
||||
import org.bukkit.entity.Villager;
|
||||
import org.bukkit.event.EventHandler;
|
||||
@ -73,7 +72,7 @@ public class PreventOptimizedDamage extends VillagerOptimizerModule implements L
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
private void onKnockbackByEntity(EntityKnockbackByEntityEvent event) {
|
||||
private void onKnockbackByEntity(com.destroystokyo.paper.event.entity.EntityKnockbackByEntityEvent event) {
|
||||
if (
|
||||
cancel_knockback
|
||||
&& event.getEntityType() == XEntityType.VILLAGER.get()
|
||||
|
@ -1,7 +1,6 @@
|
||||
package me.xginko.villageroptimizer.modules.gameplay;
|
||||
|
||||
import com.cryptomorin.xseries.XEntityType;
|
||||
import com.destroystokyo.paper.event.entity.EntityPathfindEvent;
|
||||
import me.xginko.villageroptimizer.modules.VillagerOptimizerModule;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Mob;
|
||||
@ -50,7 +49,7 @@ public class PreventOptimizedTargeting extends VillagerOptimizerModule implement
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
private void onEntityTargetVillager(EntityPathfindEvent event) {
|
||||
private void onEntityTargetVillager(com.destroystokyo.paper.event.entity.EntityPathfindEvent event) {
|
||||
final Entity target = event.getTargetEntity();
|
||||
if (
|
||||
target != null
|
||||
|
Loading…
x
Reference in New Issue
Block a user