Advertisement
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","*","_","&","-","'","¥","+","?","=","]","[","{","}","(",")","^",":",";","Ω","@","£","%%","§","/" or "Admin"
- prefix: &7&l| &6&lTeam &7&l|
- on join:
- if {team::%uuid of player%} is set:
- 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
- if {team::%uuid of player%} is set:
- if {navn::%uuid of player%} is not set:
- set {navn::%uuid of player%} to "%player%"
- set {uuid::%player%} to "%uuid of player%"
- on chat:
- cancel event
- if {team::%uuid of player%} is not set:
- broadcast "%colored player's prefix%%colored player's suffix% %player% &8| &r%message%"
- if {team::%uuid of player%} is set:
- broadcast "&8[&b&l%{team::%uuid of player%}%&8]%colored player's prefix%%colored player's suffix% %player% &8| &r%message%"
- stop
- Command /team [<text>] [<offline player>] [<text>]:
- Trigger:
- If arg-1 is not set:
- if {team::%uuid of player%} is set:
- send "{@prefix} &eÅbner team menuen... "
- wait 20 ticks
- open chest with 5 rows named "&6Team: &e%{team::%uuid of player%}%" to player
- format slot 0 of player with orange glass named "&f" to be unstealable
- format slot 1 of player with orange glass named "&f" to be unstealable
- format slot 2 of player with orange glass named "&f" to be unstealable
- format slot 3 of player with orange glass named "&f" to be unstealable
- format slot 4 of player with orange glass named "&f" to be unstealable
- format slot 5 of player with orange glass named "&f" to be unstealable
- format slot 6 of player with orange glass named "&f" to be unstealable
- format slot 7 of player with orange glass named "&f" to be unstealable
- format slot 8 of player with orange glass named "&f" to be unstealable
- format slot 22 of player with skull of player named "&6Team: &e%{team::%uuid of player%}%" with lore "&6Team Kills: &e%{team::%{team::%uuid of player%}%::kills}%||&6Team Døde: &e%{team::%{team::%uuid of player%}%::death}%||&6Team Level: &e%{team::%{team::%uuid of player%}%::level}%||&6Team Bank: &e%{team::%{team::%uuid of player%}%::bank}%||&6Team Lavet: &e%{team::%{team::%uuid of player%}%::lavet}%" to be unstealable
- format slot 20 of player with chest named "&6Team Shop:" with lore "&eTeam butik, det er kun ejeren af teamet der kan åbne denne shop" to be unstealable
- format slot 36 of player with orange glass named "&f" to be unstealable
- format slot 37 of player with orange glass named "&f" to be unstealable
- format slot 38 of player with orange glass named "&f" to be unstealable
- format slot 39 of player with orange glass named "&f" to be unstealable
- format slot 40 of player with orange glass named "&f" to be unstealable
- format slot 41 of player with orange glass named "&f" to be unstealable
- format slot 42 of player with orange glass named "&f" to be unstealable
- format slot 43 of player with orange glass named "&f" to be unstealable
- format slot 44 of player with orange glass named "&f" to be unstealable
- else:
- message "&6----&e---&6----&e----&6---&e---- &6&lTEAM &6----&e---&6----&e----&6---&e----"
- message "&6/team info &8| &7Viser denne menu."
- message "&6/team opret &8| &7For at lave en team &8| &6&LINFO: &7Det koster &e&L&o$1000&7."
- message "&6/team inviter &8| &7For at invitere en til din team."
- message "&6/team tilslut &8| &7For at joine en team."
- message "&6/team afvis &8| &7For at afvise en invitation."
- message "&6/team forlad &8| &7For at forlade en team."
- message "&6/team kick &8| &7For at smide en ud af din team."
- message "&6/team stats &8| &7Viser stats om din team."
- message "&6----&e---&6----&e----&6---&e---- &6&lTEAM &6----&e---&6----&e----&6---&e----"
- If arg-1 is "info":
- message "&6----&e---&6----&e----&6---&e---- &6&lTEAM &6----&e---&6----&e----&6---&e----"
- message "&6/team info &8| &7Viser denne menu."
- message "&6/team opret &8| &7For at lave en team &8| &6&LINFO: &7Det koster &e&L&o$1000&7."
- message "&6/team inviter &8| &7For at invitere en til din team."
- message "&6/team tilslut &8| &7For at joine en team."
- message "&6/team afvis &8| &7For at afvise en invitation."
- message "&6/team forlad &8| &7For at forlade en team."
- message "&6/team kick &8| &7For at smide en ud af din team."
- message "&6/team stats &8| &7Viser stats om din team."
- message "&6----&e---&6----&e----&6---&e---- &6&lTEAM &6----&e---&6----&e----&6---&e----"
- if arg 1 is "shop":
- if arg 2 is not set:
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- open chest with 5 rows named "&6Team: &e%{team::%uuid of player%}%" to player
- format slot 0 of player with orange glass named "&f" to be unstealable
- format slot 1 of player with orange glass named "&f" to be unstealable
- format slot 2 of player with orange glass named "&f" to be unstealable
- format slot 3 of player with orange glass named "&f" to be unstealable
- format slot 4 of player with orange glass named "&f" to be unstealable
- format slot 5 of player with orange glass named "&f" to be unstealable
- format slot 6 of player with orange glass named "&f" to be unstealable
- format slot 7 of player with orange glass named "&f" to be unstealable
- format slot 8 of player with orange glass named "&f" to be unstealable
- format slot 22 of player with skull of player named "&6Team: &e%{team::%uuid of player%}%" with lore "&6Team Kills: &e%{team::%{team::%uuid of player%}%::kills}%||&6Team Døde: &e%{team::%{team::%uuid of player%}%::death}%||&6Team Level: &e%{team::%{team::%uuid of player%}%::level}%||&6Team Bank: &e%{team::%{team::%uuid of player%}%::bank}%||&6Team Lavet: &e%{team::%{team::%uuid of player%}%::lavet}%" to be unstealable
- format slot 20 of player with chest named "&6Team Shop:" with lore "&eTeam butik, det er kun ejeren af teamet der kan åbne denne shop" to be unstealable
- format slot 36 of player with orange glass named "&f" to be unstealable
- format slot 37 of player with orange glass named "&f" to be unstealable
- format slot 38 of player with orange glass named "&f" to be unstealable
- format slot 39 of player with orange glass named "&f" to be unstealable
- format slot 40 of player with orange glass named "&f" to be unstealable
- format slot 41 of player with orange glass named "&f" to be unstealable
- format slot 42 of player with orange glass named "&f" to be unstealable
- format slot 43 of player with orange glass named "&f" to be unstealable
- format slot 44 of player with orange glass named "&f" to be unstealable
- else:
- send "{@prefix} &eDu er ikke ejer af teamet: &6%{team::%uuid of player%}%"
- else:
- send "{@prefix} &eDu er ikke med i noget teamet!"
- If arg-1 is "opret":
- if {team::%uuid of player%} is set:
- message "{@prefix} &6Du er allerede med i team &e%{team::%uuid of player%}% &6og hvis du vil forlade teamet.. &a/team forlad"
- stop
- Else:
- If player's balance is between -100000 and 999:
- Message "{@prefix} &6Du mangler 1000$ for at oprette et team!"
- stop
- Else:
- set {_arg2} to "%arg-2%" parsed as a text
- if arg 3 is set:
- message "{@prefix} &6Der må &4&LIKKE &6være &cmellemrum &6i team navnet."
- stop
- if length of {_arg2} is between -9999999999999 and 3:
- message "{@prefix} &6Dit team navn skal være længere end &c3 &6bogstaver!"
- stop
- if length of {_arg2} is above 15:
- message "{@prefix} &6Dit team navn må &4&LIKKE være længere end &c15 &6bogstaver!"
- stop
- if arg-2 contains {@Bannednavne}:
- message "{@prefix} &6Dit team må &4&lIKKE &6hedde &c%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 "{@prefix} &6Dit team må &4&LIKKE &6hedde &c%arg-2%"
- stop
- if {team::%arg-2%} is set:
- message "{@prefix} &6Der er allerede et team der hedder &c%arg-2%&6."
- stop
- set {team::%uuid of player%} to "%arg-2%"
- set {team::%arg-2%} to "%arg-2%"
- set {team::%arg-2%::lavet} to now
- set {team::%arg-2%::ejer} to uuid of player
- set {navn::%uuid of player%} to "%player%"
- set {uuid::%player%} to "%uuid of player%"
- set {team::%arg 2%::death} to 0
- set {team::%arg 2%::kills} to 0
- set {team::%arg 2%::level} to 0
- set {team::%arg 2%::bank} to 0
- set {team::%arg-2%::chat} to "%arg-2%"
- add uuid of player to {team::%{team::%uuid of player%}%::medlemmer::*}
- remove 1000 from player's money
- message "{@prefix} &6Du har lavet et team navngivet &c%arg-2%&6."
- stop
- if arg-1 is "forlad":
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- message "{@prefix} &6Du har forladt teamet &a%{team::%uuid of player%}%&6, men fordi du var ejeren, så blev hele teamet slettet! "
- 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%}
- if {team::%uuid of player%} is set:
- message "{@prefix} &cDer skete en fejl, kontakt en staff."
- else:
- loop all players:
- if {team::%uuid of player%} is {team::%uuid of loop-player%}:
- message "{@prefix} &c%player% &7har 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 "inviter":
- if {team::%uuid of player%} is not set:
- message "{@prefix} &6Du er ikke med i et team."
- stop
- else:
- if {team::%uuid of arg 2%} is set:
- message "{@prefix} &c%arg 2% &7er allerede med i et team."
- stop
- if {team::%player%::invite} is set:
- message "{@prefix} &c%arg 2% &7er allerede blevet inviteret til et team."
- stop
- if arg 2 is player:
- message "{@prefix} &6&oDu kan &4&L&oIKKE &7&oinvitere dig selv"
- 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 "{@prefix} &6Du &4&LSKAl &7være &cejeren &7for at invitere folk."
- stop
- else:
- if arg 2 is not set:
- message "{@prefix} &6Korrekt brug: &c/team inviter <navn>&7."
- stop
- else:
- if {team::%{_player}%::invite} is set:
- message "{@prefix} &c%arg 2% &7er allerede blevet inviteret til et team, få %{_player}% til at afvise den anden invitation med &c/team afvis&7."
- stop
- else:
- if {team::%{_uuidplayer}%} is set:
- message "{@prefix} &c%{_player}% &7er allerede med i et team."
- stop
- else:
- set {team::%{_player}%::invite} to "%{team::%uuid of player%}%"
- message "{@prefix} &6Du er blevet inviteret til &c%{team::%uuid of player%}% &7skriv &c/team tilslut &7for at joine teamet, for at afvise invitationen skriv &c/team afvis&7." to {_player}
- message "{@prefix} &6Du har inviteret &c%{_player}% &7til teamet."
- stop
- else:
- message "{@prefix} &c%arg 2% &7er ikke online.... Han/Hun skal være online."
- if arg-1 is "afvis":
- If {team::%player%::invite} is set:
- message "{@prefix} &6Du har afvist invitationen fra &c%{team::%player%::invite}%&7."
- loop all players:
- if {team::%{team::%player%::invite}%::ejer} is uuid of loop-player:
- message "{@prefix} &c%player% &7har afvist invitationen." to loop-player
- delete {team::%player%::invite}
- stop
- else:
- message "{@prefix} &6Du er ikke blevet inviteret til et team!"
- stop
- if arg 1 is "tilslut":
- if {team::%uuid of player%} is set:
- message "{@prefix} &6Du er allerede med i et team!"
- stop
- else:
- if {team::%player%::invite} is set:
- loop all players:
- if {team::%{team::%player%::invite}%::medlemmer::*} is uuid of loop-player:
- message "{@prefix} &c%player% &7har 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 "{@prefix} &6Du har joinet teamet &c%{team::%player%::invite}%&7."
- set {navn::%uuid of player%} to "%player%"
- set {uuid::%player%} to "%uuid of player%"
- delete {team::%player%::invite}
- stop
- else:
- message "{@prefix} &6Du er ikke blevet inviteret til et team ;("
- stop
- if arg 1 is "kick":
- if {team::%uuid of player%} is not set:
- message "{@prefix} &6Du er ikke med i et team."
- else:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- if arg 2 is not set:
- message "{@prefix} &6Korrekt brug: &c/team kick <spiller>&7."
- stop
- message "{@prefix} &6Du har smidt &c%arg 2% &7ud af teamet."
- delete {team::%{uuid::%arg 2%}%}
- remove {uuid::%arg 2%} from {team::%{team::%uuid of player%}%::medlemmer::*}
- message "{@prefix} &6Du er blevet smidt ud af teamet &c%{team::%uuid of player%}%&7." to {_player}
- stop
- else:
- message "{@prefix} &6Du &4&LSKAL &7være ejeren for at smide en ud af team."
- stop
- If arg 1 is "stats":
- if arg 2 is not set:
- if {team::%uuid of player%} is set:
- Send "&6----&e---&6---- &6&lTEAM STATS &6----&e---&6----"
- Send " "
- Send "&6Kills: &a&l%{team::%{team::%uuid of player%}%::kills}%"
- Send "&6Dødsfald: &4&l%{team::%{team::%uuid of player%}%::death}%"
- Send ""
- Send "&6----&e---&6---- &6&lTEAM STATS &6----&e---&6----"
- else:
- send "{@prefix} &eDu er ikke med i noget team "
- if arg 1 is "penge" or "bank" or "balance":
- if arg 2 is not set:
- if {team::%uuid of player%} is set:
- send "{@prefix} &eLoader team bank... "
- wait 20 ticks
- send "&6----&e---&6---- &6&lTEAM STATS &6----&e---&6----"
- send " "
- send "{@prefix} &eDit team har: &6%{team::%{team::%uuid of player%}%::bank}%DKK"
- send " "
- send "&6----&e---&6---- &6&lTEAM STATS &6----&e---&6----"
- else:
- send "{@prefix} &eDu er ikke med i noget team"
- else:
- if player have permission "team.admin":
- if {team::%arg-2%} is set:
- send "{@prefix} &eLoader &6%arg-2%'s &eteam bank... "
- wait 20 ticks
- send "&6----&e---&6---- &6&lTEAM STATS &6----&e---&6----"
- send " "
- send "{@prefix} &eDit team har: &6%{team::%arg-2%::bank}% DKK"
- send " "
- send "&6----&e---&6---- &6&lTEAM STATS &6----&e---&6----"
- else:
- send "{@prefix} &6%arg 2% &efindes ikke!"
- else:
- send "{@prefix} &c&oIngen Adgang"
- if arg 1 is "tc" or "chat":
- set {_arg2} to {team::%uuid of player%}
- if {team::%uuid of player%} is set:
- loop all players:
- if {team::%{team::%{_arg2}%}%::chat} is set:
- send "test %arg 2%" to loop-player
- On death:
- If {team::%uuid of attacker%} is set:
- add 1 to {team::%{team::%uuid of player%}%::kills}
- If {team::%uuid of victim%} is set:
- add 1 to {team::%{team::%uuid of player%}%::death}
- On death:
- If attacker is a player:
- execute player command "eco give %attacker% 10"
- If victim is a player:
- execute player command "eco take %victim% 5"
- on damage:
- if {team::%uuid of attacker%} is {team::%uuid of victim%}:
- set {_random} to a random number between 0 and 100
- if {_random} is not between 0 and {team::%{team::%uuid of attacker%}%::damage}:
- message "{@prefix} &6Du kan ikke slå på &a&o%victim%&6, da i er samme team!" to attacker
- cancel event
- stop trigger
- else:
- stop trigger
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement