We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
toggleDisableOther
1 parent d7f730c commit 7138623Copy full SHA for 7138623
src/main/java/pro/cloudnode/smp/cloudnodemsg/PluginConfig.java
@@ -94,6 +94,18 @@ public PluginConfig(final @NotNull FileConfiguration config) {
94
}
95
96
/**
97
+ * The player you disabled private messages
98
+ * <p>Placeholders:</p>
99
+ * <ul><li>{@code <player>} - the player's username</li></ul>
100
+ *
101
+ * @param player the player's username
102
+ */
103
+ public @NotNull Component toggleDisableOther(final @NotNull String player) {
104
+ return MiniMessage.miniMessage().deserialize(Objects.requireNonNull(config.getString("toggle-disable-other")),
105
+ Placeholder.unparsed("player", player)
106
+ );
107
+ }
108
+
109
* No permission
110
*/
111
public @NotNull Component noPermission() {
0 commit comments