LuckyLucario99

No Diamond Armor Skript by LuckyLucario99

Sep 26th, 2015
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. command /NoDiamondArmor <text>:
  2. description: NoDiamondArmor Enable:Disable:Toggle
  3. usage: /NoDiamondArmor <enable:disable:toggle>
  4. aliases: /nda
  5. permission: NoDiamondArmor.admin
  6. trigger:
  7. if arg 1 is "enable":
  8. set {NoDiamondArmor} to true
  9. broadcast "&6[&BNoDiamondArmor&6] &CEnabled!"
  10. if arg 1 is "disable":
  11. set {NoDiamondArmor} to false
  12. broadcast "&6[&BNoDiamondArmor&6] &CDisabled!"
  13. if arg 1 is "toggle":
  14. if {NoDiamondArmor} is true:
  15. set {NoDiamondArmor} to false
  16. broadcast "&6[&BNoDiamondArmor&6] &CDisabled!"
  17. stop
  18. if {NoDiamondArmor} is false:
  19. set {NoDiamondArmor} to true
  20. broadcast "&6[&BNoDiamondArmor&6] &CEnabled!"
  21. stop
  22.  
  23.  
  24. on craft of diamond helmet:
  25. if {NoDiamondArmor} is true:
  26. cancel the event
  27. close the player's inventory
  28. message "&6[&BNoDiamondArmor&6] &CYou cannot craft this item!"
  29.  
  30. on craft of diamond chestplate:
  31. if {NoDiamondArmor} is true:
  32. cancel the event
  33. close the player's inventory
  34. message "&6[&BNoDiamondArmor&6] &CYou cannot craft this item!"
  35.  
  36. on craft of diamond leggings:
  37. if {NoDiamondArmor} is true:
  38. cancel the event
  39. close the player's inventory
  40. message "&6[&BNoDiamondArmor&6] &CYou cannot craft this item!"
  41.  
  42. on craft of diamond boots:
  43. if {NoDiamondArmor} is true:
  44. cancel the event
  45. close the player's inventory
  46. message "&6[&BNoDiamondArmor&6] &CYou cannot craft this item!"
  47.  
  48.  
  49. # Skript made by LuckyLucario99
  50. # Gamemode Idea by Silverteeth
Advertisement
Add Comment
Please, Sign In to add comment