Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- tag: &7[&cT&f&lN&cT&7] # Prefix ktory bedzie przed kazdym tekstem.
- perm: &cNie masz uprawnien, do tej komendy! # Tekst ktory bedzie wyswietlany jak grasz nie ma permission do komendy.
- koniec: &cSpadles, &7koniec gry! # Tekst który bedzie wyswietlany gdy wypadniesz z areny.
- dolaczyles: &aDolaczyles do ARENY! # Tekst który bedzie wyswietlany jak ktos bedzie dolaczal do gry.
- nazwapliku: tntrun # WAZNE aby wpisać nazwe pliku na ktorym jest ten skrypt.
- command /tntrune [<text>] [<text>]:
- trigger:
- if arg 1 is "setarena":
- if player has permission "blabla.setarena" or "blabla.*":
- if arg 2 is set:
- if {tnt.tnt.%arg 2%.tnt} is true:
- set {tnt.tnt.%arg 2%.spawn} to location of player
- set {tnt.tnt.%arg 2%.niewiem} to true
- send "{@tag} &aUstawiono spawn dla areny &7%arg 2%!"
- stop
- else:
- send "{@tag} &cNie ma areny z taka nazwa!"
- stop
- else:
- send "{@tag} &cPodaj nazwe areny!"
- stop
- else:
- send "{@perm}"
- stop
- if arg 1 is "dolacz":
- if arg 2 is set:
- if player has permission "blabla.dolacz" or "blabla.*" or "blabla.gracz":
- if {tnt.tnt.%player%.tnt} is true:
- if {tnt.tnt.%player%.niewiem} is true:
- set {start.%player%.tntrun} to true
- set {koniec.%player%.tntrun} to true
- teleport player to {tnt.tnt.%arg 2%.spawn}
- send "dolaczyles"
- else:
- send "{@perm}"
- stop
- if arg 1 is "stworz":
- if player has permission "blabla.stworz" or "blabla.*":
- if arg 2 is set:
- if {tnt.%arg 2%.tnt} is true:
- send "{@tag} &cIstnieje juz arena o takiej nazwie!"
- stop
- else:
- set {tnt.tnt.%arg 2%.tnt} to true
- set {tnt.tnt.%arg 2%.nazwa} to "%arg 2%"
- add "%arg 2%" to {tnt.list.list::*}
- add 1 to {tnt.list-number}
- send "{@tag} &aPomyslnie stworzono arene o nazwie &7%arg 2%"
- stop
- else:
- send "{@tag} &cPodaj nazwe areny!"
- stop
- else:
- send "{@perm}"
- stop
Advertisement
Add Comment
Please, Sign In to add comment