File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
src/main/java/com/github/ucchyocean/lc3 Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 22 <modelVersion >4.0.0</modelVersion >
33 <groupId >net.azisaba</groupId >
44 <artifactId >lunachatplus</artifactId >
5- <version >3.2.1 </version >
5+ <version >3.2.2 </version >
66 <description >A powerfull chat channel plugin with IME (Kana-Kanji conversion) support</description >
77 <url >https://github.com/ucchyocean/LunaChat</url >
88
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ public void onJoin(PlayerJoinEvent event) {
120120 // UUIDをキャッシュ
121121 LunaChat .getUUIDCacheData ().put (player .getUniqueId ().toString (), player .getName ());
122122 if (saveTask != null ) saveTask .cancel ();
123- saveTask = org .bukkit .Bukkit .getScheduler ().runTaskLater (LunaChatBukkit .getInstance (), () -> {
123+ saveTask = org .bukkit .Bukkit .getScheduler ().runTaskLaterAsynchronously (LunaChatBukkit .getInstance (), () -> {
124124 LunaChat .getUUIDCacheData ().save ();
125125 saveTask = null ;
126126 }, 100 );
Original file line number Diff line number Diff line change 1313import java .io .InputStream ;
1414import java .io .InputStreamReader ;
1515import java .io .Reader ;
16+ import java .util .HashMap ;
1617import java .util .Map ;
1718
1819import org .jetbrains .annotations .NotNull ;
@@ -99,7 +100,7 @@ public static YamlConfig load(Reader reader) throws IOException {
99100 public void save (File file ) throws IOException {
100101
101102 Yaml yaml = new Yaml ();
102- String data = yaml .dumpAsMap (map );
103+ String data = yaml .dumpAsMap (new HashMap <>( map ) );
103104
104105 try (BufferedWriter writer = new BufferedWriter (new FileWriter (file ))) {
105106 writer .write (data );
You can’t perform that action at this time.
0 commit comments