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-191.sk - Download / View on the skUnity Parser

options:
	prefix: &8&l||&r &3BANDE &8&l||&r&b
	chat: true
	chatformat: &8[&b{bande}&8]%colored player's prefix% %player% %colored player's suffix% &f> # "{bande}" "&8[&b{level}&8]"
	chatformatno: %colored player's prefix% %player% %colored player's suffix% &f>
	addet: &8[&a+&8]&f
	fjernet: &8[&c-&8]&f
	fixet: &8[&e*&8]&f
	version: &b1.0.0

command /bande [<text=hjælp>] [<text>] [<text>] [<text>]:
	permission: bande.command
	permission message: {@prefix} Du kan ikke have en bande som vagt
	trigger:
		if arg 1 is "hjælp":
			wait 2 ticks
			open chest with 6 rows named "&b&lBande {@version}" to player
			#Venstre side
			format slot 0 of player with glowing book named "&3&l/bande hjælp »&r Viser denne menu" with lore "&m" to be unstealable
			if {bande.navn.%player%} is not set:
				format slot 9 of player with glowing book named "&3&l/bande info »&r Viser info om din bande" with lore "&bDu har ingen bande" to be unstealable
			if {bande.navn.%player%} is set:
				format slot 9 of player with glowing book named "&3&l/bande info »&r Viser info om din bande" with lore "&bDin bande hedder &8%{bande.navn.%player%}%" to close then run [make player execute command "/bande info %{bande.navn.%player%}%"]
			format slot 18 of player with glowing book named "&3&l/bande opret »&r For at lave en bande" with lore "&m" to be unstealable
			format slot 27 of player with glowing book named "&3&l/bande forlad »&r For at forlade en bande" with lore "&m" to be unstealable
			format slot 36 of player with glowing book named "&3&l/bande invite »&r For at invitere en til din bande" with lore "&m" to be unstealable
			format slot 45 of player with glowing book named "&3&l/bande tilslut »&r For at tilslutte sig til en bande" with lore "&m" to be unstealable
			#Højre side
			format slot 8 of player with glowing book named "&3&l/bande ally »&r For at spørge en bande om ally" with lore "&m" to be unstealable
			format slot 17 of player with glowing book named "&3&l/bande enemy »&r For at gøre en bande rival" with lore "&m" to be unstealable
			format slot 26 of player with glowing book named "&3&l/bande neutral »&r For at at fjernde en bande som rival/ally" with lore "&m" to be unstealable
			format slot 35 of player with glowing book named "&3&l/bande bank »&r For at se hvor mange penge din bande har" with lore "&m" to be unstealable
			format slot 44 of player with glowing book named "&3&l/bande bank indsæt »&r For at sætte penge ind i din bande" with lore "&m" to be unstealable
			format slot 53 of player with glowing book named "&3&l/bande kick (Ude af drift) »&r For at Smide en ud af banden" with lore "&m" to be unstealable
			#Midten
			format slot 13 of player with glowing book named "&b&lOpdateringer" with lore "&8Opdatering {@version}||{@addet} Ally system||{@addet} Enemy system||{@addet} Gui menu||{@fjernet} Man kan ikke længere hæve fra sin bandes konto||{@addet} Npc" to be unstealable
			format slot 24 of player with golden apple named "&b&lBande shop (Ude af drift) »&r Viser bande shoppen" with lore "&m" to close then run [make player execute command "/bande shop"]
			if {bande.navn.%player%} is not set:
				format slot 20 of player with book named "&3&lDin bandes bank" with lore "&bDu har ingen bande" to be unstealable
			if {bande.navn.%player%} is set:
				format slot 20 of player with book named "&3&lDin bandes bank" with lore "&bDin bande har &8%{bande.bank.%{bande.navn.%player%}%}% &bi sin bank" to be unstealable
			stop

		if arg 1 is "opret":
			if {bande.navn.%player%} is not set:
				if arg 2 is set:
					if player's money is between -4999 and 4999:
						message "{@prefix} Det koster 5000 at lave en bande"
						stop
					if arg 3 is set:
						message "{@prefix} Du kan ikke lave en bande med mellemrum i"
						stop
					if arg 4 is set:
						message "{@prefix} Du kan ikke lave en bande med mellemrum i"
						stop
#					if arg 5 is set:
#						message "{@prefix} Du kan ikke lave en bande med mellemrum i"
#						stop
					if length of "%arg 2%" is between -9999999999999 and 3:
						message "{@prefix} Dit bande navn skal være længere end 3 bugstaver!"
						stop
					if length of "%arg 2%" is above 15:
						message "{@prefix} Dit bande navn må ikke være længere end 15 bugstaver!"
						stop
					if {bande.brug.%arg 2%} is not set:
						set {bande.brug.%arg 2%} to true
						set {bande.ejer.%arg 2%} to player
						set {bande.medlem.%arg 2%} to 0
						add 1 to {bande.medlem.%arg 2%}
						set {bande.online.%arg 2%} to 1
						add arg 2 to {bande.list::*}
						add player to {bande.medlem1.%arg 2%::*}
						set {bande.navn.%player%} to "%arg 2%" parsed as a text
						set {bande.lvl.%arg 2%} to 1
						message "{@prefix} Du har lavet banden %arg 2%."
						remove 5000 from player's money
						set {bande.bank.%{bande.navn.%player%}%} to 0
						stop
					else:
						message "{@prefix} Banden %arg 2% findes allerede."
						stop
				else:
					message "{@prefix} Korrekt brug: /bande opret <navn>."
					stop
			else:
				message "{@prefix} Du er allerede med i en bande brug /bande forlad. For at forlade din bande"
				stop
		
		if arg 1 is "forlad":
			if {bande.navn.%player%} is set:
				if "%{bande.ejer.%{bande.navn.%player%}%}%" is "%player%":
					delete {bande.navn.%player%}
					clear {bande.brug.%{bande.navn.%player%}%}
					clear {bande.ejer.%{bande.navn.%player%}%}
					clear {bande.medlem1.%{bande.navn.%player%}%::*}
					remove {bande.navn.%player%} from {bande.list::*}
					loop {bande.medlem1.%{bande.navn.%player%}%::*}:
						if "%loop-value%" is not "%player%":
							clear {bande.navn.%loop-value%}
					clear {bande.navn.%player%}
					delete {bande.lvl.%{bande.navn.%player%}%}
					delete {bande.bank.%{bande.navn.%player%}%}
					delete {bande.medejer.%{bande.navn.%player%}%}
					message "{@prefix} Efter at have forladt banden, siden du var ejeren, er den blevet sletted."
					stop
				else:
					add -1 to {bande.medlem1.%{bande.navn.%player%}%}
					add -1 to {bande.online.%{bande.navn.%player%}%}
					remove player from {bande.medlem1.%{bande.navn.%player%}%::*}
					loop all players:
						if {bande.navn.%loop-player%} is set:
							if "%{bande.navn.%player%}%" is "%{bande.navn.%loop-player%}%":
								message "{@prefix} %player% Gik ud af banden." to loop-player
					clear {bande.navn.%player%}
					message "{@prefix} Du forlod din bande."
					stop
						
		if arg 1 is "invite":
			if arg 2 is set:
				set {_player} to "%arg 2%" parsed as a player
				if {_player} is online:
					if {bande.navn.%arg 2%} is false:
						if "%{bande.ejer.%{bande.navn.%player%}%}%" is "%player%":
							set {bande.invite.%{bande.navn.%player%}%.%arg 2%} to true
							message "{@prefix} Du har inviteret %arg 2% til at tilslute banden."
							message "{@prefix} %player% Du er blevet inviteret til at tilslut bande %{bande.navn.%player%}%." to {_player}
							make console execute command "/tellraw %arg 2% ["""",{""text"":""/bande tilslut %{bande.navn.%player%}%"",""clickEvent"":{""action"":""run_command"",""value"":""/bande tilslut %{bande.navn.%player%}%""},""hoverEvent"":{""action"":""show_text"",""value"":{""text"":"""",""extra"":[{""text"":""&b&bKlik her for at tilslut %{bande.navn.%player%}%""}]}}}]"
							wait 3 minutes 
							set {bande.invite.%{bande.navn.%player%}%.%arg 2%} to false
							stop
						else:
							message "{@prefix} Du har ikke tilladelse til invitere folk."
							stop
					else:
						message "{@prefix} %arg 2% Er allerede med i en bande."
						stop
				else:
					message "{@prefix} %arg 2% Er ikke online...."
					stop
			else:
				message "{@prefix} Korrekt brug: /bande invite <spiller>."
				stop

		if arg 1 is "tilslut":
			if {bande.navn.%player%} is not set:
				if arg 2 is set:
					set {_verif} to 0
					loop {bande.list::*}:
						if "%arg 2%" is "%loop-value%":
							if {bande.invite.%arg 2%.%player%} is true:
								loop all players:
									if {bande.navn.%loop-player%} is not set:
										if "%{bande.navn.%loop-player%}%" is "%arg 2%":
											message "{@prefix} %player% Har tilslutet banden" to loop-player
								add 1 to {_verif}
								add player to {bande.medlem1.%arg 2%::*}
								set {bande.navn.%player%} to "%arg 2%" parsed as a text
								add 1 to {bande.online.%arg 2%}
								add 1 to {bande.medlem1.%arg 2%}
								message "{@prefix} Du har tilslutet banden %arg 2%."
								stop
							else:
								message "{@prefix} Du er ikke blevet inviteret til at tilslute den bande %arg 2%."
								stop
					if {_verif} is 0:
						message "{@prefix} Banden %arg 2% findes ikke...."
						stop
				else:
					message "{@prefix} Korrekt brug: /bande tilslut <bande>."
					stop
			else:
				message "{@prefix} Du er allerede i en bande brug /bande forlad. for at gå ud af din bande"
				stop

		if arg 1 is "info":
			if arg 2 is set:
				if {bande.brug.%arg 2%} is true:
					message "&8&m-------------------&r &3&lBANDER &8&m-------------------"
					message "&b%arg 2%:"
					set {_verif} to 0
					loop {bande.medlem1.%arg 2%::*}:
						if "%loop-value%" is "%{bande.ejer.%arg 2%}%":
							message "&b&8: &f%loop-value%"
						else:
							if {_verif} is 0:
								message "&bmedlemmer&8:"
								add 1 to {_verif}
							message "  &b- &f%loop-value%"
					message "&bBank: &8%{bande.bank.%arg 2%}%&b$"
					message "&a%{bande.online.%arg 2%}% &b/ &2%{bande.medlem1.%arg 2%}% &bOnline"
					message "&bFange kills&8: &b%{bande.kill.%arg 2%}%"
					message "&bVagt kills&8: &b%{bande.vagtkills.%arg 2%}%"
					message "&8&m-------------------&r &3&lBANDER &8&m-------------------"
					stop
				else:
					message "{@prefix} Banden %arg 2% findes ikke..."
					stop
			else:
				message "{@prefix} Korrekt brug: /bande info <bande>."
				stop
				
#		if arg 1 is "shop":
#			message "&8&m-------------------&r &3&lBANDE SHOP &8&m-------------------"
#			message "&8Ting din bande ikke har købt:"
#			if {bande.lvl.%{bande.navn.%player%}%} is 3,4,5,6,7,8,9 or 10:
#				if {bande.shop.%{bande.navn.%player%}%.c} is not set:
#					message "&bC klubhus (Pris: 2.000$)"
#				if {bande.shop.%{bande.navn.%player%}%.b} is not set:
#					message "&bB klubhus (Pris: 20.000$)"
#				if {bande.shop.%{bande.navn.%player%}%.a} is not set:
#					message "&bA klubhus (Pris: 200.000$)"
#			message "&8Ting din bande har købt:"
#			if {bande.shop.%{bande.navn.%player%}%.c} is true:
#				message "&bC klubhus (Pris: 2.000$)"
#			if {bande.shop.%{bande.navn.%player%}%.b} is true:
#				message "&bB klubhus (Pris: 20.000$)"
#			if {bande.shop.%{bande.navn.%player%}%.a} is true:
#				message "&bA klubhus (Pris: 200.000$)"
#			message "&8&m-------------------&r &3&lBANDE SHOP &8&m-------------------"
			
#		if arg 1 is "levelup":
#			if {bande.lvl.%{bande.navn.%player%}%} is 1:
#				message "&8&m-------------------&r &3&lBANDE LEVELUP &8&m-------------------"
#				if {bande.kill.%{bande.navn.%player%}%} is smaller than 50:
#					message " &c&m----&r 50 fange kills &c&m----"
#				if {bande.kill.%{bande.navn.%player%}%} is higher than 49:
#					message " &c&m----&r 50 fange kills &c&m----"
	
		if arg 1 is "bank":
			set {_money} to "%arg 3%" parsed as a number
			if arg 2 is not set:
				message "{@prefix} Din bande har &8%{bande.bank.%{bande.navn.%player%}%}%&b$ i sin bank"
				stop
			if arg 2 is "indsæt":
				if arg 3 is not set:
					message "{@prefix} Korrekt brug: /bande bank indsæt <antal penge>."
					stop
				if player's money is between -10000000 and {_money}:
					message "{@prefix} Du har ikke &8%arg 3%&b$"
					stop
				remove {_money} from player's money
				message "{@prefix} du har sat &8%arg 3%&b$ ind på din bandes bank"
				add arg 3 to {bande.bank.%{bande.navn.%player%}%}
		if arg 1 is "ally":
			set {_bande} to {bande.navn.%player%}
			if {bande.navn.%player%} is not set:
				message "{@prefix} Du har ikke nogen bande!"
				stop
			if {bande.ejer.%{bande.navn.%player%}%} is not "%player%":
				message "{@prefix} Du skal være ejeren af banden for at bruge denne kommando!"
				stop
			if arg 2 is set:
				if {bande.navn.%player%} is arg 2:
					message "{@prefix} Du kan ikke gøre din egen bande til ally med dig selv!"
					stop
				if {bande.ejer.%arg 2%.} is not set:
					message "{@prefix} &bDen bande findes ikke!"
					stop
				loop {bande.%{_bande}%.allys::*}:
					if loop-value is arg 2:
						set {_true} to false
						exit loop
				loop {bande.navn.%arg 2%.allyinvite::*}:
					if loop-value is {_bande}:
						set {_true} to true
						exit loop
				loop {bande.%{_bande}%.allyinvite::*}:
					if loop-value is "%arg 2%":
						set {_true} to "well"
						exit loop
				if {_true} is "well":
					message "{@prefix} Du har allerede spurgt &c%arg 2% &bom at være ally!"
					stop
				if {_true} is false:
					message "{@prefix} &c%{bande.brug.%arg 2%}% &bEr allerede en ally!"
					stop
				if {_true} is not set:
					add "%{bande.brug.%arg 2%}%" to {bande.%{_bande}%.allyinvite::*}
					message "{@prefix} Du har spugt &c%arg 2% om at være ally!"
					loop {bande.medlem1.%arg 2%::*}:
						set {_loop} to "%loop-value%" parsed as a offline player
						if loop-value is not player:
							message "{@prefix} &c%player% &bBanden &c%arg 2% &bhar spurgt jer om at blive ally!" to {_loop}
					loop {bande.medlem1.%arg 2%::*}:
						set {_loop} to "%loop-value%" parsed as a offline player
						message "{@prefix} &c%{_bande}% &bHar spurgt jer om ally!" to {_loop}
						if {bande.%{UUID.%{_loop}%}%.rank} is 1 or 2:
							message "{@prefix} &c%{_bande}% Har spurgt jer om ally brug &c/bande ally %{_bande}% &bfor at gøre dem til ally" to {_loop}
					stop
				if {_true} is true:
					add "%{bande.brug.%arg 2%}%" to {bande.%{_bande}%.allys::*}
					add "%{_bande}%" to {bande.%{bande.brug.%arg 2%}%.allys::*}
					remove "%{_bande}%" from {bande.%{bande.brug.%arg 2%}%.allyinvite::*}
					remove "%{bande.brug.%arg 2%}%" from {bande.%{_bande}%.allyinvite::*}
					remove "%{_bande}%" from {bande.%{bande.brug.%arg 2%}%.rivaler::*}
					remove "%{bande.brug.%arg 2%}%" from {bande.%{_bande}%.rivaler::*}
					message "{@prefix} &bDu gjorde &c%{bande.brug.%arg 2%}% &btil en ally!"
					loop {bande.medlem1.%arg 2%::*}:
						set {_loop} to "%loop-value%" parsed as a offline player
						if loop-value is not player:
							message "{@prefix} &c%{_bande}% &bEr nu en ally!" to {_loop}
					loop {bande.medlem1.%arg 2%::*}:
						set {_loop2} to "%loop-value%" parsed as a offline player
						message "{@prefix} &c%arg 2% &bEr nu en ally!" to {_loop2}
					stop
			message "{@prefix} Husk du skal skrive navnet! &c/bande ally &n<bande>&b!"
			stop
		if arg 1 is "neutral":
			set {_bande} to {bande.navn.%player%}
			if {bande.navn.%player%} is not set:
				message "{@prefix} Du har ikke nogen bande!"
				stop
			if {bande.ejer.%{bande.navn.%player%}%} is not "%player%":
				message "{@prefix} Du skal være ejeren af banden for at bruge denne kommando!"
				stop
			if arg 2 is set:
				if {bande.navn.%player%} is arg 2:
					message "{@prefix} &bDu kan ikke gøre din egen bande neutral!"
					stop
				if {bande.ejer.%arg 2%.} is not set:
					message "{@prefix} &bDen bande findes ikke!"
					stop
				loop {bande.%{_bande}%.allys::*}:
					if loop-value is arg 2:
						set {_true} to true
						exit loop
				loop {bande.%{_bande}%.rivaler::*}:
					if loop-value is arg 2:
						set {_false} to true
						exit loop
				if {_false} is false:
					message "{@prefix} &c{bande.brug.%arg 2%} &ber ikke en rival!"
				if {_false} is true:
					remove "%{bande.brug.%arg 2%}%" from {bande.%{_bande}%.rivaler::*}
					message "{@prefix} &bDu gjorde &c%{bande.brug.%arg 2%}% &btil neutral!"
					loop {bande.medlem1.%arg 2%::*}:
						set {_loop} to "%loop-value%" parsed as a offline player
						if loop-value is not player:
							message "{@prefix} &c%player% &bHar gjort &c%{_bande}% &btil neutral!" to {_loop}
					loop {bande.medlem1.%arg 2%::*}:
						set {_loop2} to "%loop-value%" parsed as a offline player
						message "{@prefix} &c%{_bande}% &bHar fjernet jer som ally!" to {_loop2}
					stop
				if {_true} is true:
					remove "%{bande.brug.%arg 2%}%" from {bande.%{_bande}%.allys::*}
					remove "%{_bande}%" from {bande.%{bande.brug.%arg 2%}%.allys::*}
					message "{@prefix} Du gjorde &c%{bande.brug.%arg 2%}% &btil neutral!"
					loop {bande.medlem1.%arg 2%::*}:
						set {_loop} to "%loop-value%" parsed as a offline player
						if loop-value is not player:
							message "{@prefix} &c%player% &bDu har gjort &c%{_bande}% &btil neutral!" to {_loop}
					loop {bande.medlem1.%arg 2%::*}:
						set {_loop2} to "%loop-value%" parsed as a offline player
						message "{@prefix} &c%{_bande}% &bEr ally mere!" to {_loop2}
					stop
				message "{@prefix} &c%{bande.brug.%arg 2%}% &bEr ikke en enemy/ally!"
				stop
			message "{@prefix} Du skal skrive et navn! &c/bande neutral &n<bande>&b!"
			stop
		if arg 1 is "enemy":
			set {_bande} to {bande.navn.%player%}
			if {bande.navn.%player%} is not set:
				message "{@prefix} Du har ikke nogen bande!"
				stop
			if {bande.ejer.%{bande.navn.%player%}%} is not "%player%":
				message "{@prefix} Du skal være ejeren af banden for at bruge denne kommando!"
				stop
			if arg 2 is set:
				if {bande.navn.%player%} is arg 2:
					message "{@prefix} Du kan ikke gøre din egen bande til rival!"
					stop
				if {bande.ejer.%arg 2%} is not set:
					message "{@prefix} Den bande findes ikke!"
					stop
				if {bande.%{_bande}%.rivaler::*} is not set:
					set {bande.%{_bande}%.rivaler::*} to "JEGFORGUDERDENSEJESIMON"
				loop {bande.%{_bande}%.rivaler::*}:
					if loop-value is arg 2:
						set {_true} to false
						exit loop
				loop {bande.%{_bande}%.rivaler::*}:
					if loop-value isn't arg 2:
						set {_true} to true
						exit loop
				if {_true} is true:
					remove "JEGFORGUDERDENSEJESIMON" from {bande.%{_bande}%.rivaler::*}
					remove "%{bande.brug.%arg 2%}%" from {bande.%{_bande}%.allys::*}
					remove "%{_bande}%" from {bande.%{bande.brug.%arg 2%}%.allys::*}
					add "%{bande.brug.%arg 2%}%" to {bande.%{_bande}%.rivaler::*}
					message "{@prefix} Du har gjort &c%arg 2% &btil en fjende!"
					loop {bande.medlem1.%arg 2%::*}:
						set {_loop} to "%loop-value%" parsed as a offline player
						if loop-value is not player:
							message "{@prefix} &c%player% &bHar gjort &c%{_bande}% &btil en rival!" to {_loop}
					loop {bande.medlem1.%arg 2%::*}:
						set {_loop2} to "%loop-value%" parsed as a offline player
						message "{@prefix} &c%{_bande}% &bHar gjort jer til til rival!" to {_loop2}
					stop
				if {_true} is false:
					message "{@prefix} &c%arg 2% &bEr allerede en rival!"
					stop
				stop
			message "{@prefix} Du skal skrive navnet på banden! &c/bande enemy &n<bande>&b!"
			stop
#		if arg 1 is "kick":
#			set {_bande} to {bande.navn.%player%}
#			if {bande.navn.%player%} is not set:
#				message "{@prefix} &bYou don't have a bande!"
#				stop
#			if {bande.ejer.%player%} is not "%player%"":
#				message "{@prefix} &bYou must be &cMOD &bto use this command!"
#				stop
#			if arg 2 is set:
#				set %arg 2% to "%{bande.%{UUID.%arg 2%}%.bande::*}%"
#				if "%{bande.%{UUID.%arg 2%}%.%arg 2%}%" is not "%{bande.navn.%player%.%{_bande}%}%":
#					message "{@prefix} &c%arg 2% &bEr ikke medlem af banden!"
#					stop
#				if arg 2 is player:
#					message "{@prefix} Du kan ikke kicke dig selv!"
#					message "{@prefix} Brug &c/bande forlad &bistedet"
#					stop
#				if {bande.ejer.%{bande.navn.%player%}%} is arg 2:
#					message "{@prefix} Du kan ikke smide Ejeren ud!"
#					stop
#				remove "%arg 2%" from {bande.medlem1.%arg 2%::*}
#				clear {bande.navn.%arg 2%}
#				message "{@prefix} &bYou have kicked &c%arg 2% &bfrom the bande!"
#				set {_arg2} to arg 2 parsed as a offline player
#				message "{@prefix} Du er blevet smidt ud af banden &c%{bande.navn.%player%}%&b af &c%player%&b!" to {_arg2}
#				stop
	
on join:
#	delete {bande.%player%}
	loop all players:
		if {bande.navn.%loop-player%} is set:
			if "%{bande.navn.%player%}%" is "%{bande.navn.%loop-player%}%":
				message "{@prefix} %player% tilslutede serveren" to loop-player
	stop
		
on quit:
	if {bande.navn.%player%} is set:
		add -1 to {bande.online.%{bande.navn.%player%}%}
		loop all players:
			if {bande.navn.%loop-player%} is set:
				if "%{bande.navn.%player%}%" is "%{bande.navn.%loop-player%}%":
					message "{@prefix} %player% forlod serven" to loop-player
		stop

on chat:
	if "{@chat}" is "true":
		if {bande.navn.%player%} is set:
			cancel event
			set {_prefix} to "{@chatformat}"
			replace all "{bande}" with "%{bande.navn.%player%}%" in {_prefix}
			replace all "{level}" with "%{bande.lvl.%{bande.navn.%player%}%}%" in {_prefix}
			if {bande.ejer.%{bande.navn.%player%}%} is "%player%":
				cancel event
				set {_prefix} to "{@chatformat}"
				replace all "&" with "§" in {_prefix}
				replace all "{bande}" with "**%{bande.navn.%player%}%" in {_prefix}
				replace all "{level}" with "%{bande.lvl.%{bande.navn.%player%}%}%" in {_prefix}
				broadcast "%{_prefix}% %message%"
				stop
			if {bande.medejer.%{bande.navn.%player%}%} is "%player%":
				cancel event
				set {_prefix} to "{@chatformat}"
				replace all "&" with "§" in {_prefix}
				replace all "{bande}" with "*%{bande.navn.%player%}%" in {_prefix}
				replace all "{level}" with "%{bande.lvl.%{bande.navn.%player%}%}%" in {_prefix}
				broadcast "%{_prefix}% %message%"
				stop
			broadcast "%{_prefix}% %message%"
			stop
		if {bande.navn.%player%} is not set:
			cancel event
			set {_prefix} to "{@chatformatno}"
			broadcast "%{_prefix}% %message%"
			stop

on damage:
	if attacker is a player:
		if victim is a player:
			if {bande.navn.%victim%} is true:
				if {bande.navn.%attacker%} is true:
					if "%{bande.navn.%attacker%}%" is "%{bande.navn.%victim%}%":
						cancel event
						message "{@prefix} Du kan ikke slå medlemmerne af din bande." to attacker
						stop
			loop {bande.%{bande.navn.%attacker%}%.Allies::*}:
				if loop-value is {bande.navn.%victim%}:
					message "{@prefix} Du kan ikke slå dine allies." to attacker
					cancel event
					stop

on death:
	if victim has permission "vagt":
		add 1 to {bande.vagtkills.%{bande.navn.%attacker%}%}
	if victim does not have permission "vagt":
		add 1 to {bande.kill.%{bande.navn.%attacker%}%}