Strip colors off chat, use getDisplayName instead of getName
This commit is contained in:
parent
5f32f8fb99
commit
63b9579fa5
4 changed files with 10 additions and 10 deletions
|
|
@ -71,7 +71,7 @@ public class ClientUpdateHandler implements HttpHandler {
|
|||
for(int i=0;i<players.length;i++) {
|
||||
Player p = players[i];
|
||||
Location pl = p.getLocation();
|
||||
update.players[i] = new Client.Player(p.getName(), pl.getWorld().getName(), pl.getX(), pl.getY(), pl.getZ());
|
||||
update.players[i] = new Client.Player(p.getDisplayName(), pl.getWorld().getName(), pl.getX(), pl.getY(), pl.getZ());
|
||||
}
|
||||
|
||||
update.updates = mapManager.getWorldUpdates(worldName, since);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue