Cec_Tora Posted May 20, 2021 Share Posted May 20, 2021 (edited) 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." Edited May 20, 2021 by Cec_Tora Link to comment Share on other sites More sharing options...
notedwtf Posted May 21, 2021 Share Posted May 21, 2021 On 5/20/2021 at 8:39 AM, Cec_Tora said: 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." can you put this into a pastebin next time Link to comment Share on other sites More sharing options...
ChunkerDunkers Posted May 22, 2021 Share Posted May 22, 2021 I would recommend using %player's uuid%. Also, change your code to this. on first join: if {color.%player%} is not set set {color.%player%} to "&7" on join: if {color.%player%} is not set set {color.%player%} to "&7" Hello, I'm Nolan! Cool Links Vote Please - bit.ly/3tMXajE MC Server - bit.ly/3hqYAOy Please leave a like if I helped! Link to comment Share on other sites More sharing options...
MeIsSmexyMan Posted May 31, 2021 Share Posted May 31, 2021 13 errors! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now