diff --git a/src/main/java/me/william278/huskhomes2/listeners/PlayerListener.java b/src/main/java/me/william278/huskhomes2/listeners/PlayerListener.java index e1174866..a623f406 100644 --- a/src/main/java/me/william278/huskhomes2/listeners/PlayerListener.java +++ b/src/main/java/me/william278/huskhomes2/listeners/PlayerListener.java @@ -107,7 +107,6 @@ public class PlayerListener implements Listener { final UUID uuid = p.getUniqueId(); if (!HuskHomes.isTeleporting(uuid)) { final Location logOutLocation = p.getLocation(); - HuskHomes.setNotTeleporting(uuid); Connection connection = HuskHomes.getConnection(); Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> { try { @@ -118,6 +117,8 @@ public class PlayerListener implements Listener { Bukkit.getLogger().severe("An SQL exception occurred in retrieving if a warp exists from the table."); } }); + } else { + HuskHomes.setNotTeleporting(uuid); } } } diff --git a/src/main/resources/Languages/en-gb.yml b/src/main/resources/Languages/en-gb.yml index 34976fb9..f37ff7ff 100644 --- a/src/main/resources/Languages/en-gb.yml +++ b/src/main/resources/Languages/en-gb.yml @@ -1,6 +1,7 @@ error_no_permission: '[Error:](#ff3300) [You do not have permission to execute that command.](#ff7e5e)' error_no_last_position: '[Error:](#ff3300) [You have no last position to return to!](#ff7e5e)' teleporting_last_position: '[Returning to your last position in](#00fb9a) [%1%](#00fb9a bold) [seconds](#00fb9a)' +teleporting_offline_player: '[Teleporting you to where %1% last logged out...](#00fb9a)' teleporting_countdown_start: '[You will be teleported in](#00fb9a) [%1%](#00fb9a bold) [seconds](#00fb9a)' teleporting_cancelled_movement: '[Teleportation cancelled; you moved!](#ff7e5e)' teleporting_cancelled_damage: '[Teleportation cancelled; you took damage!](#ff7e5e)' @@ -106,4 +107,4 @@ error_invalid_on_arrival: '[Error:](#ff3300) [Failed to finish your teleportatio tpignore_toggle_on: '[You are now](#00fb9a) [ignoring](#00fb9a bold) [incoming teleport requests.](#00fb9a) [(Click to toggle)](gray show_text=&7Click to listen for incoming teleport requests run_command=/huskhomes:tpignore)' tpignore_toggle_off: '[You are now](#00fb9a) [listening](#00fb9a bold) [to any incoming teleport requests.](#00fb9a) [(Click to toggle)](gray show_text=&7Click to ignore incoming teleport requests run_command=/huskhomes:tpignore)' error_ignoring_teleport_requests: '[Error:](#ff3300) [You are currently ignoring teleport requests!](#ff7e5e) [(Click to toggle)](#ff7e5e show_text=&#ff7e5e&Click to listen for incoming teleport requests run_command=/huskhomes:tpignore)' -error_no_offline_position: '[Error:](#ff3300) [Could not find where %1% last logged out from](#ff7e5e)' \ No newline at end of file +error_no_offline_position: '[Error:](#ff3300) [Could not find where %1% last logged out.](#ff7e5e)' \ No newline at end of file