Welcome to SkriptTools.net!

SkriptTools is now part of the skUnity family! skUnity will keep SkriptTools running, updating and adding new features.


- You can now search scripts by author by doing "author:name". For example: "author:nfell2009"

- Login to SkriptTools using your skUnity account to save your favourite scripts and come back to them

Login

Script Viewer

View the code of the script directly in your browser without downloading anything.

Current File: skunitybackup-497.sk - Download / View on the skUnity Parser


#-
#-
#~=~=~ - Variablen
#-
#-

options:
 Version: 1.0_U3
 TeamPrefix: &8&l&oTeam

variables:
	{on.%player%} = "&cOFFLINE"
	{datum.%player%} = "&6---"

on connect:
	set {on.%player%} to "&aJOINEND"
on join:
	wait 5 ticks
	set {on.%player%} to "&aONLINE"
on quit:
	set {on.%player%} to "&cOFFLINE"

#-
#-
#~=~=~ - Befehle
#-
#-

command /setallOFFLINE:
	permission: *
	trigger:
		loop {owner-team::*}:
			set {on.%loop-value%} to "&cOFFLINE"
		send "&cOwner = OFFLINE"
		wait 5 ticks
		loop {dev-team::*}:
			set {on.%loop-value%} to "&cOFFLINE"
		send "&cDeveloper = OFFLINE"
		wait 5 ticks
		loop {admin-team::*}:
			set {on.%loop-value%} to "&cOFFLINE"
		send "&cAdmins = OFFLINE"
		wait 5 ticks
		loop {mod-team::*}:
			set {on.%loop-value%} to "&cOFFLINE"
		send "&cModeratoren = OFFLINE"
		wait 5 ticks
		loop {supp-team::*}:
			set {on.%loop-value%} to "&cOFFLINE"
		send "&cSupporter = OFFLINE"
		wait 5 ticks
		loop {archi-team::*}:
			set {on.%loop-value%} to "&cOFFLINE"
		send "&cArchitekten = OFFLINE"
		
		
		
command /setallOnline:
	permission: *
	trigger:
		loop {owner-team::*}:
			set {on.%loop-value%} to "&aONLINE"
		send "&cOwner = ONLINE"
		wait 5 ticks
		loop {dev-team::*}:
			set {on.%loop-value%} to "&aONLINE"
		send "&cDeveloper = ONLINE"
		wait 5 ticks
		loop {admin-team::*}:
			set {on.%loop-value%} to "&aONLINE"
		send "&cAdmins = ONLINE"
		wait 5 ticks
		loop {mod-team::*}:
			set {on.%loop-value%} to "&aONLINE"
		send "&cModeratoren = ONLINE"
		wait 5 ticks
		loop {supp-team::*}:
			set {on.%loop-value%} to "&aONLINE"
		send "&cSupporter = ONLINE"
		wait 5 ticks
		loop {archi-team::*}:
			set {on.%loop-value%} to "&aONLINE"
		send "&cArchitekten = ONLINE"
		
		
		
command /team [<text>] [<text>] [<text>]:
	trigger:
		if arg 1 is not set:
			open chest with 5 rows named "&aTeamMitglieder" to the player
			wait 1 tick
			set {_n} to -1
			loop 54 times:
				add 1 to {_n}
				{_n} is between 0 and 7:
					format slot {_n} of player with red stained glass pane named "&4&lOwner" to be unstealable
				{_n} is 8:
					format slot {_n} of player with glowstone block named "&c&l&nZur Chat Liste" to close then run [execute player command "/team info"]
				{_n} is between 9 and 17:
					format slot {_n} of player with orange stained glass pane named "&4&lAdmin" to be unstealable
				{_n} is between 18 and 26:
					format slot {_n} of player with green stained glass pane named "&2&lModerator" to be unstealable
				{_n} is between 27 and 35:
					format slot {_n} of player with light blue stained glass pane named "&b&lSupporter" to be unstealable
				{_n} is between 36 and 44:
					format slot {_n} of player with green stained glass pane named "&3&lArchitekt" to be unstealable
				
			set {_n} to -1
			loop {owner-team::*}:
				set {_p} to loop-value parsed as an offline player
				add 1 to {_n}
				format slot {_n} of player with {_p}'s skull named "&4&lOWNER &7%loop-value%" with lore "&7Status&8: &r%{on.%loop-value%}%" to be unstealable

			set {_n} to 8
			loop {admin-team::*}:
				set {_p} to loop-value parsed as an offline player
				add 1 to {_n}
				format slot {_n} of player with {_p}'s skull named "&c&lADMIN &7%loop-value%" with lore "&7Status: &r%{on.%loop-value%}%" to be unstealable

			set {_n} to 17
			loop {mod-team::*}:
				set {_p} to loop-value parsed as an offline player
				add 1 to {_n}
				format slot {_n} of player with {_p}'s skull named "&2&lModerator &7%loop-value%" with lore "&7Status: &r%{on.%loop-value%}%" to be unstealable

			set {_n} to 26
			loop {supp-team::*}:
				set {_p} to loop-value parsed as an offline player
				add 1 to {_n}
				format slot {_n} of player with {_p}'s skull named "&b&lSupporter &7%loop-value%" with lore "&7Status: &r%{on.%loop-value%}%" to be unstealable

			set {_n} to 35
			loop {archi-team::*}:
				set {_p} to loop-value parsed as an offline player
				add 1 to {_n}
				format slot {_n} of player with {_p}'s skull named "&3&lArchitekt &7%loop-value%" with lore "&7Status: &r%{on.%loop-value%}%" to be unstealable

		else:
			if arg 1 is "info":
				message ""
				message "&8=&m-----------&8= &a&lM&2&line&a&lB&2&luild &7Teamliste &8=&m-----------&8="
				set {_number} to 0
				loop {owner-team::*}:
					add 1 to {_number}
					send "&8%{_number}% &8&o«» &4&lOWNER &8&o«» &4%loop-value-1% &8&o«» %{on.%loop-value%}%"
				loop {admin-team::*}:
					add 1 to {_number}
					send "&8%{_number}% &8&o«» &c&lADMIN &8&o«» &c%loop-value-1% &8&o«» %{on.%loop-value%}%"
				loop {mod-team::*}:
					add 1 to {_number}
					send "&8%{_number}% &8&o«» &2&lModerator &8&o«» &5%loop-value-1% &8&o«» %{on.%loop-value%}%"
				loop {supp-team::*}:
					add 1 to {_number}
					send "&8%{_number}% &8&o«» &b&lSupporter &8&o«» &9%loop-value-1% &8&o«» %{on.%loop-value%}%"
				loop {archi-team::*}:
					add 1 to {_number}
					send "&8%{_number}% &8&o«» &3&lArchitekt &8&o«» &3%loop-value-1% &8&o«» %{on.%loop-value%}%"
				message "&8=&m-----------&8="
			if player has permission "Team.*":
				if arg 1 is "add":
					if {teamler.%arg 2%} is 1:
						message "{@TeamPrefix} &aDer Spieler %arg 2% ist berreits ein TeamMitglied."
					else:
						if arg 3 is "Supp" or "Supporter":
							set {teamler.%arg 2%} to 1
							add arg 2 to {supp-team::*}
							message "{@TeamPrefix} &aDer Spieler %arg 2% ist nun ein Supporter in der Teamliste!"
							set {on.%player%} to "&cPls Rejoin"
						if arg 3 is "Mod" or "Moderator":
							set {teamler.%arg 2%} to 1
							add arg 2 to {mod-team::*}
							message "{@TeamPrefix} » &aDer Spieler %arg 2% ist nun ein Moderator in der Teamliste!"
							set {on.%player%} to "&cPls Rejoin"
						if arg 3 is "Admin":
							set {teamler.%arg 2%} to 1
							add arg 2 to {admin-team::*}
							message "{@TeamPrefix} » &aDer Spieler %arg 2% ist nun ein Administrator in der Teamliste!"
							set {on.%player%} to "&cPls Rejoin"
						if arg 3 is "Owner":
							set {teamler.%arg 2%} to 1
							add arg 2 to {owner-team::*}
							message "{@TeamPrefix} » &aDer Spieler %arg 2% ist nun ein Owner in der Teamliste!"
							set {on.%player%} to "&cPls Rejoin"
						if arg 3 is "Architekt":
							set {teamler.%arg 2%} to 1
							add arg 2 to {archi-team::*}
							message "{@TeamPrefix} » &aDer Spieler %arg 2% ist nun ein Architekt in der Teamliste!"
							set {on.%player%} to "&cPls Rejoin"
						if arg 2 is not set:
							message "{@TeamPrefix} » &aDu musst einen Spieler festlegen!"
						else if arg 3 is not set:
							message "{@TeamPrefix} » &aDer Spieler braucht einen Rang!"
							message "{@TeamPrefix} » &aVerfügbare Ränge: &7Supp,Mod,Admin,Architekt,Owner&a!"
						if arg 2 contains "<none>":
							message "{@TeamPrefix} » &aDu musst einen Spieler festlegen!"
					if arg 1 is "hilfe" or "help":
						message "&8"
						message "{@TeamPrefix} » |&6 Version:&a {@Version}&6|"
						message "&8"
						message "{@TeamPrefix} » &6Befehle: &e/Team add <Spieler> <Rang>."
						message "{@TeamPrefix} » &6Befehle: &e/Team remove <Spieler>."
						message "{@TeamPrefix} » &6Permission: Team.* "
						message "&8"
						message "&8"
				else if arg 1 is "remove":
					remove arg 2 from {archi-team::*}
					remove arg 2 from {dev-team::*}
					remove arg 2 from {admin-team::*}
					remove arg 2 from {owner-team::*}
					remove arg 2 from {mod-team::*}
					remove arg 2 from {supp-team::*}
					set {teamler.%arg 2%} to 0
					message "{@TeamPrefix} » &aDer Spieler %arg 2% ist nun kein TeamMitglied mehr."
			else:
				message "{@TeamPrefix} » &7Du benötigst folgende Rechte&8: &cTeam.*"