Skip to content

Commit 7138623

Browse files
committed
Use toggleDisableOther in configuration.
1 parent d7f730c commit 7138623

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/pro/cloudnode/smp/cloudnodemsg/PluginConfig.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,18 @@ public PluginConfig(final @NotNull FileConfiguration config) {
9494
}
9595

9696
/**
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+
97109
* No permission
98110
*/
99111
public @NotNull Component noPermission() {

0 commit comments

Comments
 (0)