Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Version: 1.2
- prefix: &8[&7TLN&8]
- Chest-Prefix: &7ColorChat
- Locked: &cLocked
- Unlocked: &aUnlocked
- command /color [<text>]:
- description: Color text
- aliases: /colorchat, /chat
- permission: colorchat.open
- trigger:
- if arg is not set:
- open chest with 3 row named "{@Chest-Prefix}" to player
- if player has permission "colorchat.lightgreen" or "colorchat.*":
- format slot 0 of player with Light Green Dye with name "&aLight Green" with lore "{@Unlocked}" to close then run "sudo %player% colorchat lightgreen"
- else:
- format slot 0 of player with Light Green Dye with name "&aLight Green" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.aqua" or "colorchat.*":
- format slot 1 of player with Light Blue Dye with name "&bAqua" with lore "{@Unlocked}" to close then run "sudo %player% colorchat aqua"
- else:
- format slot 1 of player with Light Blue Dye with name "&bAqua" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.lightred" or "colorchat.*":
- format slot 2 of player with Red Dye with name "&cLight Red" with lore "{@Unlocked}" to close then run "sudo %player% colorchat lightred"
- else:
- format slot 2 of player with Red Dye with name "&cLight Red" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.pink" or "colorchat.*":
- format slot 3 of player with Pink Dye with name "&dPink" with lore "{@Unlocked}" to close then run "sudo %player% colorchat pink"
- else:
- format slot 3 of player with Pink Dye with name "&dPink" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.yellow" or "colorchat.*":
- format slot 4 of player with Yellow Dye with name "&eYellow" with lore "{@Unlocked}" to close then run "sudo %player% colorchat yellow"
- else:
- format slot 4 of player with Yellow Dye with name "&eYellow" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.white" or "colorchat.*":
- format slot 5 of player with Bone Meal with name "&fWhite" with lore "{@Unlocked}" to close then run "sudo %player% colorchat white"
- else:
- format slot 5 of player with Bone Meal with name "&fWhite" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.blue" or "colorchat.*":
- format slot 6 of player with Blue Dye with name "&1Blue" with lore "{@Unlocked}" to close then run "sudo %player% colorchat blue"
- else:
- format slot 6 of player with Blue Dye with name "&1Blue" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.green" or "colorchat.*":
- format slot 7 of player with Green Dye with name "&2Green" with lore "{@Unlocked}" to close then run "sudo %player% colorchat green"
- else:
- format slot 7 of player with Green Dye with name "&2Green" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.darkaqua" or "colorchat.*":
- format slot 8 of player with Cyan Dye with name "&3Dark Aqua" with lore "{@Unlocked}" to close then run "sudo %player% colorchat darkaqua"
- else:
- format slot 8 of player with Cyan Dye with name "&3Dark Aqua" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.red" or "colorchat.*":
- format slot 9 of player with redstone with name "&4Red" with lore "{@Unlocked}" to close then run "sudo %player% colorchat red"
- else:
- format slot 9 of player with redstone with name "&4Red" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.purple" or "colorchat.*":
- format slot 10 of player with purple dye with name "&5Purple" with lore "{@Unlocked}" to close then run "sudo %player% colorchat Purple"
- else:
- format slot 10 of player with purple dye with name "&5Purple" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.orange" or "colorchat.*":
- format slot 11 of player with orange dye with name "&6Orange" with lore "{@Unlocked}" to close then run "sudo %player% colorchat orange"
- else:
- format slot 11 of player with orange dye with name "&6Orange" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.lightgray" or "colorchat.*":
- format slot 12 of player with Light Gray dye with name "&7Gray" with lore "{@Unlocked}" to close then run "sudo %player% colorchat Lightgray"
- else:
- format slot 12 of player with Light Gray Dye with name "&7Gray" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.darkagray" or "colorchat.*":
- format slot 13 of player with Gray Dye with name "&8Dark Gray" with lore "{@Unlocked}" to close then run "sudo %player% colorchat darkgray"
- else:
- format slot 13 of player with Gray Dye with name "&8Dark Gray" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.lightblue" or "colorchat.*":
- format slot 14 of player with Cyan Dye with name "&9Light Blue" with lore "{@Unlocked}" to close then run "sudo %player% colorchat lightblue"
- else:
- format slot 14 of player with Cyan Dye with name "&9Light Blue" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.bold" or "colorchat.*":
- format slot 18 of player with name tag with name "&7&lBOLD" with lore "{@Unlocked}" to close then run "sudo %player% colorchat bold"
- else:
- format slot 18 of player with name tag with name "&7&lBOLD" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.strike" or "colorchat.*":
- format slot 19 of player with name tag with name "&7&mStrike" with lore "{@Unlocked}" to close then run "sudo %player% colorchat strike"
- else:
- format slot 19 of player with name tag with name "&7&mStrike" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.italic" or "colorchat.*":
- format slot 20 of player with name tag with name "&7&oItalic" with lore "{@Unlocked}" to close then run "sudo %player% colorchat italic"
- else:
- format slot 20 of player with name tag with name "&7&oItalic" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- if player has permission "colorchat.underline" or "colorchat.*":
- format slot 21 of player with name tag with name "&7&nUnderline" with lore "{@Unlocked}" to close then run "sudo %player% colorchat underline"
- else:
- format slot 21 of player with name tag with name "&7&nUnderline" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
- format slot 26 of player with tnt with name "&fReset" to close then run "sudo %player% colorchat reset"
- if arg 1 is not "reset" or "bold" or "italic" or "underline" or "strike" or "blue" or "green" or "darkaqua" or "red" or "purple" or "orange" or "lightgray" or "darkgray" or "lightblue" or "lightgreen" or "aqua" or "lightred" or "pink" or "yellow" or "white":
- message "&5&lColorChat8&l>cUnknow color."
- message "&7Color list&8:1Blue&7,2Green&7,3DarkAqua&7,4Red&7,5Purple&7,6Orange&7,7LightGray,8DarkGray&7,9LightBlue&7,aLightGreen&7,bAqua&7 ,&cLightRed7,&dPink7,&eYellow7,&f White"
- if arg 1 is "blue":
- if player has permission "colorchat.blue" or "colorchat.*":
- Set {Color.%player%} to "&1"
- message "7You have selected your chat color as1Blue&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "green":
- if player has permission "colorchat.green" or "colorchat.*":
- Set {Color.%player%} to "&2"
- message "7You have selected your chat color as2Green&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "darkaqua":
- if player has permission "colorchat.darkaqua" or "colorchat.*":
- Set {Color.%player%} to "&3"
- message "7You have selected your chat color as3Dark Aqua&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "red":
- if player has permission "colorchat.red" or "colorchat.*":
- Set {Color.%player%} to "&4"
- message "7You have selected your chat color as4Red&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "purple":
- if player has permission "colorchat.purple" or "colorchat.*":
- Set {Color.%player%} to "&5"
- message "7You have selected your chat color as5Purple&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "orange":
- if player has permission "colorchat.orange" or "colorchat.*":
- Set {Color.%player%} to "&6"
- message "7You have selected your chat color as6Orange&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "lightgray":
- if player has permission "colorchat.lightgray" or "colorchat.*":
- Set {Color.%player%} to "&7"
- message "7You have selected your chat color as7Light Gray&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "darkgray":
- if player has permission "colorchat.darkgray" or "colorchat.*":
- Set {Color.%player%} to "&8"
- message "&7You have selected your chat color as8Drak Gray&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "lightblue":
- if player has permission "colorchat.lightblue" or "colorchat.*":
- Set {Color.%player%} to "&9"
- message "&7You have selected your chat color as9Light Blue&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "lightgreen":
- if player has permission "colorchat.lightgreen" or "colorchat.*":
- Set {Color.%player%} to "&a"
- message "&8You have selected your chat color asaLight Green&8!"
- else:
- message "&cNo Permission!"
- if arg 1 is "aqua":
- if player has permission "colorchat.aqua" or "colorchat.*":
- Set {Color.%player%} to "&b"
- message "7You have selected your chat color asbAqua&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "lightred":
- if player has permission "colorchat.lightred" or "colorchat.*":
- Set {Color.%player%} to "&c"
- message "7You have selected your chat color ascLight Red&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "pink":
- if player has permission "colorchat.pink" or "colorchat.*":
- Set {Color.%player%} to "&d"
- message "7You have selected your chat color asdPink&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "yellow":
- if player has permission "colorchat.yellow" or "colorchat.*":
- Set {Color.%player%} to "&e"
- message "7You have selected your chat color aseYellow&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "white":
- if player has permission "colorchat.white" or "colorchat.*":
- Set {Color.%player%} to "&f"
- message "7You have selected your chat color asfWhite&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "bold":
- if player has permission "colorchat.bold" or "colorchat.*":
- Set {Color.format.%player%} to "&l"
- message "7You have selected your chat color aslBOLD&r&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "strike":
- if player has permission "colorchat.strike" or "colorchat.*":
- Set {Color.format.%player%} to "&m"
- message "7You have selected your chat color asmStrike&r&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "italic":
- if player has permission "colorchat.italic" or "colorchat.*":
- Set {Color.format.%player%} to "&o"
- message "7You have selected your chat color asoitalic&r&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "underline":
- if player has permission "colorchat.underline" or "colorchat.*":
- Set {Color.format.%player%} to "&n"
- message "7You have selected your chat color asnunderline&r&7!"
- else:
- message "&cNo Permission!"
- if arg 1 is "reset":
- set {Color.format.%player%} to ""
- set {Color.%player%} to ""
- message "7You havefreseted7your color chat!"
- on chat:
- if {Color.format.%player%} is not set:
- set {Color.format.%player%} to {Color.%player%}
- if {Color.%player%} is not set:
- set message to "%message%"
- else:
- set message to "%{Color.%player%}%%{Color.format.%player%}%%message%"
- command /nochatperms:
- trigger:
- message "&cNo Permission!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement