Friends
The friends command type
friends:
type: "friends"
enabled: true
name: "friends"
# Unlike commands there can only be 1 of each subcommand
# The type is defined in the key instead of having a type: "subcommand"
subcommand1: ...
subcommand2: ...Friend Subcommands
List
This subcommand is required as the main command /friends also runs this subcommand.
Example
list:
name: "list"
enabled: true
# %name% : Formatted name.
# %date% : Date they started being friends
# %last_mail% : The last mail that was sent.
# %mail_status% : If the mail was read or not.
player:
skull: "%name%"
name: "&6&l%name%"
lore:
- "&7Friends since %date%"
no_player:
material: LIGHT_GRAY_STAINED_GLASS_PANE
# The inventory displaying the friend list.
inventory:
size: GENERIC_9X6
title: "&8&lFriends List"
content:
"top,bottom":
material: LIME_STAINED_GLASS_PANE
"row1,row2,row3,row4":
function:
type: "player"
"45":
function:
type: "last_page"
always_show: false
material: YELLOW_STAINED_GLASS_PANE
name: "&a&lLast Page"
lore:
- "&7Click to go back a page"
"53":
function:
type: "next_page"
always_show: false
material: YELLOW_STAINED_GLASS_PANE
name: "&a&lNext Page"
lore:
- "&7Click to go to the next page"/[friends command name] [name]
The list subcommand displays an inventory containing the list of the player's friends.
Online
This command displays a inventory full of the players friends that are currently online.
online:
name: "online"
enabled: true
# Lets you see other players friend lists.
permission_see_any: "leaf.friends.see"
not_found: "{error_colour}Player could not be found."
error: "{error_colour}Error occurred when opening inventory."
# %name% : Formatted name.
# %date% : Date they started being friends
# %last_mail% : The last mail that was sent.
# %mail_status% : If the mail was read or not.
player:
skull: "%name%"
name: "&6&l%name%"
lore:
- "&7Friends since %date%"
no_player:
material: LIGHT_GRAY_STAINED_GLASS_PANE
# The inventory displaying the friend list.
inventory:
size: GENERIC_9X6
title: "&8&lFriends List"
content:
"top,bottom":
material: LIME_STAINED_GLASS_PANE
"row1,row2,row3,row4":
function:
type: "player"
"45":
function:
type: "last_page"
always_show: false
material: YELLOW_STAINED_GLASS_PANE
name: "&a&lLast Page"
lore:
- "&7Click to go back a page"
"53":
function:
type: "next_page"
always_show: false
material: YELLOW_STAINED_GLASS_PANE
name: "&a&lNext Page"
lore:
- "&7Click to go to the next page"Request
Example
request:
name: "request"
enabled: true
not_found: "{error_colour}Player has never played on this server."
self: "{error_colour}You can not be friends with your self."
# Placeholders will parse in terms of the other player.
sent: "{message} You have sent a friend request to &f<player>"
# Placeholders will parse in terms of the player that sent the request.
from: "{message} You have received a friend request from &f<player>. &aTo accept run the command &e/friends accept"/[friends command name] [name] [player]
The request subcommand is used to send a friend request to a player.
Last updated