View difference between Paste ID: 28fdhSLf and ncaTDkYv
SHOW: | | - or go back to the newest paste.
1
options:
2-
	Prefix: &aTNTFriends »
2+
	Prefix: &cT&4S&aFriends »
3-
	WarnPrefix: &4TNTFriends »
3+
	WarnPrefix: &4TSFriends »
4
command /f [<text>] [<player>]:
5
	trigger:
6
		if arg 1 is not set:
7
			send " " to player
8-
			send "&a============================= FRIENDS HELP =============================" to player
8+
			send "&a&m----------------&cT&4S&aFRIENDS HELP &m----------------" to player
9-
			send "&b/f add <Player> &r&d» Add a friend" to player
9+
			send "&c/f add [Player] &r&4» Add a friend" to player
10-
			send "&b/f remove <Player> &r&d» Remove a friend" to player
10+
			send "&c/f remove <Player> &r&4» Remove a friend" to player
11-
			send "&b/f list &r&d» List List of your friends" to player
11+
			send "&c/f list &r&4» Lists all of your friends" to player
12-
			send "&a========================================================================" to player
12+
			send "&a&m----------------&cT&4S&aFRIENDS HELP &m----------------" to player
13
			send " " to player
14
		if arg 1 is "invite" or "add" or "accept":
15
			if player-arg is set:
16
				if player-arg is not player:
17
					if {friend.%uuid of player%::*} contains "%player-arg%":
18-
						send "{@WarnPrefix} &cYou are already friends !" to player
18+
						send "{@WarnPrefix} &cYou are already friends!" to player
19
						stop
20
					if {friend.attente.%uuid of player%} is set:
21
						add player to {friend.%{friend.attente.%uuid of player%}%::*}
22
						add player to {friend.%uuid of player-arg%::*}						
23
						add player-arg to {friend.%uuid of player%::*}						
24
						send "{@Prefix} &bYou are now friends with &b%player-arg%" to player
25
						send "{@Prefix} &bYou are now friends with &b%player%" to player-arg
26
						wait 1 tick
27
						delete {friend.attente.%uuid of player%}						
28
					else:
29
						set {friend.attente.%uuid of player-arg%} to player
30-
						send "&d-----------------------------------------------------" to player-arg
30+
						send "&c-----------------------------------------------------" to player-arg
31-
						send "&3%player% &basked sent you a friend request" to player-arg
31+
						send "&4%player% &casked sent you a friend request" to player-arg
32-
						send "&bFor accept, execute: &3/f add &b%player%" to player-arg
32+
						send "&4For accept, execute: &c/f add &4%player%" to player-arg
33-
						send "&d-----------------------------------------------------" to player-arg
33+
						send "&c-----------------------------------------------------" to player-arg
34
						send "{@Prefix} &bInvitation sent &d%player-arg%" to player
35
				else:
36-
					send "{@WarnPrefix} &cYou can not be friends with you !" to player
36+
					send "{@WarnPrefix} &cYou can not be friends with this player!" to player
37
			else:
38-
				send "{@Prefix} &7Who do you want to add as a friend ?" to player
38+
				send "{@Prefix} &4Who do you want to add as a friend ?" to player
39
		if arg 1 is "remove" or "delete":
40
			if player-arg is set:
41
				if player-arg is not player:
42
					if {friend.%uuid of player%::*} contains "%player-arg%":
43
						remove player-arg from {friend.%uuid of player%::*}
44
						remove player from {friend.%uuid of player-arg%::*}
45-
						send "&3You are not friends with &d%player-arg% &3!" to player
45+
						send "&cYou are not friends with &d%player-arg% &4!" to player
46-
						send "&3You are no longer friends with &d%player% &3!" to player-arg
46+
						send "&4You are no longer friends with &d%player% &c!" to player-arg
47
					else:
48
						send "&cYou are not friends with this player!" to player
49
						stop
50
		if arg 1 is "list":
51
			loop {friend.%uuid of player%::*}:
52
				if loop-value is online:
53-
					send "&3Online: &a[&d%loop-value%&a]" to player
53+
					send "&cOnline: &a[&4%loop-value%&a]" to player
54
				if loop-value is offline:
55-
					send "&3Offline: &c[&5%loop-value%&c]" to player
55+
					send "&4Offline: &c[&c%loop-value%&c]" to player