Skip to content

Commit

Permalink
Adjusted respawn location for border.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Mar 7, 2020
1 parent 53fd99c commit 72c1fc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void onPlayerJoin(PlayerJoinEvent e) {

@EventHandler(priority = EventPriority.NORMAL)
public void onPlayerRespawn(PlayerRespawnEvent e) {
addon.updateBorder(e.getPlayer(), e.getPlayer().getLocation());
Bukkit.getScheduler().runTask(addon.getPlugin(), () -> addon.updateBorder(e.getPlayer(), e.getRespawnLocation()));
}

@EventHandler(priority = EventPriority.NORMAL)
Expand Down

0 comments on commit 72c1fc5

Please sign in to comment.