mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-10 12:09:27 +02:00
clean up
This commit is contained in:
@@ -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.*;
|
||||
|
||||
@@ -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<>();
|
||||
|
||||
Reference in New Issue
Block a user