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);
}
}
}