File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/main/java/pro/cloudnode/smp/cloudnodemsg Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,20 @@ public PluginConfig(final @NotNull FileConfiguration config) {
110110 return MiniMessage .miniMessage ().deserialize (Objects .requireNonNull (config .getString ("toggle-disable" )));
111111 }
112112
113+ /**
114+ * The player you enabled private messages
115+ * <p>Placeholders:</p>
116+ * <ul><li>{@code <player>} - the player's username</li></ul>
117+ *
118+ * @param player the player's username
119+ */
120+ public @ NotNull Component toggleEnableOther (final @ NotNull String player ) {
121+ return MiniMessage .miniMessage ().deserialize (Objects .requireNonNull (config .getString ("toggle-disable-other" )),
122+ Placeholder .unparsed ("player" , player )
123+ );
124+ }
125+
126+ /**
113127 * No permission
114128 */
115129 public @ NotNull Component noPermission () {
You can’t perform that action at this time.
0 commit comments