Package pro.cloudnode.smp.cloudnodemsg
Class PluginConfig
java.lang.Object
pro.cloudnode.smp.cloudnodemsg.PluginConfig
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull ComponentcannotIgnore(@NotNull String player) Player cannot be ignored@NotNull ComponentchannelClosed(@NotNull String sender, @NotNull String recipient, @NotNull String command) Message channel closed@NotNull ComponentchannelCreated(@NotNull String sender, @NotNull String recipient, @NotNull String command) Message channel created@NotNull ComponentchannelOffline(@NotNull String sender, @NotNull String recipient) Message channel player is offline and channel closed@NotNull ComponentchannelTeamClosed(@NotNull String sender, @NotNull Team team) Team chat channel closed@NotNull ComponentchannelTeamCreated(@NotNull String sender, @NotNull Team team) Team chat channel created@NotNull StringName for console/server that should appear as<sender>or<recipient>in messages@NotNull ComponentPlayer has successfully been ignored@NotNull ComponentYou are trying to ignore yourself@NotNull ComponentIncoming message format (recipient's point of view)@NotNull ComponentincomingDisabled(@NotNull String player) Target player have disabled their incoming private messages.@NotNull ComponentPlayer has no username (somehow)@NotNull Component@NotNull ComponentneverJoined(@NotNull String player) Target player has never joined the server@NotNull Component@NotNull ComponentNo permission@NotNull ComponentnotIgnored(@NotNull String player) That player is not ignored@NotNull ComponentTrying to message a team, but not in one@NotNull ComponentOnly players can use this command@NotNull ComponentOutgoing message format (sender's point of view)@NotNull ComponentplayerNotFound(@NotNull String player) Player not found@NotNull Componentreloaded()Plugin reloaded@NotNull ComponentreplyOffline(@NotNull String player) The player that messaged you is no longer online@NotNull ComponentPrivate message format as seen by people with the spy permission and console@NotNull ComponentTeam message@NotNull ComponentTeam message format as seen by people with the spy permission and console@NotNull Component@NotNull ComponenttoggleDisableOther(@NotNull String player) Player's private messages have been toggled off@NotNull Component@NotNull ComponenttoggleEnableOther(@NotNull String player) Player's private messages have been toggled on@NotNull ComponentPlayer has successfully been unignored@NotNull ComponentCommand 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
-