From d1626f7100f2513aa696617af7d4efa657dde091 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 10 Jul 2017 10:08:37 +1000 Subject: [PATCH] Now hackrank changes entity nametag and tab list colour. Fixes #440. --- MCGalaxy/Commands/other/CmdHackRank.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MCGalaxy/Commands/other/CmdHackRank.cs b/MCGalaxy/Commands/other/CmdHackRank.cs index ece12ba29..68a32e18b 100644 --- a/MCGalaxy/Commands/other/CmdHackRank.cs +++ b/MCGalaxy/Commands/other/CmdHackRank.cs @@ -50,6 +50,11 @@ namespace MCGalaxy.Commands.Misc { Player.Message(p, "You are now ranked " + newRank.ColoredName + "%S, type /help for your new set of commands."); p.color = newRank.Color; + + Entities.GlobalDespawn(p, true); + Entities.GlobalSpawn(p, true); + p.SetPrefix(); + DoKick(p, newRank); }