on chat:
if {colour.%player%} is set:
set message format to "{@messageformat}"
on chat:
if {color.%player%} is set:
set message format to "{@messageformat}"
on first join:
set {color.%player%} to "&7"
set {colour.%player%} to "&7"
command /b:
permission: color.test
trigger:
set {color.%player%} to "&7"
set {colour.%player%} to "&7"
command /color:
aliases: colour
trigger:
open chest with 3 rows named "&d&lName & ChatColour" to player
format slot 0 of player with gray glass pane named "&f"
format slot 10 of player with light gray wool named "&7Gray" with lore "&eFree" to run [make player execute command "/ol 1"]
format slot 11 of player with yellow wool named "&eYellow" with lore "&e$100000" to run [make player execute command "/ol 2"]
format slot 12 of player with green wool named "&2Green" with lore "&e$300000" to run [make player execute command "/ol 3"]
format slot 13 of player with cyan wool named "&3Aqua" with lore "&e$1000000" to run [make player execute command "/ol 4"]
format slot 14 of player with red wool named "&cRed" with lore "&e$2000000" to run [make player execute command "/ol 5"]
format slot 15 of player with white wool named "&fWhite" with lore "&e$5000000" to run [make player execute command "/ol 6"]
format slot 16 of player with gold block named "&6Gold" with lore "&e$10000000" to run [make player execute command "/ol 7"]
26
command /roloc [<text>]:
trigger:
if arg-1 is "1":
set {color.%player%} to "&7"
set {colour.%player%} to "&7"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &7Gray&f."
if arg-1 is "2":
if player's balance is less than 100000:
message "&3Insufficient funds! &7(&e$100000&7)"
stop
else:
remove 100000 from player's balance
set {color.%player%} to "&e"
set {colour.%player%} to "&e"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &eYellow&f."
if arg-1 is "3":
if player's balance is less than 300000:
message "&3Insufficient funds! &7(&e$300000&7)"
stop
else:
remove 300000 from player's balance
set {color.%player%} to "&2"
set {colour.%player%} to "&2"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &2Green&f."
if arg-1 is "4":
if player's balance is less than 1000000:
message "&3Insufficient funds! &7(&e$1000000&7)"
stop
else:
remove 1000000 from player's balance
set {color.%player%} to "&3"
set {colour.%player%} to "&3"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &3Aqua&f."
if arg-1 is "5":
if player's balance is less than 2000000:
message "&3Insufficient funds! &7(&e$2000000&7)"
stop
else:
remove 2000000 from player's balance
set {color.%player%} to "&c"
set {colour.%player%} to "&c"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &cRed&f."
if arg-1 is "6":
if player's balance is less than 5000000:
message "&3Insufficient funds! &7(&e$5000000&7)"
stop
else:
remove 5000000 from player's balance
set {color.%player%} to "&f"
set {colour.%player%} to "&f"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &fWhite&f."
if arg-1 is "7":
if player's balance is less than 10000000:
message "&3Insufficient funds! &7(&e$10000000&7)"
stop
else:
remove 10000000 from player's balance
set {color.%player%} to "&6"
set {colour.%player%} to "&6"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &6Gold&f."
Simple Chat&Name color (/color)
in Script Releases
Posted · Edited by Cec_Tora
options:
messageformat: %player's prefix%&r %{colour.%player%}%%player%&r%player's suffix%&8:&r %{color.%player%}%%message%
on chat:
if {colour.%player%} is set:
set message format to "{@messageformat}"
on chat:
if {color.%player%} is set:
set message format to "{@messageformat}"
on first join:
set {color.%player%} to "&7"
set {colour.%player%} to "&7"
command /b:
permission: color.test
trigger:
set {color.%player%} to "&7"
set {colour.%player%} to "&7"
command /color:
aliases: colour
trigger:
open chest with 3 rows named "&d&lName & ChatColour" to player
format slot 0 of player with gray glass pane named "&f"
format slot 10 of player with light gray wool named "&7Gray" with lore "&eFree" to run [make player execute command "/ol 1"]
format slot 11 of player with yellow wool named "&eYellow" with lore "&e$100000" to run [make player execute command "/ol 2"]
format slot 12 of player with green wool named "&2Green" with lore "&e$300000" to run [make player execute command "/ol 3"]
format slot 13 of player with cyan wool named "&3Aqua" with lore "&e$1000000" to run [make player execute command "/ol 4"]
format slot 14 of player with red wool named "&cRed" with lore "&e$2000000" to run [make player execute command "/ol 5"]
format slot 15 of player with white wool named "&fWhite" with lore "&e$5000000" to run [make player execute command "/ol 6"]
format slot 16 of player with gold block named "&6Gold" with lore "&e$10000000" to run [make player execute command "/ol 7"]
26
command /roloc [<text>]:
trigger:
if arg-1 is "1":
set {color.%player%} to "&7"
set {colour.%player%} to "&7"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &7Gray&f."
if arg-1 is "2":
if player's balance is less than 100000:
message "&3Insufficient funds! &7(&e$100000&7)"
stop
else:
remove 100000 from player's balance
set {color.%player%} to "&e"
set {colour.%player%} to "&e"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &eYellow&f."
if arg-1 is "3":
if player's balance is less than 300000:
message "&3Insufficient funds! &7(&e$300000&7)"
stop
else:
remove 300000 from player's balance
set {color.%player%} to "&2"
set {colour.%player%} to "&2"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &2Green&f."
if arg-1 is "4":
if player's balance is less than 1000000:
message "&3Insufficient funds! &7(&e$1000000&7)"
stop
else:
remove 1000000 from player's balance
set {color.%player%} to "&3"
set {colour.%player%} to "&3"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &3Aqua&f."
if arg-1 is "5":
if player's balance is less than 2000000:
message "&3Insufficient funds! &7(&e$2000000&7)"
stop
else:
remove 2000000 from player's balance
set {color.%player%} to "&c"
set {colour.%player%} to "&c"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &cRed&f."
if arg-1 is "6":
if player's balance is less than 5000000:
message "&3Insufficient funds! &7(&e$5000000&7)"
stop
else:
remove 5000000 from player's balance
set {color.%player%} to "&f"
set {colour.%player%} to "&f"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &fWhite&f."
if arg-1 is "7":
if player's balance is less than 10000000:
message "&3Insufficient funds! &7(&e$10000000&7)"
stop
else:
remove 10000000 from player's balance
set {color.%player%} to "&6"
set {colour.%player%} to "&6"
message "&d&lName & ChatColour &8| &fYour name & chat color is now &6Gold&f."