Fixed unit pads / Added chat log

This commit is contained in:
Anuken
2018-09-02 14:16:14 -04:00
parent d031351bc8
commit a01f64080d
6 changed files with 21 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import io.anuke.annotations.Annotations.Remote;
import io.anuke.annotations.Annotations.Variant;
import io.anuke.mindustry.Vars;
import io.anuke.mindustry.entities.Player;
import io.anuke.ucore.util.Log;
import static io.anuke.mindustry.Vars.maxTextLength;
import static io.anuke.mindustry.Vars.playerGroup;
@@ -17,6 +18,8 @@ public class NetEvents{
throw new ValidateException(player, "Player has sent a message above the text limit.");
}
Log.info("&y{0}: &lb{1}", (player.name == null ? "" : player.name), message);
if(Vars.ui != null){
Vars.ui.chatfrag.addMessage(message, player == null ? null : colorizeName(player.id, player.name));
}