mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Fix /buy color, color/skin not respawning right player (Thanks Undertake).
This commit is contained in:
parent
cba598f1c7
commit
afa1b1dac3
@ -49,7 +49,7 @@ namespace MCGalaxy.Commands.CPE {
|
||||
protected override void SetPlayerData(Player p, Player who, string skin) {
|
||||
skin = GetSkin(skin, who.truename);
|
||||
who.SkinName = skin;
|
||||
Entities.GlobalRespawn(p);
|
||||
Entities.GlobalRespawn(who);
|
||||
|
||||
if (p != who) {
|
||||
Player.GlobalMessage(who, who.ColoredName + "'s %Sskin was changed to &c" + skin);
|
||||
|
@ -63,7 +63,7 @@ namespace MCGalaxy.Commands.Chatting {
|
||||
who.color = color;
|
||||
}
|
||||
|
||||
Entities.GlobalRespawn(p);
|
||||
Entities.GlobalRespawn(who);
|
||||
who.SetPrefix();
|
||||
Database.Backend.UpdateRows("Players", "color = @1", "WHERE Name = @0", who.name, color);
|
||||
}
|
||||
|
@ -61,7 +61,6 @@ namespace MCGalaxy.Network {
|
||||
public override string GetHeartbeatData() {
|
||||
string name = ServerConfig.Name;
|
||||
Server.zombie.OnHeartbeat(ref name);
|
||||
Server.lava.OnHeartbeat(ref name);
|
||||
name = Colors.StripColors(name);
|
||||
|
||||
return "&port=" + ServerConfig.Port +
|
||||
|
Loading…
x
Reference in New Issue
Block a user