Solved ColorName skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Gino

Member
Apr 10, 2017
24
4
0
25
Category:
Color
Suggested name:
ColorName
Spigot/Skript Version:
1.13.2 Spigot
What I want:

A color skript that opens a gui were you can select which color you want to change your name to.
So
/color <color> < command to change your ColorName
/namecolor < command that opens a Gui were you can change your namecolor


Ideas for commands:
/color <color> < command to change your ColorName
/namecolor < command that opens a Gui


Ideas for permissions:
color.use < All colors access

When I'd like it by: Soon as possible, thanks for reading <3
 
Here ya go:
Code:
command /color <string>:
    permission: color.use
    trigger:
        set {_c::*} to split "0123456789abcdef" at ""
        if {_c::*} does not contain arg-1:
            message "&cInvalid color! Use %join {_c::*} with "", ""%"
        else:
            set {color::%uuid of player%} to colored "&%arg-1%"
            message "&aColor changed to &%arg-1%%arg-1%"
       
command /namecolor:
    permission: color.use
    trigger:
        open chest inventory with 3 rows named "&aChoose a color" to player
        set {_c::*} to split "0123456789abcdef" at ""
        set {_items::*} to black wool, blue wool, green wool, cyan wool, red wool, purple wool, orange wool, gray wool, dark gray wool, light blue wool, light green wool, light blue wool, pink wool, magenta wool, yellow wool, white wool
        set {_i} to 0
        loop {_c::*}:
            set {_t} to loop-value
            create gui slot {_i} of player with {_items::%loop-index%} named colored "&%loop-value%%loop-value%" to run:
                make player execute command "color %{_t}%"
                close inventory of player
            add 1 to {_i}
       
on chat:
    {color::%uuid of player%} is set
    set nickname of player to "%{color::%uuid of player%}%%player%"
 
Last edited: