About ToXiiCxRanks
We are happy to present out first plugin ToXiiCxRanks!
We plan to continue to develop this plugin adding new features and condensing the needs of a prisons server into as few plugins as possible! Every message in-game is handled through a config. Ranks can be formatted per-rank (it basically supports multi-colored ranks).
There is a prestige algorithm (if you choose to enable): {BaseCost * Multiplier ^ PrestigeLevel} Should create a dynamic slope in prestiges.
Ranks also have a multiplier per prestige: {RankPrice * RankMultiplier ^ Prestige} Also can be toggled.
The ranks execute commands that are able to be set in config. We already have a preloaded config and message file that will be created when loading the plugin up for the first time.
The placeholders in the config and messages are only for our plugin. We have preset placeholders for PlaceholderAPI (which you need on your server in order for it to be used by title manager). We also have preloaded PEX ( PermissionsEx) commands to be executed per-rank.
Here are the current placerholders
Placeholders
Messages.yml:
%playerrank || Player's rank.
%prestigecost || Price to prestige.
%rankcost || Current rank price.
%nextrank || Player's next rank.
%lastrank || Last rank in the config file.
%nextprestige || Next prestige.
%player || Player's name.
%balance || Player's balance.
%prestige || Player's prestige.
(for setting other people's prestige/rank)
%targetplayer || Player targetted.
%targetplayerrank || Targetted player's rank.
%targetplayerprestige || Targetted player's prestige.
Config.yml:
Rank commands:
%player || Player username.
%nextrank || Next rank (one they are ranking up to)
%currentrank || Current rank
Prestige commands:
%player || Player username
%currentrank || Current rank
Chat:
%rankformatted || Player's rank formatted.
%displayname || Includes the player's pex group prefix, nick, and suffix
%prestige || Player's prestige. (Does not work in the vanilla chat)
%rank || Player's rank without being formatted.
PlaceholderAPI:
(For use with featherboard or titlemanager type plugins)
%toxiicranks_rank%
%toxiicranks_rankformatted%
%toxiicranks_prestige%
Here are the permissions and commands
Perms/Cmds
Permissions:
- toxiicxranks.chatcolor | Enables chat color.
- toxiicxranks.rank.set | Set your rank.
- toxiicxranks.rank.set.other | Set another player's rank.
- toxiicxranks.prestige.set | Set your prestige.
- toxiicxranks.prestige.set.other | Set another player's prestige.
Commands:
/rankup | Ranks the player up if they have enough money.
/prestige | Lets the player prestige (need to know if it needs to cost money or not).
/prestige set <number> | Sets your prestige.
/prestige set <player> <number> | Sets the player's prestige.
/ranks | Lists ranks.
/ranks set <character> | Sets your rank.
/ranks set <player> <character> | Sets the player's rank.(edited)
Our Base YML Files:
Config.yml
Config:
Build: 1d
Prestige:
Multiplier: 1.35
UseRankAlgorithm: true
Commands:
- pex user %player group add A
- pex user %player group remove %currentrank
Price:
Enabled: true
Cost: 5000000
Multiplier: 1.5
Ranks:
LastRank: D
Chat:
Prestige: '%rankformatted&r &7%displayname &8[&6%prestige&8] &7➤&f '
Vanilla: '%rankformatted&r &7%displayname &7➤&f '
Ranks:
A:
Price: 5000
Format: '&8[A]'
Commands:
- pex user %player group add %nextrank
- pex user %player group remove %currentrank
B:
Price: 10000
Format: '&8[&7B&8]'
Commands:
- pex user %player group add %nextrank
- pex user %player group remove %currentrank
C:
Price: 17500
Format: '&8[&7C&8]'
Commands:
- pex user %player group add %nextrank
- pex user %player group remove %currentrank
D:
Price: 35000
Format: '&8[&fD&8]'
Commands:
- pex user %player group add %nextrank
- pex user %player group remove %currentrank
messages.yml
Messages:
Rankup:
Error:
Rank: '&4You are already at the last rank!'
Money: '&4You need &c$%rankcost&4 to rankup to &c%nextrank&4!'
Success:
Private: '&2Congrats, &a%player&2, you ranked up to, &a%playerrank&2! Current
balance: &a$%balance'
Global: '&6&l%player&7&l ranked up to &6&l%playerrank&7&l!'
Prestige:
Error:
Rank: '&4You need to be rank &c%lastrank&4 to prestige!'
Money: '&4You need &c%prestigecost&4 to prestige to &c%nextprestige&4!'
Success:
Private: '&2Congrats, &a%player&2, you are now prestige &a%prestige&2!'
Global: '&6&l%player&7&l is now prestige &6&l%prestige&7&l!'
Set:
Self:
Error:
Permission: '&4You do not have permission to set your prestige!'
Success: '&2You successfully set your prestige to &a%prestige'
Other:
Error:
Permission: '&4You do not have permission to set other player''s prestige!'
Player: '&4The player, &c%targetplayer&4, does not exist!'
Success:
Executor: '&2You successfully set &a%targetplayer''s&2 prestige to &a%prestige&2!'
Target: '&2Your prestige was set to &a%prestige&2!'
Rank:
List:
Header: '&7-----&6Ranks&7-----'
Format:
Previous: '&a➤ %rank &2Price: &a%cost'
Current: '&7✔ %rank &8Price: &7%cost'
Next: '&c✖ %rank &4Price: &c%cost'
Set:
Self:
Error:
Permission: '&4You do not have permission to set your rank!'
Rank: '&4No such rank exists!'
Success: '&2You successfully set your rank to &a%playerrank&2!'
Other:
Error:
Permission: '&4You do not have permission to set your rank!'
Rank: '&4No such rank exists!'
Player: '&4The player, &c%targetplayer&4, does not exist!'
Success:
Executor: '&2You successfully set &a%targetplayer''s&2 rank to &a%targetplayerrank&2!'
Target: '&2Your rank was set to &a%targetplayerrank&2!'
GitHub:
Our GitHub contains all the information you need to know or may want to see about all our public custom plugins!
Take a look here.
Requirements:
PlaceholderAPI
PermissionsEx - you can redo the config commands to get around this
Vault
Need help or looking for custom plugin development?
Join our discord!
Follow us on Twitter!
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta