options: changeChatNick: true changeTablistNick: true changeAboveHeadNick: true function removeColors(text: string, player: player) :: text: set {_colors::*} to integers from 0 to 9 and split "abcdefonmrkl" by "" set {_text::*} to {_text} split by "" loop {_colors::*}: if {_text} contains "&%loop-value%": {_player} doesn't have permission "nick.color.&%loop-value%" or "nick.color.all" loop {_text::*}: loop-value-2 = "&" {_text::%loop-index-2 parsed as int + 1%} = "%loop-value-1%" delete {_text::%loop-index-2%} delete {_text::%loop-index-2 parsed as int + 1%} set {_text} to join {_text::*} by "" return colored {_text} function skinOf(player: string) :: skin: set {_id} to url "https://api.mcuuid.com/txt/uuid/%{_player}%"'s line 1 replace "-" in {_id} with "" set {_jsonResponse::*} to url "https://api.mineskin.org/generate/user/%{_id}%"'s contents set {_jsonResponse} to join {_jsonResponse::*} by "" set {_value} to content of json value "texture" from text (content of json value "data" from text {_jsonResponse}) set {_values::*} to content of json value's "value" and "signature" from text {_value} return skin with value {_values::1} signature {_values::2} command /nick : permission: nick.change permission message: &cYou don't have permission for this. executable by: players usage: /nick description: Changes your above head,tablist and/or chat nick. trigger: if arg regex matches "\w{4,16}": if {@changeChatNick} = true: set sender's display name to removeColors(arg, sender) if {@changeTablistNick} = true: set sender's mundosk tablist name to removeColors(arg, sender) if {@changeAboveHeadNick} = true: set sender's nametag to removeColors(arg, sender) else: send "&cThe nickname can't be less than 4 characters or greater than 16 and doesn't accept any special characters." command /skin : permission: skin.change permission message: &cYou don't have permission for this. executable by: players and console usage: /skin [player] description: changes your skin to the skin of other person's IGN. trigger: set {_skin} to skinOf(arg-1) if {_skin} is set: set arg-2's displayed skin to {_skin} else: send "&cInvalid IGN, try again later or put other IGN."