mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
Can use + in /skin to retrieve skin from minecraft.net instead.
This commit is contained in:
parent
9dd55616ee
commit
e14b78da4d
@ -59,6 +59,8 @@ namespace MCGalaxy.Commands.CPE {
|
||||
|
||||
if (!ValidName(p, skin, "skin")) return;
|
||||
if ((isBot || who != p) && !CheckExtraPerm(p)) { MessageNeedPerms(p, "can change the skin of other players."); return; }
|
||||
if (skin[0] == '+')
|
||||
skin = "http://skins.minecraft.net/MinecraftSkins/" + skin.Substring(1) + ".png";
|
||||
|
||||
if (isBot) {
|
||||
pBot.skinName = skin;
|
||||
@ -86,8 +88,10 @@ namespace MCGalaxy.Commands.CPE {
|
||||
|
||||
public override void Help(Player p) {
|
||||
Player.Message(p, "%T/skin [name] [skin] %H- Sets the skin of that player.");
|
||||
Player.Message(p, "%T/skin bot [name] [model] %H- Sets the model of that bot.");
|
||||
Player.Message(p, "%HFor example, the player \"Test\" by default has the skin \"Test\".");
|
||||
Player.Message(p, "%T/skin bot [name] [skin] %H- Sets the skin of that bot.");
|
||||
Player.Message(p, "%H e.g the player \"Test\" by default has the skin \"Test\".");
|
||||
Player.Message(p, "%H If you put a + before [skin], players will retrieve [skin] " +
|
||||
"from minecraft.net instead of classicube.net.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user