You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privateintMAX_NICKNAME_LENGTH = SimpleNicks.getInstance().getConfig().getInt("max-nickname-length");// TODO: Change this temporary constant into a config option.
24
-
privateStringNICKNAME_REGEX = SimpleNicks.getInstance().getConfig().getString("nickname-regex"); // TODO: Change this temporary constant into a config option.
25
23
26
24
publicSet() {
27
25
super("set", "sets a nickname", "/nick set", SimpleNickPermission.NICK_COMMAND);
locale.addDefault("help-minimessage", "<aqua>· <yellow>Formatting: \n <gray>This plugin uses minimessage formatting. You can find a format viewer <aqua><u><click:open_url:'https://webui.adventure.kyori.net/'>here</click></u></aqua>");
105
105
locale.addDefault("config-reload", "<prefix><gold>SimpleNicks config and locale reloaded");
106
106
locale.addDefault("nick-changed-self", "<prefix><green>Changed your own nickname to <nickname>!");
107
-
locale.addDefault("nick-changed-other", "<prefix><green>Changed <username>'s nickname to <nickname>");
107
+
locale.addDefault("nick-change-other", "<prefix><green>Changed <username>'s nickname to <nickname>");
108
+
locale.addDefault("nick-changed-by-other", "<prefix><green><sender> changed your nickname to<reset><nickname><green>!");
108
109
locale.addDefault("nick-reset-self", "<prefix><green>Reset your own nickname!");
Copy file name to clipboardExpand all lines: src/main/resources/plugin.yml
+22-4Lines changed: 22 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,27 @@ permissions:
13
13
simplenick.admin:
14
14
description: allows user to set and reset other players' nicknames
15
15
default: op
16
+
simplenick.admin.reset:
17
+
default: op
18
+
description: Allows the user to clear another player's nickname
19
+
simplenick.admin.restrictive:
20
+
default: op
21
+
description: Allows the user to set another player's nickname, but uses the formatting permissions of the other player
22
+
simplenick.admin.basic:
23
+
default: op
24
+
description: Allows the user to set another player's nickname, using the formatting permissions assigned to the player with the 'admin.basic' permission
25
+
simplenick.admin.full:
26
+
default: false
27
+
description: Allows the user to set another player's nickname, does not check the formatting permissions delegated to either player
16
28
simplenick.reload:
17
29
description: allows a user to reload the locale and config of this plugin
18
30
default: op
19
31
simplenick.usernamebypass:
20
32
description: allows user to nickname themselves another person's username
21
33
default: false
34
+
simplenick.nick:
35
+
description: base of all formatting permissions
36
+
default: op
22
37
simplenick.nick.set:
23
38
description: allows usage of the /nick command
24
39
default: op
@@ -34,15 +49,18 @@ permissions:
34
49
simplenick.nick.rainbow:
35
50
description: allows the rainbow tag to be used in a nickname
36
51
default: op
37
-
simplenicks.nick.format.italic:
52
+
simplenick.nick.format.reset:
53
+
description: allows the reset formatting tag to be used in a nickname
54
+
default: op
55
+
simplenick.nick.format.italic:
38
56
description: allows the italic formatting tag to be used in a nickname
39
57
default: op
40
-
simplenicks.nick.format.strikethrough:
58
+
simplenick.nick.format.strikethrough:
41
59
description: allows the strikethrough formatting tag to be used in a nickname
42
60
default: op
43
-
simplenicks.nick.format.bold:
61
+
simplenick.nick.format.bold:
44
62
description: allows the bold format tag to be used in a nickname
45
63
default: op
46
-
simplenicks.nick.format.obfuscated:
64
+
simplenick.nick.format.obfuscated:
47
65
description: allows the obfuscated format tag to be used in a nickname
0 commit comments