File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
java/pro/cloudnode/smp/cloudnodemsg Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -242,5 +242,18 @@ public PluginConfig(final @NotNull FileConfiguration config) {
242242 Placeholder .unparsed ("player" , player )
243243 );
244244 }
245+
246+ /**
247+ * Target player have disabled their incoming private messages.
248+ * <p>Placeholders:</p>
249+ * <ul><li>{@code <player>} - the player's username</li></ul>
250+ *
251+ * @param player The player's username
252+ */
253+ public @ NotNull Component incomingDisabled (final @ NotNull String player ) {
254+ return MiniMessage .miniMessage ().deserialize (Objects .requireNonNull (config .getString ("errors.incoming-disabled" )),
255+ Placeholder .unparsed ("player" , player )
256+ );
257+ }
245258}
246259
Original file line number Diff line number Diff line change @@ -81,3 +81,8 @@ errors:
8181 # Placeholders:
8282 # <player> - the player's username
8383 never-joined : " <red>(!) <gray><player></gray> has never joined this server.</red>"
84+
85+ # Target player have disabled their incoming private messages.
86+ # Placeholders:
87+ # <player> - the player's username
88+ incoming-disabled : " <red>(!) <gray><player></gray> has disabled their private messages."
You can’t perform that action at this time.
0 commit comments