Skip to content
PantherMan594 edited this page Jan 22, 2016 · 3 revisions

This module was created for an easy way for players to play with friends, without requiring /find and /join permissions. Instead, they can be limited to only finding and joining their friends.

Command

friend is the base command that gets registered, it is associated with the permission nodes gssentials.friend and has 1 alias, f.

/friend or /friend list will output a list of your current friends, as well as your outgoing and incoming friend requests. If a friend is online, you can click their name to join their server. Incoming friend requests can be clicked to accept.

/friend add [name] sends a friend request to that player, who must be online. If you have an incoming friend request, that command can be used to accept it.

/friend remove [name] can be used to remove a friend or a friend request.

Configuration

When you first install BungeeEssentials the command will be enabled, though if you wish you can disable it by removing friend from the enable section of the config file.

Key Default
friend.header &2Current Friends:
friend.body - {{ NAME }} ({{ SERVER }})
friend.new &aYou are now friends with {{ NAME }}!
friend.old &aYou are already friends with {{ NAME }}!
friend.remove &cYou are no longer friends with {{ NAME }}.
friend.oldrequests.header &2Outgoing Friend Requests:
friend.oldrequests.body - {{ NAME }}
friend.oldrequests.new &a{{ NAME }} has received your friend request.
friend.oldrequests.old &cYou already requested to be friends with {{ NAME }}. Please wait for a response!
friend.oldrequests.remove &cThe friend request to {{ NAME }} was removed.
friend.inrequests.header &2Incoming Friend Requests:
friend.inrequests.body - {{ NAME }}
friend.inrequests.new `&a{{ NAME }} would like to be your friend. /friend <add
friend.inrequests.remove &cThe friend request from {{ NAME }} was removed.

When adjusting the message format you may include any global variables as well as those listed below.

Variable Replacement
{{ SERVER }} The name of the ServerInfo where the message originated
{{ SENDER }} The name of the CommandSender that the message originates from
{{ RECIPIENT }} The name of the ProxiedPlayer that will receive the message
{{ MESSAGE }} The message that was sent
{{ COMMAND }} The command that was executed

Clone this wiki locally