Skip to content

Commit

Permalink
Fixed #534
Browse files Browse the repository at this point in the history
If a player switches from a island to another, the events are reversed.
  • Loading branch information
tastybento committed Mar 6, 2017
1 parent 1ab4e36 commit 0fea833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/wasteofplastic/askyblock/listeners/IslandGuard.java
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,10 @@ public void onPlayerMove(final PlayerMoveEvent e) {
}
}
// Fire exit event
final IslandExitEvent event = new IslandExitEvent(e.getPlayer().getUniqueId(), islandTo, e.getTo());
final IslandExitEvent event = new IslandExitEvent(e.getPlayer().getUniqueId(), islandFrom, e.getTo());
plugin.getServer().getPluginManager().callEvent(event);
// Fire entry event
final IslandEnterEvent event2 = new IslandEnterEvent(e.getPlayer().getUniqueId(), islandFrom, e.getTo());
final IslandEnterEvent event2 = new IslandEnterEvent(e.getPlayer().getUniqueId(), islandTo, e.getTo());
plugin.getServer().getPluginManager().callEvent(event2);
}
}
Expand Down

0 comments on commit 0fea833

Please sign in to comment.