Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Prefix: &2&lFriends >>
- WarnPrefix: &4&lFriends >>
- command /friends [<text>] [<player>]:
- trigger:
- if arg 1 is not set:
- send " " to player
- send "&a============================= FRIENDS HELP =============================" to player
- send "&3&l/friends add <Player> &r&d>> Add a friend" to player
- send "&3&l/friends remove <Player> &r&d>> Remove a friend" to player
- send "&3&l/friends list &r&d>> List List of your friends" to player
- send "&a========================================================================" 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 "&d-----------------------------------------------------" to player-arg
- send "&3%player% &basked you as a friend" to player-arg
- send "&bFor accept, execute: &3/friends add &b%player%" to player-arg
- send "&d-----------------------------------------------------" to player-arg
- send "{@Prefix} &bInvitation sent &d%player-arg%" to player
- else:
- send "{@WarnPrefix} &cYou can not be friends with you !" to player
- else:
- send "{@Prefix} &7Who 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 "&3You are not friends with &d%player-arg% &3!" to player
- send "&3You are not friends with &d%player% &3!" 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 "&3Online: &a[&d%loop-value%&a]" to player
- if loop-value is offline:
- send "&3Offline: &c[&5%loop-value%&c]" to player
Add Comment
Please, Sign In to add comment