Warning: Undefined variable $http_response_header in /var/www/html/new/skunity/library/skUnity/Util/HTTP.php on line 95

SkFriends_EN.sk

Created by Unknown

Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.

Options:
	FHelp1: &a============================= F HELP =============================
	FHelp2: &3&l/friends add <Player> &r&d>> Add a friend
	FHelp3: &3&l/friends remove <Player> &r&d>> Remove a friend
	FHelp4: &3&l/F list &r&d>> Lis of your F
	FHelp5: &a===================================================================
	FAF: &c&lYou are already friend with this person!
	NowF: &bYou are currently friend with &b%player-arg%
	NowF2: &bYou are currently friend with &b%player%
	FInvite1: &3%player% &bsent you a friend request
	FInvite2: &bFor accept this friend request, pleaze execute &3/friends accept &b%player%
	RequestF: &bYou sent a friend request to &d%player-arg%
	FYour: &cYou can not be friend with yourself!
	QuestionAddF: &3Who do you want to add as a friend?
	FRemove1: &3You are no longer friend &d%player-arg% &3!
	FRemove2: &3You are no longer a friend &d%player% &3!
	NoFPlayer: &cYou are not friend with this player!
	FOnline: &3Online F:
	FOffline: &3Offline F:

on join:
	wait 3 seconds
	execute player command "/F list"

command /friends [<text>] [<player>]:
	aliases: F
	trigger:
		if arg 1 is not set:
			send " " to player
			send "{@FHelp1}" to player
			send "{@FHelp2}" to player
			send "{@FHelp3}" to player
			send "{@FHelp4}" to player
			send "{@FHelp5}" to player
			send " " to player
		if arg 1 is "invite" or "add" or "accepte" or "accept":
			if player-arg is set:
				if player-arg is not player:
					if {friend.%uuid of player%::*} contains "%player-arg%":
						send "{@FAF}" to player
						stop
					if {friend.attente.%uuid of player%} is set:
						add player to {friend.%{friend.attente.%uuid of player%}%::*}
						add player to {friend.%uuid of player-arg%::*}						
						add player-arg to {friend.%uuid of player%::*}						
						send "{@NowF}" to player
						send "{@NowF2}" to player-arg
						wait 1 tick
						delete {friend.attente.%uuid of player%}						
					else:
						set {friend.attente.%uuid of player-arg%} to player
						send "{@FHelp1}" to player-arg
						send "{@FInvite1}" to player-arg
						send "{@FInvite2}" to player-arg
						send "{@FHelp1}" to player-arg
						send "{@RequestF}" to player
				else:
					send "{@FYour}" to player
			else:
				send "{@QuestionAddF}" to player
		if arg 1 is "remove" or "delete":
			if player-arg is set:
				if player-arg is not player:
					if {friend.%uuid of player%::*} contains "%player-arg%":
						remove player-arg from {friend.%uuid of player%::*}
						remove player from {friend.%uuid of player-arg%::*}
						send "{@FRemove1}" to player
						send "{@FRemove2}" to player-arg
					else:
						send "{@NoFPlayer}" to player
						stop
		if arg 1 is "list":
			loop {friend.%uuid of player%::*}:
				if loop-value is online:
					send "{@FOnline} &a[&d%loop-value%&a]" to player
				if loop-value is offline:
					send "{@FOffline}  &c[&5%loop-value%&c]" to player

		if arg 1 is "help" or "?" or "aide":
			send "{@FHelp1}" to player
			send " "
			send "{@FHelp2}" to player
			send "{@FHelp3}" to player
			send "{@FHelp4}" to player
			send " "
			send "{@FHelp5}" to player
					
command /friendGui§:
	trigger:
		open chest with 6 rows named "&8Friends »" to player
		wait 1 tick
		format slot 11 of player with 1 paper named "&8&l« &a&lFriends List ! &8&l»" with lore "&7This function allows you to||&7look your friends list" to close then run [make player execute command "/friends list"]
		format slot 15 of player with 1 nether star named "&8&l« &e&lHelp !&8&l»" with lore "&7This function allows you to||&7look commands" to close then run [make player execute command "/friends help"]
		format slot 28 of player with 1 fire charge named "&8Créateur du skript &8&l»" with lore "&c&lMc_Eclipse57 and TheSkyBote" to be unstealable
		format slot 34 of player with 1 Emerald named "&8Credits &8&l»" with lore "&e&l&7This function allows you to||&esee the credits" to close then run [make player execute command "/fcredit§"]
		format slot 40 of player with 1 redstone named "&8&l« &c&lClose menu &8&l»" with lore "Close this menu" to close
		format slot 4 of player with player's skull named "&8&l« &3Friends GUI - %player% &8&l»" to close
		
command /fcredit§:
	trigger:
		send "&8&m--------------------" to player
		send "        &eCredits      " to player
		send " " to player
		send "&cCreator &8&l» &7Mc_Eclipse57" to player
		send "&aHelper &8&l» &7TheSkyBote" to player
		send "&5Discord(FR) &8&l»&7 https://discord.gg/vFGb5An" to player
		send " " to player
		send "&8&m--------------------" to player