SHOW:
|
|
- or go back to the newest paste.
| 1 | - | command /NoDiamondArmor <text>: |
| 1 | + | options: |
| 2 | - | description: NoDiamondArmor Enable:Disable:Toggle |
| 2 | + | GZ : &6[&bGapZap&6] |
| 3 | - | usage: /NoDiamondArmor <enable:disable:toggle> |
| 3 | + | D : &cDisabled! |
| 4 | - | aliases: /nda |
| 4 | + | E : &cEnabled! |
| 5 | - | permission: NoDiamondArmor.admin |
| 5 | + | NS : &c/gapzap <enable/disable/toggle> |
| 6 | ||
| 7 | - | if arg 1 is "enable": |
| 7 | + | command /gapzap [<text>]: |
| 8 | - | set {NoDiamondArmor} to true
|
| 8 | + | usage: /gapzap <enable/disable/toggle> |
| 9 | - | broadcast "&6[&BNoDiamondArmor&6] &CEnabled!" |
| 9 | + | permission: gapzap.admin |
| 10 | - | if arg 1 is "disable": |
| 10 | + | |
| 11 | - | set {NoDiamondArmor} to false
|
| 11 | + | if arg 1 is not set: |
| 12 | - | broadcast "&6[&BNoDiamondArmor&6] &CDisabled!" |
| 12 | + | message "{@GZ} {@NS}"
|
| 13 | - | if arg 1 is "toggle": |
| 13 | + | else if arg 1 is "enable": |
| 14 | - | if {NoDiamondArmor} is true:
|
| 14 | + | set {gapzap} to true
|
| 15 | - | set {NoDiamondArmor} to false
|
| 15 | + | broadcast "{@GZ} {@E}"
|
| 16 | - | broadcast "&6[&BNoDiamondArmor&6] &CDisabled!" |
| 16 | + | else if arg 1 is "disable": |
| 17 | set {gapzap} to false
| |
| 18 | - | if {NoDiamondArmor} is false:
|
| 18 | + | broadcast "{@GZ} {@D}"
|
| 19 | - | set {NoDiamondArmor} to true
|
| 19 | + | else if arg 1 is "toggle": |
| 20 | - | broadcast "&6[&BNoDiamondArmor&6] &CEnabled!" |
| 20 | + | if {gapzap} is true:
|
| 21 | set {gapzap} to false
| |
| 22 | - | |
| 22 | + | broadcast "{@GZ} {@D}"
|
| 23 | stop | |
| 24 | - | on craft of diamond helmet: |
| 24 | + | if {gapzap} is false:
|
| 25 | - | if {NoDiamondArmor} is true:
|
| 25 | + | set {gapzap} to true
|
| 26 | - | cancel the event |
| 26 | + | broadcast "{@GZ} {@E}"
|
| 27 | - | close the player's inventory |
| 27 | + | |
| 28 | - | message "&6[&BNoDiamondArmor&6] &CYou cannot craft this item!" |
| 28 | + | else: |
| 29 | - | |
| 29 | + | message "{@GZ} {@NS}"
|
| 30 | - | on craft of diamond chestplate: |
| 30 | + | |
| 31 | - | if {NoDiamondArmor} is true:
|
| 31 | + | on damage: |
| 32 | - | cancel the event |
| 32 | + | if {gapzap} is true:
|
| 33 | - | close the player's inventory |
| 33 | + | remove regeneration from victim |
| 34 | - | message "&6[&BNoDiamondArmor&6] &CYou cannot craft this item!" |
| 34 | + | |
| 35 | - | |
| 35 | + | |
| 36 | - | on craft of diamond leggings: |
| 36 | + | |
| 37 | - | if {NoDiamondArmor} is true:
|
| 37 | + | # Gamemode Idea by DrDiablon |