mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
- 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:
1 parent
956912481b
commit
671a03ab86
3 files changed
+4
-2
No files matched your search
@@ -7,7 +7,7 @@
|
|||||||
<groupId>com.palmergames.bukkit</groupId>
|
<groupId>com.palmergames.bukkit</groupId>
|
||||||
<artifactId>TownyChat</artifactId>
|
<artifactId>TownyChat</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>0.96</version>
|
<version>0.97</version>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
|
|||||||
@@ -405,3 +405,5 @@ v0.96:
|
|||||||
- Replace the splitter for channels saved in metadata with the , symbol.
|
- Replace the splitter for channels saved in metadata with the , symbol.
|
||||||
v0.97:
|
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)
|
@EventHandler(priority = EventPriority.LOW)
|
||||||
public void onPlayerJoin(final PlayerJoinEvent event) {
|
public void onPlayerJoin(final PlayerJoinEvent event) {
|
||||||
|
|
||||||
Bukkit.getScheduler().runTaskLater(plugin, () -> loginPlayer(event.getPlayer()), 1l);
|
Bukkit.getScheduler().runTaskLater(plugin, () -> loginPlayer(event.getPlayer()), 2l);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user