Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Plugin to color your armor based on the wool you click
- #
- # Created by MostFunGuy of McMidgard.net and OTG.com
- options:
- nondonor = Lifetime members can click wool to change the color of their armor. You know you wanna!
- # WHITE
- on click on white wool:
- set {_woolcooldown.white} to difference between {_woolcooldown.white.lastused} and now
- player has permission "skript.white":
- message "you clicked white" to player
- if {_woolcooldown.white} is less then 5 seconds:
- equip player with leather helmet
- equip player with leather chestplate
- equip player with leather leggings
- equip player with leather boots
- message "<yellow>Your armor has been colored <white>WHITE"
- dye player's helmet white
- dye player's chestplate white
- dye player's leggings white
- dye player's boots white
- cancel event
- else:
- set {woolcooldown.%player%.white.lastused} to now
- player is wearing all leather armour
- message "<yellow>Are you sure you want to be colored <white>WHITE? <yellow>Click again to confirm :D" to player
- else:
- message "<yellow>Are you sure you want to be equipped with <white>WHITE LEATHER? <yellow>Click again to confirm :D" to player
- else:
- message "{nondonor}" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement