This commit is contained in:
sharlotte
2021-08-11 12:13:33 +09:00
parent 6a0f817929
commit 6bd04b8d11
4 changed files with 27 additions and 15 deletions

View File

@@ -1,7 +1,9 @@
package UnitInfo.core;
import UnitInfo.SUtils;
import UnitInfo.ui.*;
import arc.*;
import arc.func.Cons;
import arc.graphics.*;
import arc.graphics.g2d.*;
import arc.input.*;

View File

@@ -12,6 +12,7 @@ import static UnitInfo.SVars.modRoot;
public class PlayerParser{
ObjectMap<Player, Seq<String>> chats = new ObjectMap<>();
public void setEvent() {
Events.on(EventType.PlayerChatEvent.class, e -> {
if(chats.containsKey(e.player)) chats.get(e.player).add(e.message);
@@ -56,6 +57,7 @@ public class PlayerParser{
});
modRoot.child("players.hjson").writeString(data.toString(Stringify.HJSON));
}
public static class PlayerInfo{
Player player;
Seq<String> names = new Seq<>();