- Delay the login task by another tick so that the player's locale has

been determined on the server.
    - Closes https://github.com/TownyAdvanced/Towny/issues/5802
This commit is contained in:
Llm Dl committed 2022-03-12 12:57:15 -06:00
1 parent 956912481b
commit 671a03ab86
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
<groupId>com.palmergames.bukkit</groupId>
<artifactId>TownyChat</artifactId>
<packaging>jar</packaging>
<version>0.96</version>
<version>0.97</version>
<licenses>
<license>
+3 -1
View File
@@ -404,4 +404,6 @@ v0.96:
- Display invalid subcommand message when /ch is used with an invalid subcommand.
- Replace the splitter for channels saved in metadata with the , symbol.
v0.97:
- Fix the display_channel_join_message_on_joining_the_server option in the config not being used.
- Fix the display_channel_join_message_on_joining_the_server option in the config not being used.
- Delay the login task by another tick so that the player's locale has been determined on the server.
- Closes https://github.com/TownyAdvanced/Towny/issues/5802
@@ -40,7 +40,7 @@ public class TownyChatPlayerListener implements Listener {
@EventHandler(priority = EventPriority.LOW)
public void onPlayerJoin(final PlayerJoinEvent event) {
Bukkit.getScheduler().runTaskLater(plugin, () -> loginPlayer(event.getPlayer()), 1l);
Bukkit.getScheduler().runTaskLater(plugin, () -> loginPlayer(event.getPlayer()), 2l);
}