Function Prefix and Suffix - NyaaCat/NyaaUtils GitHub Wiki
Prefix and Suffix
Enables player to add prefix and suffix to themselves at a customized money and exp cost.
This function depends on Vault, and can be used with GroupManager or PermissionEX.
Command
/nu prefix [prefix]
Set your prefix.
/nu suffix [suffix]
Set your suffix.
/nu resetprefix
Reset your prefix to default.
/nu resetsuffix
Reset your suffix to default.
/nu format
Check available formatting codes and their effect.
Permission
nu.prefix- set/reset your prefix, defaults to allnu.suffix- set/reset your suffix, defaults to allnu.format- use/nu formatcommand, defaults to all
Config
custom_fixes_prefix_format: '&r{prefix}&r '
custom_fixes_prefix_moneyCost: 100
custom_fixes_prefix_expCost: 100
custom_fixes_prefix_maxlength: 10
custom_fixes_prefix_disabledFormattingCodes:
- k
custom_fixes_prefix_blockedWords:
- bad word
- [admin]
custom_fixes_suffix_format: '&r {suffix}&r'
custom_fixes_suffix_moneyCost: 100
custom_fixes_suffix_expCost: 100
custom_fixes_suffix_maxlength: 10
custom_fixes_suffix_disabledFormattingCodes: []
custom_fixes_suffix_blockedWords: []
formatallows you to format prefix/suffixes added to player, such as add a space and reset code between -fixes and username.moneyCostis the economy price for every successful execute of prefix/suffix setting.expCostis the exp price for every successful execute of prefix/suffix setting.maxlengthdecides how long prefix/suffixes can be.disabledFormattingCodesto block formatting codes be used in prefix/suffixes. You can addkto the list to block usage of&k.blockedWordsto block any bad words or words you don't want your player to use, this ignores all formatting code.
Usage
See commands.