SHOW:
|
|
- or go back to the newest paste.
| 1 | # | |
| 2 | # Plugin to color your armor based on the wool you click | |
| 3 | # | |
| 4 | # Created by MostFunGuy of McMidgard.net and OTG.com | |
| 5 | ||
| 6 | options: | |
| 7 | - | nondonor = Lifetime members can click wool to change the color of their armor. You know you wanna! |
| 7 | + | nondonor = Lifetime members can click wool to change the color of their armor. You know you wanna! |
| 8 | ||
| 9 | ||
| 10 | # WHITE | |
| 11 | on click on white wool: | |
| 12 | - | set {_woolcooldown.white} to difference between {_woolcooldown.white.lastused} and now
|
| 12 | + | set {_woolcooldown.white} to difference between {_woolcooldown.white.lastused} and now
|
| 13 | - | player has permission "skript.white": |
| 13 | + | player has permission "skript.white": |
| 14 | - | message "you clicked white" to player |
| 14 | + | message "you clicked white" to player |
| 15 | - | if {_woolcooldown.white} is less then 5 seconds:
|
| 15 | + | if {_woolcooldown.white} is less then 5 seconds:
|
| 16 | - | equip player with leather helmet |
| 16 | + | equip player with leather helmet |
| 17 | - | equip player with leather chestplate |
| 17 | + | equip player with leather chestplate |
| 18 | - | equip player with leather leggings |
| 18 | + | equip player with leather leggings |
| 19 | - | equip player with leather boots |
| 19 | + | equip player with leather boots |
| 20 | - | message "<yellow>Your armor has been colored <white>WHITE" |
| 20 | + | message "<yellow>Your armor has been colored <white>WHITE" |
| 21 | - | dye player's helmet white |
| 21 | + | dye player's helmet white |
| 22 | - | dye player's chestplate white |
| 22 | + | dye player's chestplate white |
| 23 | - | dye player's leggings white |
| 23 | + | dye player's leggings white |
| 24 | - | dye player's boots white |
| 24 | + | dye player's boots white |
| 25 | - | cancel event |
| 25 | + | cancel event |
| 26 | - | else: |
| 26 | + | else: |
| 27 | - | set {woolcooldown.%player%.white.lastused} to now
|
| 27 | + | set {woolcooldown.%player%.white.lastused} to now
|
| 28 | - | player is wearing all leather armour |
| 28 | + | player is wearing all leather armour |
| 29 | - | message "<yellow>Are you sure you want to be colored <white>WHITE? <yellow>Click again to confirm :D" to player |
| 29 | + | message "<yellow>Are you sure you want to be colored <white>WHITE? <yellow>Click again to confirm :D" to player |
| 30 | - | else: |
| 30 | + | else: |
| 31 | - | message "<yellow>Are you sure you want to be equipped with <white>WHITE LEATHER? <yellow>Click again to confirm :D" to player |
| 31 | + | message "<yellow>Are you sure you want to be equipped with <white>WHITE LEATHER? <yellow>Click again to confirm :D" to player |
| 32 | - | else: |
| 32 | + | else: |
| 33 | - | message "{nondonor}" to player |
| 33 | + | message "{nondonor}" to player |