mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Increase teleport listener priority
This commit is contained in:
parent
74f3829282
commit
274b287195
@ -512,7 +512,7 @@ public class DPlayerListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler(priority = EventPriority.HIGHEST)
|
||||||
public void onPlayerTeleport(PlayerTeleportEvent event) {
|
public void onPlayerTeleport(PlayerTeleportEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
if (isCitizensNPC(player)) {
|
if (isCitizensNPC(player)) {
|
||||||
@ -522,7 +522,7 @@ public class DPlayerListener implements Listener {
|
|||||||
|
|
||||||
World toWorld = event.getTo().getWorld();
|
World toWorld = event.getTo().getWorld();
|
||||||
|
|
||||||
if (dPlayer instanceof DInstancePlayer && ((DInstancePlayer) dPlayer).getWorld() == toWorld) {
|
if (dPlayer instanceof InstancePlayer && ((InstancePlayer) dPlayer).getWorld() == toWorld) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user