Scoreboard replacement

Discussion in 'Spigot Plugin Development' started by WailTosti, Apr 25, 2017.

  1. How to replace this without change it to CharSequence?
    ChatUtil.format(fm.getConfig("Scoreboard.yml").get("Scoreboard.Lines.1").replace("%player%", p.getName()).replace("%arrow%", "ยป").replace("%coins%", CoinsAPI.getCoins(p)));
  2. The problem is how to replace %coins% with the coins from a player. But the CharSequence doesn't work when i do that. Can i do it on a other way.
  3. Use String.valueof(CoinsAPI.getCoins(p))
  4. Convert the Integer to a String
  5. So much thanks, it works now!!!! :) You are life savers :p
    • Like Like x 1