Advertisement
Ilom_uk

No Enchants + No Anvils

Oct 22nd, 2017
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. #No Enchants + No Anvils
  2. options:
  3. P: &8[&7UHC&8]&c
  4.  
  5. command /enchants [<text>]:
  6. usage: /enchants <on/off>
  7. permission: skript.host
  8. trigger:
  9. if arg 1 is "on":
  10. set {enchants} to true
  11. broadcast "{@P} &cEnchantment Tables &aEnabled"
  12.  
  13. if arg 1 is "off":
  14. set {enchants} to false
  15. broadcast "{@P} &cEnchantment Tables &4Disabled"
  16.  
  17.  
  18. on craft of enchantment table:
  19. if {enchants} is false:
  20. cancel the event
  21. send "{@P} &cEnchanting Tables are &4Disabled&c!"
  22.  
  23. on place of enchantment table:
  24. if {enchants} is false:
  25. cancel the event
  26. send "{@P} &cEnchanting Tables are &4Disabled&c!"
  27.  
  28. on break of enchantment table:
  29. if {enchants} is false:
  30. cancel the event
  31. send "{@P} &cEnchanting Tables are &4Disabled&c!"
  32.  
  33. on rightclick on enchantment table:
  34. if {enchants} is false:
  35. cancel the event
  36. send "{@P} &cEnchanting Tables are &4Disabled&c!"
  37.  
  38. command /anvils [<text>]:
  39. usage: /anvils <on/off>
  40. permission: skript.host
  41. trigger:
  42. if arg 1 is "on":
  43. set {anvils} to true
  44. broadcast "{@P} &cAnvils &aEnabled"
  45.  
  46. if arg 1 is "off":
  47. set {anvils} to false
  48. broadcast "{@P} &cAnvils &4Disabled"
  49.  
  50. on craft of anvil:
  51. if {anvils} is false:
  52. cancel the event
  53. send "{@P} &cAnvils are &4Disabled&c!"
  54.  
  55. on break of anvil:
  56. if {anvils} is false:
  57. cancel the event
  58. send "{@P} &cAnvils are &4Disabled&c!"
  59.  
  60. on place of anvil:
  61. if {anvils} is false:
  62. cancel the event
  63. send "{@P} &cAnvils are &4Disabled&7!"
  64.  
  65. on rightclick on anvil:
  66. if {anvils} is false:
  67. cancel the event
  68. send "{@P} &cAnvils are &4Disabled&c!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement