Expression 2 - Colour Changer

Its all in the title you just type one of the following commands and your player model will become that colour! I would also like to ask you if you could use 2 minutes of your life to write a comment, thanks guys.

!blue
!yellow
!red
!green
!brown
!purple
!rainbow


@name Colour Changer - By MrFreaky123
runOnTick(1)
    
if(owner():lastSaid() == "!blue"){
entity():owner():setMaterial("models/shiny")
entity():owner():setColor(0,0,175)
}
    
if(owner():lastSaid() == "!green"){
entity():owner():setMaterial("models/shiny")
entity():owner():setColor(0,175,0)
}
    
if(owner():lastSaid() == "!red"){
entity():owner():setMaterial("models/shiny")
entity():owner():setColor(175,0,0)
}

if(owner():lastSaid() == "!rainbow"){
entity():owner():setMaterial("models/shiny")
owner():setColor(vec(random(255),random(255),random(255)))
}

if(owner():lastSaid() == "!purple"){
entity():owner():setMaterial("models/shiny")
entity():owner():setColor(95,0,255)
}

if(owner():lastSaid() == "!yellow"){
entity():owner():setMaterial("models/shiny")
entity():owner():setColor(255,255,0)
}

if(owner():lastSaid() == "!brown"){
entity():owner():setMaterial("models/shiny")
entity():owner():setColor(110,85,0)
}

Also, could you please not take the credit for this and keep the name to “Colour Changer - By MrFreaky123” because it upsets me when people steal my work.

Very simple and ineffecient E2. There’s no reason to use runOnTick since it sets the color and material every tick.
Use something like chatClk() instead of.

Also I think this fits more to wiremod.com

Is that constructive criticism?