Package pro.cloudnode.smp.cloudnodemsg
Class PluginConfig
java.lang.Object
pro.cloudnode.smp.cloudnodemsg.PluginConfig
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Component
cannotIgnore
(@NotNull String player) Player cannot be ignored@NotNull Component
channelClosed
(@NotNull String sender, @NotNull String recipient, @NotNull String command) Message channel closed@NotNull Component
channelCreated
(@NotNull String sender, @NotNull String recipient, @NotNull String command) Message channel created@NotNull Component
channelOffline
(@NotNull String sender, @NotNull String recipient) Message channel player is offline and channel closed@NotNull Component
channelTeamClosed
(@NotNull String sender, @NotNull Team team) Team chat channel closed@NotNull Component
channelTeamCreated
(@NotNull String sender, @NotNull Team team) Team chat channel created@NotNull String
Name for console/server that should appear as<sender>
or<recipient>
in messages@NotNull Component
Player has successfully been ignored@NotNull Component
You are trying to ignore yourself@NotNull Component
Incoming message format (recipient's point of view)@NotNull Component
incomingDisabled
(@NotNull String player) Target player have disabled their incoming private messages.@NotNull Component
Player has no username (somehow)@NotNull Component
@NotNull Component
neverJoined
(@NotNull String player) Target player has never joined the server@NotNull Component
@NotNull Component
No permission@NotNull Component
notIgnored
(@NotNull String player) That player is not ignored@NotNull Component
Trying to message a team, but not in one@NotNull Component
Only players can use this command@NotNull Component
Outgoing message format (sender's point of view)@NotNull Component
playerNotFound
(@NotNull String player) Player not found@NotNull Component
reloaded()
Plugin reloaded@NotNull Component
replyOffline
(@NotNull String player) The player that messaged you is no longer online@NotNull Component
Private message format as seen by people with the spy permission and console@NotNull Component
Team message@NotNull Component
Team message format as seen by people with the spy permission and console@NotNull Component
@NotNull Component
toggleDisableOther
(@NotNull String player) Player's private messages have been toggled off@NotNull Component
@NotNull Component
toggleEnableOther
(@NotNull String player) Player's private messages have been toggled on@NotNull Component
Player has successfully been unignored@NotNull Component
Command usage format
-
Field Details
-
config
-
-
Constructor Details
-
PluginConfig
-
-
Method Details
-
incoming
@NotNull public @NotNull Component incoming(@NotNull @NotNull String sender, @NotNull @NotNull String recipient, @NotNull @NotNull Component message) Incoming message format (recipient's point of view)Placeholders:
<sender>
- the username of the message sender<recipient>
- the username of the message recipient<message>
- the message text
- Parameters:
sender
- The username of the message senderrecipient
- The username of the message recipientmessage
- The message text
-
outgoing
@NotNull public @NotNull Component outgoing(@NotNull @NotNull String sender, @NotNull @NotNull String recipient, @NotNull @NotNull Component message) Outgoing message format (sender's point of view)Placeholders:
<sender>
- the username of the message sender<recipient>
- the username of the message recipient<message>
- the message text
- Parameters:
sender
- The username of the message senderrecipient
- The username of the message recipientmessage
- The message text
-
team
@NotNull public @NotNull Component team(@NotNull @NotNull String sender, @NotNull @NotNull Team team, @NotNull @NotNull Component message) Team messageUses the vanilla teams from `/team`
Placeholders:
<sender>
- the username of the message sender<team>
- team<message>
- the message text
- Parameters:
sender
- The username of the message senderteam
- The teammessage
- The message text
-
spy
@NotNull public @NotNull Component spy(@NotNull @NotNull String sender, @NotNull @NotNull String recipient, @NotNull @NotNull Component message) Private message format as seen by people with the spy permission and consolePlaceholders:
<sender>
- the username of the message sender<recipient>
- the username of the message recipient<message>
- the message text
- Parameters:
sender
- The username of the message senderrecipient
- The username of the message recipientmessage
- The message text
-
teamSpy
@NotNull public @NotNull Component teamSpy(@NotNull @NotNull String sender, @NotNull @NotNull Team team, @NotNull @NotNull Component message) Team message format as seen by people with the spy permission and consolePlaceholders:
<sender>
- the username of the message sender<team>
- team<message>
- the message text
- Parameters:
sender
- The username of the message senderteam
- The teammessage
- The message text
-
ignored
Player has successfully been ignoredPlaceholders:
<player>
- the username of the player
- Parameters:
player
- The username of the player
-
unignored
Player has successfully been unignoredPlaceholders:
<player>
- the username of the player
- Parameters:
player
- The username of the player
-
channelCreated
@NotNull public @NotNull Component channelCreated(@NotNull @NotNull String sender, @NotNull @NotNull String recipient, @NotNull @NotNull String command) Message channel createdPlaceholders:
<sender>
- the username of the message sender<recipient>
- the username of the message recipient<command>
- the command used, e.g. `msg`, `dm`, etc.
- Parameters:
sender
- The username of the message senderrecipient
- The username of the message recipientcommand
- The command used, e.g. `msg`, `dm`, etc.
-
channelClosed
@NotNull public @NotNull Component channelClosed(@NotNull @NotNull String sender, @NotNull @NotNull String recipient, @NotNull @NotNull String command) Message channel closedPlaceholders:
<sender>
- the username of the message sender<recipient>
- the username of the message recipient<command>
- the command used, e.g. `msg`, `dm`, etc.
- Parameters:
sender
- The username of the message senderrecipient
- The username of the message recipientcommand
- The command used, e.g. `msg`, `dm`, etc.
-
channelOffline
@NotNull public @NotNull Component channelOffline(@NotNull @NotNull String sender, @NotNull @NotNull String recipient) Message channel player is offline and channel closedPlaceholders:
<sender>
- the username of the message sender<recipient>
- the username of the message recipient
- Parameters:
sender
- The username of the message senderrecipient
- The username of the message recipient
-
channelTeamCreated
@NotNull public @NotNull Component channelTeamCreated(@NotNull @NotNull String sender, @NotNull @NotNull Team team) Team chat channel createdPlaceholders:
<sender>
- the username of the message sender<team>
- team
- Parameters:
sender
- The username of the message senderteam
- The team@
-
channelTeamClosed
@NotNull public @NotNull Component channelTeamClosed(@NotNull @NotNull String sender, @NotNull @NotNull Team team) Team chat channel closedPlaceholders:
<sender>
- the username of the message sender<team>
- team
- Parameters:
sender
- The username of the message senderteam
- The team
-
usage
@NotNull public @NotNull Component usage(@NotNull @NotNull String label, @NotNull @NotNull String usage) Command usage formatPlaceholders:
<command>
- the command name<usage>
- the command usage parameters
- Parameters:
label
- Command labelusage
- Command usage parameters
-
reloaded
Plugin reloaded -
consoleName
Name for console/server that should appear as<sender>
or<recipient>
in messages -
toggleDisable
-
toggleDisableOther
Player's private messages have been toggled offPlaceholders:
<player>
- the player's username
- Parameters:
player
- the player's username
-
toggleEnable
-
toggleEnableOther
Player's private messages have been toggled onPlaceholders:
<player>
- the player's username
- Parameters:
player
- the player's username
-
noPermission
No permission -
invalidPlayer
Player has no username (somehow) -
playerNotFound
Player not foundPlaceholders:
<player>
- the player's username
- Parameters:
player
- The player's username
-
messageYourself
-
nobodyReply
-
replyOffline
The player that messaged you is no longer onlinePlaceholders:
<player>
- the player's username
- Parameters:
player
- The player's username
-
notPlayer
Only players can use this command -
notIgnored
That player is not ignoredPlaceholders:
<player>
- the player's username
- Parameters:
player
- The player's username
-
cannotIgnore
Player cannot be ignoredPlaceholders:
<player>
- the player's username
- Parameters:
player
- The player's username
-
ignoreYourself
You are trying to ignore yourself -
neverJoined
Target player has never joined the serverPlaceholders:
<player>
- the player's username
- Parameters:
player
- The player's username
-
incomingDisabled
Target player have disabled their incoming private messages.Placeholders:
<player>
- the player's username
- Parameters:
player
- The player's username
-
notInTeam
Trying to message a team, but not in one
-