Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- Bannednavne: "Fuck","Noob","Ingen","None","<none>","Staff","HeadAdmin","Nations","Mod","Moderator","Ejer","Owner","Mor","Fuc","Nigg",".",",","Lort","Server","pik","fisse","dick","dic","*","_","&","-","'","¥","+","?","=","]","[","{","}","(",")","^",":",";","O","@","£","%%","§","/" or "Admin"
- p: &6&lTEAM &8» &e
- crate: Diamond
- cratecaps: DIAMOND
- on join:
- if {team::%uuid of player%} is set:
- set {team::%{team::%player%}%::navn} to {team::%uuid of player%}
- if {team::%{team::%uuid of player%}%::kills} is not set:
- set {team::%{team::%uuid of player%}%::kills} to 0
- if {team::%{team::%uuid of player%}%::death} is not set:
- set {team::%{team::%uuid of player%}%::death} to 0
- set {navn::%uuid of player%} to "%player%"
- set {uuid::%player%} to "%uuid of player%"
- command /tc [<text>]:
- trigger:
- if arg-1 is set:
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- set {_prefix} to "&8[&6Leder&8] &e"
- else:
- set {_prefix} to "&8[&eMedlem&8] &e"
- loop all players:
- if {team::%uuid of player%} is {team::%uuid of loop-player%}:
- message "&8&l[&6&lTeam Chat&8&l]&e %{_prefix}%%player% &8»&e %arg text%." to loop-player
- else:
- send "{@p}Du skal skrive en besked."
- Command /team [<text>] [<text>] [<text>]:
- Trigger:
- If arg-1 is not set:
- if {team::%uuid of player%} is not set:
- make player execute command "/team hjælp"
- stop
- if {team::%uuid of player%} is set:
- make player execute command "/team start"
- stop
- If arg-1 is "hjælp":
- send "&8&l&m-----------------------------------------"
- send ""
- send "&6/team hjælp &8| &eViser denne guide."
- send "&6/team opret <navn> &8| &eFor at lave et team."
- send "&6/team invite <navn> &8| &eFor at invitere en til dit team."
- send "&6/team join &8| &eFor at joine et team."
- send "&6/team afvis &8| &eFor at afvise en invitation."
- if {team::%uuid of player%} is set:
- send "&6/team forlad &8| &eFor at forlade et team."
- send "&6/team kick <navn> &8| &eFor at smide en ud af dit team."
- send "&6/team info <navn> &8| &eViser stats om dit team."
- send "&6/team levelup &8| &eLeveler dit team op."
- send "&6/team shop &8| &eÅbner team shoppen."
- send "&6/team bank <penge> &8| &eSætter penge ind på team kontoen."
- send "&6/team ejer <navn> &8| &eGiv dit ejerskam til en anden."
- send "&6/tc &8| &eSkriv i team chatten."
- send "&6/tk &8| &eÅbner dit teams fæles kiste."
- send ""
- send "&8&l&m-----------------------------------------"
- if arg-1 is "ejer":
- if {team::%uuid of player%} is not set:
- message "{@p}Du er ikke medlem af et team!"
- stop
- if arg-2 is set:
- set {_arg} to {uuid::%arg-2%}
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if {team::%{_arg}%} is {team::%uuid of player%}:
- send "{@p}Du har givet ejerskabet til &6%arg-2%"
- set {team::%{team::%uuid of player%}%::ejer} to {_arg}
- set {team::%{team::%uuid of player%}%::ejernavn} to "%arg-2%"
- send "{@p}&6 %command sender% &ehar givet ejerskabet til &6%arg-2%" to arg 2 parsed as a player
- if arg-1 is "chest":
- if {team::%uuid of player%} is set:
- if {teamv1::%{team::%uuid of player%}%::chest} is not set:
- invoke "team.page1" from player
- set {teamv1::%{team::%uuid of player%}%::chest} to true
- else:
- send "{@p}&6 Der er allerede en spiller i kisten"
- stop
- if {team::%uuid of player%} is not set:
- message "{@p}Du er ikke medlem af et team!"
- stop
- if arg-1 is "levelup":
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if {team::%{team::%uuid of player%}%::lvl} is 1:
- if {team::%{team::%uuid of player%}%::kills} is between 300 and 1000000000000000000000:
- set {team::%{team::%uuid of player%}%::lvl} to 2
- set {team::%{team::%uuid of player%}%::lvlkills} to 1000
- set {team::%{team::%uuid of player%}%::farve} to "&a"
- loop all players:
- if {team::%uuid of player%} is {team::%uuid of loop-player%}:
- message "{@p}&a%player% &ehar levelet teamet op, det er nu i level &a2&e!" to loop-player
- execute console command "eco give %loop-player% 500"
- else:
- message "{@p}Dit team har ikke nok kills &8(&6%{team::%{team::%uuid of player%}%::kills}%&8/&6300&8)."
- else if {team::%{team::%uuid of player%}%::lvl} is 2:
- if {team::%{team::%uuid of player%}%::kills} is between 1000 and 1000000000000000000000:
- set {team::%{team::%uuid of player%}%::lvl} to 3
- set {team::%{team::%uuid of player%}%::lvlkills} to 3000
- set {team::%{team::%uuid of player%}%::farve} to "&3"
- loop all players:
- if {team::%uuid of player%} is {team::%uuid of loop-player%}:
- message "{@p}&a%player% &ehar levelet teamet op, det er nu i level &a3&e!" to loop-player
- execute console command "eco give %loop-player% 2000"
- else:
- message "{@p}Dit team har ikke nok kills &8(&6%{team::%{team::%uuid of player%}%::kills}%&8/&61000&8)."
- else if {team::%{team::%uuid of player%}%::lvl} is 3:
- if {team::%{team::%uuid of player%}%::kills} is between 3000 and 1000000000000000000000:
- set {team::%{team::%uuid of player%}%::lvl} to 4
- set {team::%{team::%uuid of player%}%::lvlkills} to 10000
- set {team::%{team::%uuid of player%}%::farve} to "&d"
- loop all players:
- if {team::%uuid of player%} is {team::%uuid of loop-player%}:
- message "{@p}&a%player% &ehar levelet teamet op, det er nu i level &a4&e!" to loop-player
- execute console command "eco give %loop-player% 2000"
- else:
- message "{@p}Dit team har ikke nok kills &8(&6%{team::%{team::%uuid of player%}%::kills}%&8/&63000&8)."
- else if {team::%{team::%uuid of player%}%::lvl} is 4:
- if {team::%{team::%uuid of player%}%::kills} is between 3000 and 1000000000000000000000:
- set {team::%{team::%uuid of player%}%::lvl} to 5
- set {team::%{team::%uuid of player%}%::lvlkills} to "MAX"
- set {team::%{team::%uuid of player%}%::farve} to "&c"
- loop all players:
- if {team::%uuid of player%} is {team::%uuid of loop-player%}:
- message "{@p}&a%player% &ehar levelet teamet op, det er nu i level &a5&e!" to loop-player
- execute console command "eco give %loop-player% 2000"
- else:
- message "{@p}Dit team har ikke nok kills &8(&6%{team::%{team::%uuid of player%}%::kills}%&8/&610000&8)."
- stop
- else:
- message "{@p}Du skal være ejeren for at levelup dit team :)"
- stop
- else:
- message "{@p}Du er ikke medlem af et team!"
- stop
- If arg-1 is "opret":
- if {team::%uuid of player%} is set:
- message "{@p}Du er allerede med i team &a%{team::%uuid of player%}% &eog hvis du vil forlade teamet.. &a/team forlad"
- stop
- Else:
- if arg-2 is set:
- set {_arg2} to "%arg-2%" parsed as a text
- if arg 3 is set:
- message "{@p}Der må &4&LIKKE &evære &6mellemrum &ei team navnet."
- stop
- if length of {_arg2} is between -9999999999999 and 3:
- message "{@p}Dit team navn skal være længere end &63 &ebogstaver!"
- stop
- if length of {_arg2} is above 15:
- message "{@p}Dit team navn må &4&LIKKE være længere end &615 &ebogstaver!"
- stop
- if arg-2 contains {@Bannednavne}:
- message "{@p}Dit team må &4&lIKKE &ehedde &6%arg-2%"
- stop
- if arg-2 do not contain "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "ø", "æ" or "å":
- message "{@p}Dit team må &4&LIKKE &ehedde &6%arg-2%"
- stop
- if {team::%arg-2%} is set:
- message "{@p}Der er allerede et team der hedder &6%arg-2%&e."
- stop
- set {team::%uuid of player%} to "%arg-2%"
- set {team::%arg-2%} to "%arg-2%"
- set {team::%arg-2%::lvl} to 1
- set {team::%arg-2%::lavet} to now
- set {team::%arg-2%::lvlkills} to 300
- set {team::%arg-2%::maxmem} to 3
- set {team::%arg-2%::kills} to 0
- set {team::%arg-2%::deaths} to 0
- set {team::%arg-2%::bank} to 0
- set {team::%arg-2%::points} to 0
- set {team::%arg-2%::ejer} to uuid of player
- set {team::%arg-2%::ejernavn} to "%player%"
- set {team::%arg-2%::mission::1::kills} to 0
- set {team::%arg-2%::mission::1} to "igang"
- set {team::%arg-2%::mission::2} to "låst"
- set {team::%arg-2%::mission::3} to "låst"
- set {team::%arg-2%::mission::4} to "låst"
- set {team::%arg-2%::mission::5} to "låst"
- set {team::%arg-2%::mission::6} to "låst"
- set {team::%arg-2%::mission::7} to "låst"
- set {team::%arg-2%::mission::8} to "låst"
- set {team::%arg-2%::mission::9} to "låst"
- set {team::%arg-2%::farve} to "&7"
- set {team::%{team::%player%}%::navn} to {team::%uuid of player%}
- add "%arg-2%" to {teams::*}
- set {navn::%uuid of player%} to "%player%"
- set {uuid::%player%} to "%uuid of player%"
- add uuid of player to {team::%{team::%uuid of player%}%::medlemmer::*}
- message "{@p}Du har lavet et team navngivet &6%arg-2%&e."
- stop
- if arg-1 is "forlad":
- if {team::%uuid of player%} is not set:
- message "{@p}Du er ikke medlem af et team!"
- stop
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- message "{@p}Du har forladt teamet &6%{team::%uuid of player%}%&e, men fordi du var ejeren, så blev hele teamet slettet! "
- delete {team::%{team::%uuid of player%}%::lvlkills}
- delete {team::%{team::%uuid of player%}%::lvl}
- delete {team::%{team::%uuid of player%}%::kills}
- delete {team::%{team::%uuid of player%}%::deaths}
- delete {team::%{team::%uuid of player%}%::ejer}
- delete {team::%{team::%uuid of player%}%}
- loop {team::%{team::%uuid of player%}%::medlemmer::*}:
- remove loop-value from {team::%{team::%loop-value%}%::medlemmer::*}
- delete {team::%loop-value%}
- delete {team::%{team::%loop-value%}%::medlemmer::*}
- if {team::%uuid of player%} is set:
- message "{@p}&6Der skete en fejl, kontakt en staff."
- else:
- loop all players:
- if {team::%uuid of player%} is {team::%uuid of loop-player%}:
- message "{@p}&6%player% &ehar forladt teamet." to loop-player
- remove uuid of player from {team::%{team::%uuid of player%}%::medlemmer::*}
- delete {team::%uuid of player%}
- stop
- if arg 1 is "invite":
- if {team::%uuid of player%} is not set:
- message "{@p}Du er ikke medlem af et team!"
- stop
- else:
- set {_size} to "%size of {team::%{team::%uuid of player%}%::medlemmer::*}%"
- if {team::%{uuid::%arg-2%}%} is set:
- message "{@p}&6%arg 2% &eer allerede med i et team."
- stop
- if {team::%player%::invite} is set:
- message "{@p}&6%arg 2% &eer allerede blevet inviteret til et team."
- stop
- if {_size} is greater or equal to 4:
- send "{@p}Du kan max have 3 medlemmer"
- stop
- set {_player} to "%arg 2%" parsed as a player
- set {_playeruuid} to uuid of {_player}
- set {_uuidplayer} to "%{_playeruuid}%" parsed as a player
- if {_player} is online:
- if {team::%{team::%uuid of player%}%::ejer} is not uuid of player:
- message "{@p}Du &4&LSKAl &evære &6ejeren &efor at invitere folk."
- stop
- else:
- if arg 2 is not set:
- message "{@p}Korrekt brug: &6/team inviter <navn>&e."
- stop
- else:
- if {team::%{_player}%::invite} is set:
- message "{@p}&6%arg 2% &eer allerede blevet inviteret til et team, få %{_player}% til at afvise den anden invitation med &6/team afvis&e."
- stop
- else:
- if {team::%{_uuidplayer}%} is set:
- message "{@p}&6%{_player}% &eer allerede med i et team."
- stop
- else:
- set {team::%{_player}%::invite} to "%{team::%uuid of player%}%"
- message "{@p}Du er blevet inviteret til &6%{team::%uuid of player%}% &eskriv &6/team join &efor at joine teamet, for at afvise invitationen skriv &6/team afvis&e." to {_player}
- message "{@p}Du har inviteret &6%{_player}% &etil teamet."
- wait 30 seconds
- delete {team::%{_player}%::invite}
- stop
- else:
- message "{@p}&6%arg 2% &eer ikke online.... Han/Hun skal være online."
- if arg-1 is "afvis":
- If {team::%player%::invite} is set:
- message "{@p}Du har afvist invitationen fra &6%{team::%player%::invite}%&e."
- loop all players:
- if {team::%{team::%player%::invite}%::ejer} is uuid of loop-player:
- message "{@p}&6%player% &ehar afvist invitationen." to loop-player
- delete {team::%player%::invite}
- stop
- else:
- message "{@p}Du er ikke blevet inviteret til et team!"
- stop
- if arg 1 is "join":
- if {team::%uuid of player%} is set:
- message "{@p}Du er allerede med i et team!"
- stop
- else:
- if player's balance is between -0 and -1:
- send "{@p}Det koster &a$&2500&e At joine et team :)"
- stop
- loop {team::%{team::%player%::invite}%::medlemmer::*}:
- add 1 to {_medlemmer}
- if {_medlemmer} is greater or equal to {team::%{team::%player%::invite}%::maxmem}:
- send "&8&l[&e&lMAINTON-TEAM&8&l] &eTeamet har plads til flere."
- stop
- if {team::%player%::invite} is set:
- loop all players:
- if {team::%uuid of player%} is {team::%uuid of loop-player%}:
- send "{@p}&6%player% &ehar joinet teamet." to loop-player
- set {team::%uuid of player%} to {team::%player%::invite}
- add uuid of player to {team::%{team::%player%::invite}%::medlemmer::*}
- message "{@p}Du har joinet teamet &6%{team::%player%::invite}%&e."
- set {navn::%uuid of player%} to "%player%"
- set {uuid::%player%} to "%uuid of player%"
- delete {team::%player%::invite}
- stop
- else:
- message "{@p}Du er ikke blevet inviteret til et team ;("
- stop
- if arg 1 is "shop":
- if arg-2 is not set:
- if {team::%uuid of player%} is set:
- open chest with 5 rows named "&6&lTEAM SHOP" to player
- wait 3 ticks
- format slot 0 of player with light blue stained glass pane named " " to be unstealable
- format slot 1 of player with blue stained glass pane named " " to be unstealable
- format slot 2 of player with light blue stained glass pane named " " to be unstealable
- format slot 3 of player with blue stained glass pane named " " to be unstealable
- format slot 4 of player with book named "&6&lCOINS&8&l:" with lore "&6Bank&8: &e$%{team::%{team::%uuid of player%}%::bank}%||&6Points&8: &e%{team::%{team::%uuid of player%}%::bank}%" to be unstealable
- format slot 5 of player with blue stained glass pane named " " to be unstealable
- format slot 6 of player with light blue stained glass pane named " " to be unstealable
- format slot 7 of player with blue stained glass pane named " " to be unstealable
- format slot 8 of player with light blue stained glass pane named " " to be unstealable
- format slot 36 of player with light blue stained glass pane named " " to be unstealable
- format slot 37 of player with blue stained glass pane named " " to be unstealable
- format slot 38 of player with light blue stained glass pane named " " to be unstealable
- format slot 39 of player with blue stained glass pane named " " to be unstealable
- format slot 40 of player with light blue stained glass pane named " " to be unstealable
- format slot 41 of player with blue stained glass pane named " " to be unstealable
- format slot 42 of player with light blue stained glass pane named " " to be unstealable
- format slot 43 of player with blue stained glass pane named " " to be unstealable
- format slot 44 of player with light blue stained glass pane named " " to be unstealable
- #format slot 20 of player with 160:14 named "&4&lKOMMER" to be unstealable
- #format slot 21 of player with 160:14 named "&4&lKOMMER" to be unstealable
- #format slot 22 of player with 160:14 named "&4&lKOMMER" to be unstealable
- #format slot 23 of player with 160:14 named "&4&lKOMMER" to be unstealable
- #format slot 24 of player with 160:14 named "&4&lKOMMER" to be unstealable
- #format slot 25 of player with 160:14 named "&4&lKOMMER" to be unstealable
- if {team::%{team::%uuid of player%}%::maxmem} is between 3 and 5:
- format slot 19 of player with 160:14 named "&4&l1 MEDLEM MERE" with lore "&e&oDit teams level skal være i level 2" to be unstealable
- if {team::%{team::%uuid of player%}%::lvl} is greater or equal to 2:
- format slot 19 of player with diamond sword named "&a&lKØB 1 MEDLEM MERE" with lore "&e&oKoster &6$&e2500" to close then run [ make player execute command "team shop medlem"]
- if {team::%{team::%uuid of player%}%::maxmem} is between 5 and 10:
- format slot 19 of player with 160:14 named "&4&l1 MEDLEM MERE" with lore "&e&oDit teams level skal være i level 4" to be unstealable
- if {team::%{team::%uuid of player%}%::lvl} is greater or equal to 4:
- format slot 19 of player with diamond sword named "&a&lKØB 1 MEDLEM MERE" with lore "&e&oKoster &6$&e7500" to close then run [ make player execute command "team shop medlem"]
- format slot 20 of player with golden ingot named "&a&l$1000 TIL ALLE I TEAMET" with lore "&e&oKoster &e4 points" to close then run [ make player execute command "team shop 1000"]
- format slot 21 of player with paper named "&a&l{@cratecaps} KEY TIL ALLE ONLINE I TEAMET" with lore "&e&oKoster &e7 points" to close then run [ make player execute command "team shop key"]
- if {team::%uuid of player%} is not set:
- message "{@p}Du er ikke medlem af et team!"
- if arg-2 is "1000":
- if {team::%uuid of player%} is not set:
- message "{@p}Du er ikke medlem af et team!"
- stop
- if {team::%{team::%uuid of player%}%::points} is greater or equal to 4:
- send "{@p}Du har købt &6$1000&e til alle i dit team."
- subtract 4 from {team::%{team::%uuid of player%}%::points}
- loop {team::%{team::%uuid of player%}%::medlemmer::*}:
- execute console command "eco give %loop-value% 1000"
- if arg-2 is "key":
- if {team::%uuid of player%} is not set:
- message "{@p}Du er ikke medlem af et team!"
- stop
- if {team::%{team::%uuid of player%}%::points} is greater or equal to 7:
- send "{@p}Du har købt &61 {@crate} &ecrate til alle online i teamet."
- subtract 7 from {team::%{team::%uuid of player%}%::points}
- loop {team::%{team::%uuid of player%}%::medlemmer::*}:
- execute console command "cc give physical {@crate} 1 %loop-value%"
- if arg-2 is "medlem":
- if {team::%uuid of player%} is not set:
- message "{@p}Du er ikke medlem af et team!"
- stop
- if {team::%{team::%uuid of player%}%::maxmem} is between 3 and 5:
- if {team::%{team::%uuid of player%}%::lvl} is greater or equal to 2:
- if {team::%{team::%uuid of player%}%::bank} is greater or equal to 2500:
- remove 2500 from {team::%{team::%uuid of player%}%::bank}
- add 1 to {team::%{team::%uuid of player%}%::maxmem}
- loop all players:
- if {team::%uuid of player%} is {team::%uuid of loop-player%}:
- send "{@p}&6%player%&e har lige købt &61&e medlem mere til &6teamet&e!" to loop-player
- stop
- send "{@p}Jeres team har ikke nok penge &8(&6/team bank <antal>&8)"
- stop
- send "{@p}Jeres team er ikke i level 2+"
- stop
- if {team::%{team::%uuid of player%}%::maxmem} is between 5 and 10:
- if {team::%{team::%uuid of player%}%::lvl} is greater or equal to 4:
- if {team::%{team::%uuid of player%}%::bank} is greater or equal to 7500:
- remove 7500 from {team::%{team::%uuid of player%}%::bank}
- add 1 to {team::%{team::%uuid of player%}%::maxmem}
- loop all players:
- if {team::%uuid of player%} is {team::%uuid of loop-player%}:
- send "{@p}&6%player%&e har lige købt &61&e medlem mere til &6teamet&e!" to loop-player
- stop
- send "{@p}Jeres team har ikke nok penge &8(&6/team bank <antal>&8)"
- stop
- send "{@p}Jeres team er ikke i level 4+"
- stop
- send "{@p}Jeres team kan ikke have flere medlemmer."
- stop
- if arg 1 is "kick":
- if {team::%uuid of player%} is not set:
- message "{@p}Du er ikke medlem af et team!"
- else:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if arg 2 is not set:
- message "{@p}Korrekt brug: &6/team kick <spiller>&e."
- stop
- message "{@p}Du har smidt &6%arg 2% &eud af teamet."
- remove {uuid::%arg 2%} from {team::%{team::%uuid of player%}%::medlemmer::*}
- message "{@p}Du er blevet smidt ud af teamet &6%{team::%uuid of player%}%&e." to {_player}
- delete {team::%{uuid::%arg-2%}%}
- stop
- else:
- message "{@p}Du &4&LSKAL &evære ejeren for at smide en ud af team."
- stop
- If arg 1 is "info":
- if arg-2 is not set:
- if {team::%uuid of player%} is set:
- open chest with 5 rows named "&6&l%{team::%uuid of player%}%&6's Stats" to player
- wait 3 ticks
- loop integers from 0 to 44:
- format slot loop-number of player with white stained glass pane named "&r" to be unstealable
- loop {team::%{team::%uuid of player%}%::medlemmer::*}:
- if loop-value is {team::%{team::%uuid of player%}%::ejer}:
- else:
- add " &8-&e %{navn::%loop-value%}%" to {_medlemmer1::*}
- set {_medlemmer} to "%{_medlemmer1::*}%"
- replace "," with "||" in {_medlemmer}
- replace "and" with "||" in {_medlemmer}
- if {_medlemmer} contains "<none>":
- set {_medlemmer} to "&8 - &7Der er ikke nogen medlemmer."
- format slot 13 of player with book named "&6&lMEDLEMMER&8&l:" with lore "&6Ejer&8&l:&e %{team::%{team::%uuid of player%}%::ejernavn}%||&e%{_medlemmer}%" to be unstealable
- format slot 31 of player with glowing diamond sword named "&6&lSTATS&8&l:" with lore "&6LEVEL&8: &e%{team::%{team::%uuid of player%}%::lvl}%||&6NÆSTE LEVEL&8: &e%{team::%{team::%uuid of player%}%::kills}%&8/&e%{team::%{team::%uuid of player%}%::lvlkills}%||&6DRAB&8: &e%{team::%{team::%uuid of player%}%::kills}%||&6DØDE&8: &e%{team::%{team::%uuid of player%}%::deaths}%" to be unstealable
- format slot 24 of player with glowing golden ingot named "&6&lCOINS&8&l:" with lore "&6BANK&8: &e$%{team::%{team::%uuid of player%}%::bank}%||&6POINTS&8: &e%{team::%{team::%uuid of player%}%::points}%" to be unstealable
- if {team::%uuid of player%} is not set:
- message "{@p}Du er ikke medlem af et team!"
- else:
- set {_arg} to {uuid::%arg-2%}
- if {team::%{_arg}%} is set:
- open chest with 5 rows named "&6&l%{team::%{_arg}%}%&6's Stats" to player
- wait 3 ticks
- loop integers from 0 to 44:
- format slot loop-number of player with white stained glass pane named "&r" to be unstealable
- loop {team::%{team::%{_arg}%}%::medlemmer::*}:
- if loop-value is {team::%{team::%{_arg}%}%::ejer}:
- else:
- add " &8-&e %{navn::%loop-value%}%" to {_medlemmer1::*}
- set {_medlemmer} to "%{_medlemmer1::*}%"
- replace "," with "||" in {_medlemmer}
- replace "and" with "||" in {_medlemmer}
- if {_medlemmer} contains "<none>":
- set {_medlemmer} to "&8 - &7Der er ikke nogen medlemmer."
- format slot 13 of player with book named "&6&lMEDLEMMER&8&l:" with lore "&6Ejer&8&l:&e %{team::%{team::%{_arg}%}%::ejernavn}%||&e%{_medlemmer}%" to be unstealable
- format slot 31 of player with glowing diamond sword named "&6&lSTATS&8&l:" with lore "&6LEVEL&8: &e%{team::%{team::%{_arg}%}%::lvl}%||&6NÆSTE LEVEL&8: &e%{team::%{team::%{_arg}%}%::kills}%&8/&e%{team::%{team::%{_arg}%}%::lvlkills}%||&6DRAB&8: &e%{team::%{team::%{_arg}%}%::kills}%||&6DØDE&8: &e%{team::%{team::%{_arg}%}%::deaths}%" to be unstealable
- format slot 24 of player with glowing golden ingot named "&6&lCOINS&8&l:" with lore "&6BANK&8: &e$%{team::%{team::%{_arg}%}%::bank}%||&6POINTS&8: &e%{team::%{team::%{_arg}%}%::points}%" to be unstealable
- else:
- if {team::%arg-2%} is set:
- set {_arg} to arg 2
- open chest with 5 rows named "&6&l%{team::%{_arg}%}%&6's Stats" to player
- wait 3 ticks
- loop integers from 0 to 44:
- format slot loop-number of player with white stained glass pane named "&r" to be unstealable
- loop {team::%{team::%{_arg}%}%::medlemmer::*}:
- if loop-value is {team::%{team::%{_arg}%}%::ejer}:
- else:
- add " &8-&e %{navn::%loop-value%}%" to {_medlemmer1::*}
- set {_medlemmer} to "%{_medlemmer1::*}%"
- replace "," with "||" in {_medlemmer}
- replace "and" with "||" in {_medlemmer}
- if {_medlemmer} contains "<none>":
- set {_medlemmer} to "&8 - &7Der er ikke nogen medlemmer."
- format slot 13 of player with book named "&6&lMEDLEMMER&8&l:" with lore "&6Ejer&8&l:&e %{team::%{team::%{_arg}%}%::ejernavn}%||&e%{_medlemmer}%" to be unstealable
- format slot 31 of player with glowing diamond sword named "&6&lSTATS&8&l:" with lore "&6LEVEL&8: &e%{team::%{team::%{_arg}%}%::lvl}%||&6NÆSTE LEVEL&8: &e%{team::%{team::%{_arg}%}%::kills}%&8/&e%{team::%{team::%{_arg}%}%::lvlkills}%||&6DRAB&8: &e%{team::%{team::%{_arg}%}%::kills}%||&6DØDE&8: &e%{team::%{team::%{_arg}%}%::deaths}%" to be unstealable
- format slot 24 of player with glowing golden ingot named "&6&lCOINS&8&l:" with lore "&6BANK&8: &e$%{team::%{team::%{_arg}%}%::bank}%||&6POINTS&8: &e%{team::%{team::%{_arg}%}%::points}%" to be unstealable
- if arg 1 is "bank":
- if {team::%uuid of player%} is not set:
- message "{@p}Du er ikke medlem af et team!"
- stop
- if arg 2 is not set:
- message "{@p}Konto&8: &a%{team::%{team::%uuid of player%}%::bank}%$"
- message "{@p}Skriv &6/team bank <antal>&e, for at indsætte penge til din teamets bankkonto."
- stop
- if arg 2 is set:
- if arg 2 is "confirm":
- if {bankinset.%player%} is set:
- set {_penge} to {bankinset.%player%}
- remove {_penge} from player's money
- add {bankinset.%player%} to {team::%{team::%uuid of player%}%::bank}
- message "{@p}Du satte &a$%{_penge}%&e ind på teamets bank, og derfor er der nu &a$%{team::%{team::%uuid of player%}%::bank}%&e på jeres bankkonto."
- wait 2 ticks
- delete {bankinset.%player%}
- stop
- else:
- message "{@p}Du skal først bruge &a/team bank (antal)&e, for at kunne sætte penge ind på team kontoen."
- stop
- else:
- set {_number} to arg 2 parsed as a number
- if player's money is less than {_number}:
- message "{@p}&6Du har ikke &4$%{_number}%&e!"
- stop
- if {_number} is a number:
- message "{@p}For at sætte pengene ind skal du skrive &a/team bank confirm&e!"
- set {bankinset.%player%} to {_number}
- stop
- if {_number} is not a number:
- message "{@p}&6Du kan kun tilføje hele penge beløb!"
- stop
- if arg-1 is "mission":
- if arg-2 is not set:
- if {team::%uuid of player%} is set:
- open chest with 3 rows named "&6&lTEAM MISSIONER" to player
- wait 3 ticks
- format slot 0 of player with orange stained glass pane named "&r" to be unstealable
- format slot 1 of player with gray stained glass pane named "&r" to be unstealable
- format slot 2 of player with orange stained glass pane named "&r" to be unstealable
- format slot 3 of player with gray stained glass pane named "&r" to be unstealable
- format slot 4 of player with orange stained glass pane named "&r" to be unstealable
- format slot 5 of player with gray stained glass pane named "&r" to be unstealable
- format slot 6 of player with orange stained glass pane named "&r" to be unstealable
- format slot 7 of player with gray stained glass pane named "&r" to be unstealable
- format slot 8 of player with orange stained glass pane named "&r" to be unstealable
- format slot 18 of player with gray stained glass pane named "&r" to be unstealable
- format slot 19 of player with orange stained glass pane named "&r" to be unstealable
- format slot 20 of player with gray stained glass pane named "&r" to be unstealable
- format slot 21 of player with orange stained glass pane named "&r" to be unstealable
- format slot 22 of player with gray stained glass pane named "&r" to be unstealable
- format slot 23 of player with orange stained glass pane named "&r" to be unstealable
- format slot 24 of player with gray stained glass pane named "&r" to be unstealable
- format slot 25 of player with orange stained glass pane named "&r" to be unstealable
- format slot 26 of player with gray stained glass pane named "&r" to be unstealable
- if {team::%{team::%uuid of player%}%::mission::1} is "igang":
- format slot 9 of player with diamond sword named "&e&lMISSION 1" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::1::kills}%&8/&a200" to close then run [ make player execute command "team mission 1"]
- else if {team::%{team::%uuid of player%}%::mission::1} is "klaret":
- format slot 9 of player with light green stained glass pane named "&a&lMISSION 1" with lore "&r||&7Status &8» &aKlaret" to be unstealable
- else if {team::%{team::%uuid of player%}%::mission::1} is "låst":
- format slot 9 of player with red stained glass pane named "&4&lMISSION 1" with lore "&r||&7Status &8» &4Låst" to be unstealable
- if {team::%{team::%uuid of player%}%::mission::2} is "igang":
- format slot 10 of player with diamond sword named "&e&lMISSION 2" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::2::kills}%&8/&a400" to close then run [ make player execute command "team mission 2"]
- else if {team::%{team::%uuid of player%}%::mission::2} is "klaret":
- format slot 10 of player with light green stained glass pane named "&a&lMISSION 2" with lore "&r||&7Status &8» &aKlaret" to be unstealable
- else if {team::%{team::%uuid of player%}%::mission::2} is "låst":
- format slot 10 of player with red stained glass pane named "&4&lMISSION 2" with lore "&r||&7Status &8» &4Låst" to be unstealable
- if {team::%{team::%uuid of player%}%::mission::3} is "igang":
- format slot 11 of player with diamond sword named "&e&lMISSION 3" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::3::kills}%&8/&a500" to close then run [ make player execute command "team mission 3"]
- else if {team::%{team::%uuid of player%}%::mission::3} is "klaret":
- format slot 11 of player with light green stained glass pane named "&a&lMISSION 3" with lore "&r||&7Status &8» &aKlaret" to be unstealable
- else if {team::%{team::%uuid of player%}%::mission::3} is "låst":
- format slot 11 of player with red stained glass pane named "&4&lMISSION 3" with lore "&r||&7Status &8» &4Låst" to be unstealable
- if {team::%{team::%uuid of player%}%::mission::4} is "igang":
- format slot 12 of player with diamond sword named "&e&lMISSION 4" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::4::kills}%&8/&a600" to close then run [ make player execute command "team mission 4"]
- else if {team::%{team::%uuid of player%}%::mission::4} is "klaret":
- format slot 12 of player with light green stained glass pane named "&a&lMISSION 4" with lore "&r||&7Status &8» &aKlaret" to be unstealable
- else if {team::%{team::%uuid of player%}%::mission::4} is "låst":
- format slot 12 of player with red stained glass pane named "&4&lMISSION 4" with lore "&r||&7Status &8» &4Låst" to be unstealable
- if {team::%{team::%uuid of player%}%::mission::5} is "igang":
- format slot 13 of player with diamond sword named "&e&lMISSION 5" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::5::kills}%&8/&a700" to close then run [ make player execute command "team mission 5"]
- else if {team::%{team::%uuid of player%}%::mission::5} is "klaret":
- format slot 13 of player with light green stained glass pane named "&a&lMISSION 5" with lore "&r||&7Status &8» &aKlaret" to be unstealable
- else if {team::%{team::%uuid of player%}%::mission::5} is "låst":
- format slot 13 of player with red stained glass pane named "&4&lMISSION 5" with lore "&r||&7Status &8» &4Låst" to be unstealable
- if {team::%{team::%uuid of player%}%::mission::6} is "igang":
- format slot 14 of player with diamond sword named "&e&lMISSION 6" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::6::kills}%&8/&a800" to close then run [ make player execute command "team mission 6"]
- else if {team::%{team::%uuid of player%}%::mission::6} is "klaret":
- format slot 14 of player with light green stained glass pane named "&a&lMISSION 6" with lore "&r||&7Status &8» &aKlaret" to be unstealable
- else if {team::%{team::%uuid of player%}%::mission::6} is "låst":
- format slot 14 of player with red stained glass pane named "&4&lMISSION 6" with lore "&r||&7Status &8» &4Låst" to be unstealable
- if {team::%{team::%uuid of player%}%::mission::7} is "igang":
- format slot 15 of player with diamond sword named "&e&lMISSION 7" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::7::kills}%&8/&a900" to close then run [ make player execute command "team mission 7"]
- else if {team::%{team::%uuid of player%}%::mission::7} is "klaret":
- format slot 15 of player with light green stained glass pane named "&a&lMISSION 7" with lore "&r||&7Status &8» &aKlaret" to be unstealable
- else if {team::%{team::%uuid of player%}%::mission::7} is "låst":
- format slot 15 of player with red stained glass pane named "&4&lMISSION 7" with lore "&r||&7Status &8» &4Låst" to be unstealable
- if {team::%{team::%uuid of player%}%::mission::8} is "igang":
- format slot 16 of player with diamond sword named "&e&lMISSION 8" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::8::kills}%&8/&a1000" to close then run [ make player execute command "team mission 8"]
- else if {team::%{team::%uuid of player%}%::mission::8} is "klaret":
- format slot 16 of player with light green stained glass pane named "&a&lMISSION 8" with lore "&r||&7Status &8» &aKlaret" to be unstealable
- else if {team::%{team::%uuid of player%}%::mission::8} is "låst":
- format slot 16 of player with red stained glass pane named "&4&lMISSION 8" with lore "&r||&7Status &8» &4Låst" to be unstealable
- if {team::%{team::%uuid of player%}%::mission::9} is "igang":
- format slot 17 of player with diamond sword named "&e&lMISSION 9" with lore "&r||&7Status &8» &eIgang||&7Kills&8:&a %{team::%{team::%uuid of player%}%::mission::9::kills}%&8/&a1100" to close then run [ make player execute command "team mission 9"]
- else if {team::%{team::%uuid of player%}%::mission::9} is "klaret":
- format slot 17 of player with light green stained glass pane named "&a&lMISSION 9" with lore "&r||&7Status &8» &aKlaret" to be unstealable
- else if {team::%{team::%uuid of player%}%::mission::9} is "låst":
- format slot 17 of player with red stained glass pane named "&4&lMISSION 9" with lore "&r||&7Status &8» &4Låst" to be unstealable
- else:
- send "{@p}Du er ikke medlem af et team" to player
- stop
- if arg-2 is "1":
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if {team::%{team::%uuid of player%}%::mission::1} is "igang":
- if {team::%{team::%uuid of player%}%::mission::1::kills} is 200:
- set {team::%{team::%uuid of player%}%::mission::1} to "klaret"
- set {team::%{team::%uuid of player%}%::mission::2} to "igang"
- set {team::%{team::%uuid of player%}%::mission::2::kills} to 0
- add 1 to {team::%{team::%uuid of player%}%::points}
- send "{@p}Dit team har klaret mission &61&e!" to player
- stop
- else:
- send "{@p}Jeres team har ikke nok &6kills&e." to player
- stop
- else:
- send "{@p}Dit team har klaret den mission &61&e!" to player
- stop
- else:
- send "{@p}Du er ikke ejer af dit team." to player
- stop
- else:
- send "{@p}Du er ikke medlem af et team" to player
- stop
- if arg-2 is "2":
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if {team::%{team::%uuid of player%}%::mission::2} is "igang":
- if {team::%{team::%uuid of player%}%::mission::2::kills} is 400:
- set {team::%{team::%uuid of player%}%::mission::2} to "klaret"
- set {team::%{team::%uuid of player%}%::mission::3} to "igang"
- set {team::%{team::%uuid of player%}%::mission::3::kills} to 0
- add 1 to {team::%{team::%uuid of player%}%::points}
- send "{@p}Dit team har klaret mission &62&e!" to player
- stop
- else:
- send "{@p}Jeres team har ikke nok &6kills&e." to player
- stop
- else:
- send "{@p}Dit team &e&nhar&e klaret mission &62&e!" to player
- stop
- else:
- send "{@p}Du er ikke ejer af dit team." to player
- stop
- else:
- send "{@p}Du er ikke medlem af et team" to player
- stop
- if arg-2 is "3":
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if {team::%{team::%uuid of player%}%::mission::3} is "igang":
- if {team::%{team::%uuid of player%}%::mission::3::kills} is 500:
- set {team::%{team::%uuid of player%}%::mission::3} to "klaret"
- set {team::%{team::%uuid of player%}%::mission::4} to "igang"
- set {team::%{team::%uuid of player%}%::mission::4::kills} to 0
- add 2 to {team::%{team::%uuid of player%}%::points}
- send "{@p}Dit team har klaret mission &63&e!" to player
- stop
- else:
- send "{@p}Jeres team har ikke nok &6kills&e." to player
- stop
- else:
- send "{@p}Dit team &e&nhar&e klaret mission &63&e!" to player
- stop
- else:
- send "{@p}Du er ikke ejer af dit team." to player
- stop
- else:
- send "{@p}Du er ikke medlem af et team" to player
- stop
- if arg-2 is "4":
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if {team::%{team::%uuid of player%}%::mission::4} is "igang":
- if {team::%{team::%uuid of player%}%::mission::4::kills} is 600:
- set {team::%{team::%uuid of player%}%::mission::4} to "klaret"
- set {team::%{team::%uuid of player%}%::mission::5} to "igang"
- set {team::%{team::%uuid of player%}%::mission::5::kills} to 0
- add 2 to {team::%{team::%uuid of player%}%::points}
- send "{@p}Dit team har klaret mission &64&e!" to player
- stop
- else:
- send "{@p}Jeres team har ikke nok &6kills&e." to player
- stop
- else:
- send "{@p}Dit team &e&nhar&e klaret mission &64&e!" to player
- stop
- else:
- send "{@p}Du er ikke ejer af dit team." to player
- stop
- else:
- send "{@p}Du er ikke medlem af et team" to player
- stop
- if arg-2 is "5":
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if {team::%{team::%uuid of player%}%::mission::5} is "igang":
- if {team::%{team::%uuid of player%}%::mission::5::kills} is 700:
- set {team::%{team::%uuid of player%}%::mission::5} to "klaret"
- set {team::%{team::%uuid of player%}%::mission::6} to "igang"
- set {team::%{team::%uuid of player%}%::mission::6::kills} to 0
- add 3 to {team::%{team::%uuid of player%}%::points}
- send "{@p}Dit team har klaret mission &65&e!" to player
- stop
- else:
- send "{@p}Jeres team har ikke nok &6kills&e." to player
- stop
- else:
- send "{@p}Dit team &e&nhar&e klaret mission &65&e!" to player
- stop
- else:
- send "{@p}Du er ikke ejer af dit team." to player
- stop
- else:
- send "{@p}Du er ikke medlem af et team" to player
- stop
- if arg-2 is "6":
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if {team::%{team::%uuid of player%}%::mission::6} is "igang":
- if {team::%{team::%uuid of player%}%::mission::6::kills} is 800:
- set {team::%{team::%uuid of player%}%::mission::6} to "klaret"
- set {team::%{team::%uuid of player%}%::mission::7} to "igang"
- set {team::%{team::%uuid of player%}%::mission::7::kills} to 0
- add 3 to {team::%{team::%uuid of player%}%::points}
- send "{@p}Dit team har klaret mission &66&e!" to player
- stop
- else:
- send "{@p}Jeres team har ikke nok &6kills&e." to player
- stop
- else:
- send "{@p}Dit team &e&nhar&e klaret mission &66&e!" to player
- stop
- else:
- send "{@p}Du er ikke ejer af dit team." to player
- stop
- else:
- send "{@p}Du er ikke medlem af et team" to player
- stop
- if arg-2 is "7":
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if {team::%{team::%uuid of player%}%::mission::7} is "igang":
- if {team::%{team::%uuid of player%}%::mission::7::kills} is 900:
- set {team::%{team::%uuid of player%}%::mission::7} to "klaret"
- set {team::%{team::%uuid of player%}%::mission::8} to "igang"
- set {team::%{team::%uuid of player%}%::mission::8::kills} to 0
- add 4 to {team::%{team::%uuid of player%}%::points}
- send "{@p}Dit team har klaret mission &67&e!" to player
- stop
- else:
- send "{@p}Jeres team har ikke nok &6kills&e." to player
- stop
- else:
- send "{@p}Dit team &e&nhar&e klaret mission &67&e!" to player
- stop
- else:
- send "{@p}Du er ikke ejer af dit team." to player
- stop
- else:
- send "{@p}Du er ikke medlem af et team" to player
- stop
- if arg-2 is "8":
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if {team::%{team::%uuid of player%}%::mission::8} is "igang":
- if {team::%{team::%uuid of player%}%::mission::8::kills} is 1000:
- set {team::%{team::%uuid of player%}%::mission::8} to "klaret"
- set {team::%{team::%uuid of player%}%::mission::9} to "igang"
- set {team::%{team::%uuid of player%}%::mission::9::kills} to 0
- add 4 to {team::%{team::%uuid of player%}%::points}
- send "{@p}Dit team har klaret mission &68&e!" to player
- stop
- else:
- send "{@p}Jeres team har ikke nok &6kills&e." to player
- stop
- else:
- send "{@p}Dit team &e&nhar&e klaret mission &68&e!" to player
- stop
- else:
- send "{@p}Du er ikke ejer af dit team." to player
- stop
- else:
- send "{@p}Du er ikke medlem af et team" to player
- stop
- if arg-2 is "9":
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if {team::%{team::%uuid of player%}%::mission::9} is "igang":
- if {team::%{team::%uuid of player%}%::mission::9::kills} is 1100:
- set {team::%{team::%uuid of player%}%::mission::9} to "klaret"
- add 5 to {team::%{team::%uuid of player%}%::points}
- send "{@p}Dit team har nu klaret alle 9 missioner! Tillykke!" to player
- stop
- else:
- send "{@p}Jeres team har ikke nok &6kills&e." to player
- stop
- else:
- send "{@p}Dit team &e&nhar&e klaret mission &69&e!" to player
- stop
- else:
- send "{@p}Du er ikke ejer af dit team." to player
- stop
- else:
- send "{@p}Du er ikke medlem af et team" to player
- stop
- if arg-1 is "start":
- if {team::%uuid of player%} is set:
- open chest with 5 rows named "&6&lTEAM &8» &e%{team::%uuid of player%}%" to player
- wait 3 ticks
- loop integers from 0 to 44:
- format slot loop-number of player with white stained glass pane named "&r" to be unstealable
- format slot 13 of player with book named "&6&lTEAM INFO" with lore "&7&oKlik her for at se dit teams info" to run [ make player execute command "team info"]
- format slot 20 of player with diamond sword named "&6&lTEAM MISSIONER" with lore "&7&oKlik her for at se team missionerne" to run [ make player execute command "team mission"]
- format slot 24 of player with golden ingot named "&6&lTEAM SHOP" with lore "&7&oKlik her for at åbne team shoppen." to run [ make player execute command "team shop"]
- format slot 31 of player with chest named "&6&lTEAM KISTE" with lore "&7&oKlik her for at åbne team kisten" to run [ make player execute command "team chest"]
- on death of player:
- if {team::%uuid of attacker%} is set:
- if {team::%{team::%uuid of attacker%}%::mission::1} is "igang":
- add 1 to {team::%{team::%uuid of attacker%}%::mission::1::kills}
- else if {team::%{team::%uuid of attacker%}%::mission::2} is "igang":
- add 1 to {team::%{team::%uuid of attacker%}%::mission::2::kills}
- else if {team::%{team::%uuid of attacker%}%::mission::3} is "igang":
- add 1 to {team::%{team::%uuid of attacker%}%::mission::3::kills}
- else if {team::%{team::%uuid of attacker%}%::mission::4} is "igang":
- add 1 to {team::%{team::%uuid of attacker%}%::mission::4::kills}
- else if {team::%{team::%uuid of attacker%}%::mission::5} is "igang":
- add 1 to {team::%{team::%uuid of attacker%}%::mission::5::kills}
- else if {team::%{team::%uuid of attacker%}%::mission::6} is "igang":
- add 1 to {team::%{team::%uuid of attacker%}%::mission::6::kills}
- else if {team::%{team::%uuid of attacker%}%::mission::7} is "igang":
- add 1 to {team::%{team::%uuid of attacker%}%::mission::7::kills}
- else if {team::%{team::%uuid of attacker%}%::mission::8} is "igang":
- add 1 to {team::%{team::%uuid of attacker%}%::mission::8::kills}
- else if {team::%{team::%uuid of attacker%}%::mission::9} is "igang":
- add 1 to {team::%{team::%uuid of attacker%}%::mission::9::kills}
- command /tk:
- trigger:
- execute player command "team chest"
- command /teamdisband <text>:
- trigger:
- if player is op:
- if {team::%{uuid::%arg-1%}%} is set:
- send "{@p}Du fjernede &6%arg-1%&6's &eteam."
- set {_arg} to {uuid::%arg-1%}
- delete {team::%{_arg}%::lvlkills}
- delete {team::%{_arg}%::lvl}
- delete {team::%{_arg}%::kills}
- delete {team::%{_arg}%::deaths}
- delete {team::%{_arg}%::ejer}
- loop {team::%{_arg}%::medlemmer::*}:
- remove loop-value from {team::%{team::%loop-value%}%::medlemmer::*}
- delete {team::%loop-value%}
- delete {team::%{_arg}%}
- stop
- send "{@p}Du fjernede teamet &6%arg-1%"
- delete {team::%arg-1%::lvlkills}
- delete {team::%arg-1%::lvl}
- delete {team::%arg-1%::kills}
- delete {team::%arg-1%::deaths}
- delete {team::%arg-1%::ejer}
- loop {team::%arg-1%::medlemmer::*}:
- remove loop-value from {team::%{team::%loop-value%}%::medlemmer::*}
- delete {team::%loop-value%}
- delete {team::%arg-1%}
- On death:
- If {team::%uuid of attacker%} is set:
- add 1 to {team::%{team::%uuid of attacker%}%::kills}
- If {team::%uuid of victim%} is set:
- add 1 to {team::%{team::%uuid of victim%}%::deaths}
- on damage:
- if {team::%uuid of attacker%} is {team::%uuid of victim%}:
- if projectile exists:
- stop
- cancel event
- stop
- on inventory close:
- if inventory name of player's current inventory is "&e&lTEAM KISTE":
- delete {teamv1::%{team::%uuid of player%}%::chest}
- set {_slot} to 0
- loop 54 times:
- set {team::1::%{_slot}%::%{team::%uuid of player%}%} to slot {_slot} of player's current inventory
- add 1 to {_slot}
- on chat:
- cancel event
- if {team::%uuid of player%} is set:
- send "&8[%{team::%{team::%uuid of player%}%::farve}%%{team::%uuid of player%}%&8] %player's displayname% &8» %{farve::%player%}%%message%" to players
- stop
- send "%player's displayname% &8» %{farve::%player%}%%message%" to players
- on join:
- if player has permission "rank.admin":
- set {farve::%player%} to "&c"
- stop
- else if player has permission "rank.mod":
- set {farve::%player%} to "&9"
- stop
- else if player has permission "rank.hjælper":
- set {farve::%player%} to "&d"
- stop
- set {farve::%player%} to "&7"
- stop
- sub "team.page1":
- set {_p} to parameter 1
- open chest with 6 rows named "&e&lTEAM KISTE" to {_p}
- set {_slot} to 0
- loop 54 times:
- set slot {_slot} of {_p}'s current inventory to {team::1::%{_slot}%::%{team::%uuid of parameter 1%}%}
- add 1 to {_slot}
- set {team::%{team::%uuid of {_p}%}%::chest} to true
Advertisement
Add Comment
Please, Sign In to add comment