Add locale to en-gb and minor update to how player cross-server teleporting is tracked

Signed-off-by: BuildTools <[email protected]>
This commit is contained in:
BuildTools committed 2021-07-12 23:49:31 +03:00
1 parent a7fb700d05
commit 50bed71414
2 files changed
+4 -2

No files matched your search

@@ -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);
}
}
}
+2 -1
View File
@@ -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)'
error_no_offline_position: '[Error:](#ff3300) [Could not find where %1% last logged out.](#ff7e5e)'