add color support

This commit is contained in:
Chris 2017-02-07 23:35:33 +01:00
parent 9f05a6e8de
commit 18fae9e381
1 changed files with 2 additions and 0 deletions

View File

@ -257,6 +257,8 @@ public class Playtime extends JavaPlugin implements Listener
_commandWithParas = _commandWithParas.replace("%%player%%", UUIDCache.get(_player));
_commandWithParas = _commandWithParas.replace("%%time%%", "" + _time);
_commandWithParas = ChatColor.translateAlternateColorCodes('&', _commandWithParas);
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), _commandWithParas);
}
}