Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- if {portal.nether} is not set:
- set {portal.nether} to 0
- if {portl.end} is not set:
- set {portal.end} to 0
- command /portalnether [<text>]:
- permission: "portal.nether"
- trigger:
- if arg-1 is not set:
- if {portal.nether} is 1:
- send "&aNether jest włączony"
- else:
- send "&cNether jest wyłączony"
- else:
- if arg-1 is "true":
- set {portal.nether} to 1
- send "&aWłączam nether"
- else if arg-1 is "false":
- set {portal.nether} to 0
- send "&cWyłączam nether"
- else:
- send "Nieprawidłowe użycie"
- command /portalend [<text>]:
- permission: "portal.end"
- trigger:
- if arg-1 is not set:
- if {portl.end} is 1:
- send "&aEnd jest włączony"
- else:
- send "&cEnd jest wyłączony"
- else:
- if arg-1 is "true":
- set {portal.end} to 1
- send "&aWłączam end"
- else if arg-1 is "false":
- set {portal.end} to 0
- send "&cWyłączam end"
- else:
- send "Nieprawidłowe użycie"
- on portal:
- if "%event-teleportcause%" is "nether portal":
- if {portal.nether} is 0:
- send "&cNether jest aktualnie wyłączony"
- cancel event
- else if "%event-teleportcause%" is "end portal":
- if {portal.end} is 0:
- send "&cEnd jest aktualnie wyłączony"
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment