Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Prefix: &cT&4S&aFriends »
- WarnPrefix: &4TSFriends »
- command /f [<text>] [<player>]:
- trigger:
- if arg 1 is not set:
- send " " to player
- send "&a&m----------------&cT&4S&aFRIENDS HELP &m----------------" to player
- send "&c/f add [Player] &r&4» Add a friend" to player
- send "&c/f remove <Player> &r&4» Remove a friend" to player
- send "&c/f list &r&4» Lists all of your friends" to player
- send "&a&m----------------&cT&4S&aFRIENDS HELP &m----------------" to player
- send " " to player
- if arg 1 is "invite" or "add" or "accept":
- if player-arg is set:
- if player-arg is not player:
- if {friend.%uuid of player%::*} contains "%player-arg%":
- send "{@WarnPrefix} &cYou are already friends!" 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 "{@Prefix} &bYou are now friends with &b%player-arg%" to player
- send "{@Prefix} &bYou are now friends with &b%player%" to player-arg
- wait 1 tick
- delete {friend.attente.%uuid of player%}
- else:
- set {friend.attente.%uuid of player-arg%} to player
- send "&c-----------------------------------------------------" to player-arg
- send "&4%player% &casked sent you a friend request" to player-arg
- send "&4For accept, execute: &c/f add &4%player%" to player-arg
- send "&c-----------------------------------------------------" to player-arg
- send "{@Prefix} &bInvitation sent &d%player-arg%" to player
- else:
- send "{@WarnPrefix} &cYou can not be friends with this player!" to player
- else:
- send "{@Prefix} &4Who do you want to add as a friend ?" 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 "&cYou are not friends with &d%player-arg% &4!" to player
- send "&4You are no longer friends with &d%player% &c!" to player-arg
- else:
- send "&cYou are not friends with this player!" to player
- stop
- if arg 1 is "list":
- loop {friend.%uuid of player%::*}:
- if loop-value is online:
- send "&cOnline: &a[&4%loop-value%&a]" to player
- if loop-value is offline:
- send "&4Offline: &c[&c%loop-value%&c]" to player
Advertisement
Add Comment
Please, Sign In to add comment