Guest User

Untitled

a guest
Jul 24th, 2021
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. on load:
  2. if {portal.nether} is not set:
  3. set {portal.nether} to 0
  4. if {portl.end} is not set:
  5. set {portal.end} to 0
  6.  
  7.  
  8. command /portalnether [<text>]:
  9. permission: "portal.nether"
  10. trigger:
  11. if arg-1 is not set:
  12. if {portal.nether} is 1:
  13. send "&aNether jest włączony"
  14. else:
  15. send "&cNether jest wyłączony"
  16. else:
  17. if arg-1 is "true":
  18. set {portal.nether} to 1
  19. send "&aWłączam nether"
  20. else if arg-1 is "false":
  21. set {portal.nether} to 0
  22. send "&cWyłączam nether"
  23. else:
  24. send "Nieprawidłowe użycie"
  25.  
  26.  
  27. command /portalend [<text>]:
  28. permission: "portal.end"
  29. trigger:
  30. if arg-1 is not set:
  31. if {portl.end} is 1:
  32. send "&aEnd jest włączony"
  33. else:
  34. send "&cEnd jest wyłączony"
  35. else:
  36. if arg-1 is "true":
  37. set {portal.end} to 1
  38. send "&aWłączam end"
  39. else if arg-1 is "false":
  40. set {portal.end} to 0
  41. send "&cWyłączam end"
  42. else:
  43. send "Nieprawidłowe użycie"
  44.  
  45. on portal:
  46. if "%event-teleportcause%" is "nether portal":
  47. if {portal.nether} is 0:
  48. send "&cNether jest aktualnie wyłączony"
  49. cancel event
  50. else if "%event-teleportcause%" is "end portal":
  51. if {portal.end} is 0:
  52. send "&cEnd jest aktualnie wyłączony"
  53. cancel event
  54.  
Advertisement
Add Comment
Please, Sign In to add comment