generated from ArtformGames/TemplateSinglePlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(perm): Support different length for different permissions.
- Loading branch information
Showing
8 changed files
with
53 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 14 additions & 11 deletions
25
src/main/java/com/artformgames/plugin/usersuffix/conf/PluginMessages.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,50 @@ | ||
package com.artformgames.plugin.usersuffix.conf; | ||
|
||
import cc.carm.lib.mineconfiguration.bukkit.value.ConfiguredMessageList; | ||
import com.artformgames.core.conf.MessagesRoot; | ||
import com.artformgames.core.conf.Messages; | ||
import net.md_5.bungee.api.chat.BaseComponent; | ||
|
||
public class PluginMessages extends MessagesRoot { | ||
public interface PluginMessages extends Messages { | ||
|
||
public static final ConfiguredMessageList<BaseComponent[]> CLEARED = list() | ||
ConfiguredMessageList<BaseComponent[]> CLEARED = Messages.list() | ||
.defaults("&fThe existing suffix has been cleared for you. To set up again, enter &e/suffix content <content> &f.") | ||
.build(); | ||
|
||
public static final ConfiguredMessageList<BaseComponent[]> TOO_LONG = list() | ||
ConfiguredMessageList<BaseComponent[]> NO_PERMISSION = Messages.list() | ||
.defaults("&c&lSorry! &fBut you dont have enough permission to set a suffix!") | ||
.build(); | ||
|
||
ConfiguredMessageList<BaseComponent[]> TOO_LONG = Messages.list() | ||
.defaults("&fThe suffix you want to set is too long, no longer than &e% (length) &f characters (excluding colors).") | ||
.params("length") | ||
.build(); | ||
|
||
public static final ConfiguredMessageList<BaseComponent[]> TOO_SHORT = list() | ||
ConfiguredMessageList<BaseComponent[]> TOO_SHORT = Messages.list() | ||
.defaults("&fYour suffix contains at least one character (excluding colors).") | ||
.build(); | ||
|
||
public static final ConfiguredMessageList<BaseComponent[]> SUCCESS = list() | ||
ConfiguredMessageList<BaseComponent[]> SUCCESS = Messages.list() | ||
.defaults("&fSuccessfully modified your suffix to &r%(suffix) &f.") | ||
.params("suffix") | ||
.build(); | ||
|
||
public static final ConfiguredMessageList<BaseComponent[]> FAILED = list() | ||
ConfiguredMessageList<BaseComponent[]> FAILED = Messages.list() | ||
.defaults("&fYou can't use this suffix because it may contain a violating word, please try again after changing something else.") | ||
.build(); | ||
|
||
public static final ConfiguredMessageList<BaseComponent[]> NO_SPACE = list() | ||
ConfiguredMessageList<BaseComponent[]> NO_SPACE = Messages.list() | ||
.defaults("&fSuffix should not contain spaces.") | ||
.build(); | ||
|
||
public static final ConfiguredMessageList<BaseComponent[]> CONTAIN_COLOR_CODE = list() | ||
ConfiguredMessageList<BaseComponent[]> CONTAIN_COLOR_CODE = Messages.list() | ||
.defaults("&fYou can't include color codes directly in your suffix!") | ||
.build(); | ||
|
||
public static final ConfiguredMessageList<BaseComponent[]> INVALID_COLOR_CODE = list() | ||
ConfiguredMessageList<BaseComponent[]> INVALID_COLOR_CODE = Messages.list() | ||
.defaults( | ||
"&fYour color is invalid!", | ||
"&fYou can choose from the following colors:" | ||
).build(); | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
&e _ _ &f ___ __ __ _ | ||
&e| | | |___ ___ _ _&f/ __|_ _ / _|/ _(_)_ __ | ||
&e| |_| (_-</ -_) '_&f\__ \ || | _| _| \ \ / | ||
&e \___//__/\___|_| &f|___/\_,_|_| |_| |_/_\_\ | ||
&f UserSuffix &7v${project.version} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ api-version: 1.16 | |
|
||
depend: | ||
- ArtCore | ||
- LuckPerms | ||
|
||
softdepend: | ||
- PlaceholderAPI | ||
|