Advertisement
Guest User

enchants

a guest
Aug 18th, 2014
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. variables:
  2. {enchants} = false
  3. {anvils} = false
  4.  
  5. command /enchants [<text>]:
  6. usage: /enchants <on/off>
  7. permission: skript.op
  8. trigger:
  9. if arg 1 is "on":
  10. set {enchants} to true
  11. broadcast "<Cyan>[<Gray>UHC<Cyan>] <Light Cyan>Enchantment Tables Enabled"
  12.  
  13. if arg 1 is "off":
  14. set {enchants} to false
  15. broadcast "<Cyan>[<Gray>UHC<Cyan>] <Light Cyan>Enchantment Tables Disabled"
  16.  
  17.  
  18. on craft of enchantment table:
  19. {enchants} is false
  20. cancel the event
  21.  
  22. command /anvils [<text>]:
  23. usage: /anvils <on/off>
  24. permission: skript.op
  25. trigger:
  26. if arg 1 is "on":
  27. set {anvils} to true
  28. broadcast "<Cyan>[<Gray>UHC<Cyan>] <white>Anvils Enabled"
  29.  
  30. if arg 1 is "off":
  31. set {anvils} to false
  32. broadcast "<Cyan>[<Gray>UHC<Cyan>] <white>Anvils Disabled"
  33.  
  34.  
  35. on craft of anvil:
  36. {anvils} is false
  37. cancel the event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement