Hello to everyone that's reading this.
I'm creating a UHC Plugin for Minecraft 1.8.8 using Spigot.
I'm currently creating the scoreboard system of that plugin and I'm in a trouble because I don't know how to do that in a efficient way. I have this code but when I join the server I get kicked for Internal Exception: io.netty.handler.codec.DecoderException: The received string length is longer than the maxium allowed (22 > 16) and also I think that there's a better way to do what I want.
What I want?
I want to read the scoreboard lines that are in scoreboard.yml file and show them in-game, replacing $variable with some in-game values.
Scoreboard Class Code: https://paste.md-5.net/cazemepawu.java
Main Class Code: https://paste.md-5.net/nirajocipu.java
Scoreboard.yml: https://paste.md-5.net/genibikabe.bash