CommandRank
Promote players with Kills, Signs, Passwords, Time, Exp, Items, Money and more!
Tired of promoting every player by hand? No Problem! Just use CommandRank :)
It allows the players to promote themselves (With configurable conditions) or even promotes them automatically (for example after a specific time).
Example usage on a PvP-Server:
Players need kills to get a better rank.
With every promotion they get some rewards and a better title.
Features
- Different ways to promote players if they meet the conditions
- Permissions support
- Economy support (needs Vault)
- Everything is configurable
- You can add infinite different "RankUps"
- Possible conditions:
- Player needs money
- Player needs kills (CommandRank is able to count kills)
- Player needs specific "onlineTime" (CommandRank is able to count the time a player is online)
- Player needs specific items in his inventory
- Player needs "Points" (PlayerPoints)
- Player needs to enter a password
- Player needs XP
- Possible ways to execute a rankup:
- "RankUp"-Sign
- Acceptrules command (executes one specific "RankUp")
- Declinerules command (executes one specific "RankUp" (default is prisoner))
- RankUp command (executes the next possible "RankUp"
- AutoRankUp (If enabled, a schedule checks players data every x seconds and executes a "RankUp" if possible)
- Password (Player is able to enter a password. If it's the right one a "RankUp" will be executed)
- Possible actions:
- Commands executed by console
- Commands executed by player
- Items given to player (Enchantments or things like colored wool are possible)
- CommandRank contains an "RankUpEvent" which allows other developers to work with
Commands
- /AcceptRules | Ranks the players to the given group (default: user)
- /DeclineRules | Ranks the players to the given group aswell (default: prisoner *evil* )
- /Password <pw> | Allows the player to enter a password
- /RankUp | Executes the next possible "RankUp"
- /cr | Shows "onlineTime" or kills to the player
- /cra | Admincommand to check onlineTime/kills of a player or to promote somebody
Permissions
- CommandRank.Admin | Allows to execute admincommands and to create a "RankUp" sign & contains "CommandRank.User" permission
- CommandRank.createSign | Allows to create a "RankUp" sign
- CommandRank.AdminCommand | Allows to use the admincommands
- CommandRank.User | Basic permissions
- CommandRank.useSign | Allows to use a "RankUp" sign
- CommandRank.AcceptRules | Allows to use the AcceptRules command
- CommandRank.DeclineRules | Allows to use the DeclineRules command
- CommandRank.Password | Allows to enter a password
- CommandRank.UserCommand | Allows to use the /cr command
- CommandRank.RankUpCommand | Allows to use the /rankup command
- CommandRank.RankUp.<name of rankup> | Allows to use the named "RankUp"
- CommandRank.isGroup.<name of rankup to group> | Prevents from getting AutoRankUp to <name of rankup to group> (You should give the permission to every group to prevent from getting the same "RankUp" multiple times.)
- CommandRank.exclude.* | contains:
- CommandRank.exclude.auto | Excludes from "AutoRankUp"s
- CommandRank.exclude.sign | Excludes from sign-"RankUp"s
- CommandRank.exclude.command | Excludes from command-"RankUp"s
- Advanced guide with permissions
ToDo
- Add FAQ to description
Got any ideas? Post them here: Forum
Found a bug? Create a ticket: Tickets
CommandRank is not working? Your config probably contains some mistakes. Check out your server.log or create a new ticket!
API | Setup guide | Tips & Tricks | Modifications
NOTE: This plugin has not been updated since a long time but should still be working fine! Due to circumstances (For example final school year) I am not able to update my plugins anymore. However most of them should still be working fine and besides I have found Maintainers for a few of my projects, who keep these updated. Thanks for your understanding ;-)
@Zawmbee
Copy the config, change it, replace your old config with the new one and type /crreload ingame (before somebody used the RankUp (then the config will be replaced))
I'm about to explode at this plugin. No matter WHAT I DO, the rankup keeps putting people at "user". I don't have a rank called user, so i changed user in the config to member.
The plugin still REFUSES to make anyone ANY rank but user. I'm out of options, I love the plugin, but setting it up is a damn NIGHTMARE.
@Blackixx
That was it. I forgot the permission nodes.
Sorry, and thank you for the quick response.
@Aangiix3
Can you show your full config? (you could paste it on pastie.org) And did you give the permissions node CommandRank.Kill.Killer and CommandRank.Kill.Victim to your players?
The Kill listener doesn't seem to work properly. I've had it for 2 Months or so, and most of the players have 500kills+
I set up that you will be ranked up to PRO after 250 Kills, but they don't get ranked up:
KillListener:
@FuRiouSOne
"Each time you type /rankup you are always moved to the default group within the plugin not advance to the next group set up in otherRankUps config.Using signs for individual rankups work but would be better to have players use the command /rankup to advance their ranks given they have the fund for the next rank in line."
Hm thats a good idea... I will add this soon.
"Also with the signs if you should click the same sign again the plugin will charge you again and move you to the same group you are currently in. Also lower rank signs will charge you and demote you when clicked."
Then the players still have the RankUp permissions node. Dont give them the node/dont use inheritance if you want, that they cant RankUp themselves multiple times.
"Any possible way to make this plugin work for progression ranks for say drugs/prison servers?"
Yeah.
After testing new additions the rankup command and price message now works.
Only thing it doesnt do now is have some sort of progression. Each time you type /rankup you are always moved to the default group within the plugin not advance to the next group set up in otherRankUps config.
Using signs for individual rankups work but would be better to have players use the command /rankup to advance their ranks given they have the fund for the next rank in line.
Also with the signs if you should click the same sign again the plugin will charge you again and move you to the same group you are currently in. Also lower rank signs will charge you and demote you when clicked.
Any possible way to make this plugin work for progression ranks for say drugs/prison servers?
@Master_Zangetsu
At moment you have to write the amount of blocks after the Log: .Payers can have birch log etc. for RankUp. But thats a good idea. I will add this types soon.
do the items needed accept types of the same item
for example the different types of birch and oak logs? 25:0 25:1 etc
ItemsNeeded: List: - LOG:25 Enabled: true
@FuRiouSOne
Also noticed when player doesnt have enough funds the plugin should tell the player how much they need to advance to next rank if cost is used.
@Blackixx
I tired the changing acceptRules command in the plugin.yml in the jar file but when typing /rankup in game it does nothing, not even unknown command.
@FuRiouSOne
Hm that would be possible, but then, you had to change the plugin.yml in the CommandRank.jar file. Ok I will add a custom command.
Can we not configure a custom command to rank up? Like change /acceptrules to /rankup?
Sign says [rankup] So why cant there be an alias command /rankup?
@Blackixx
Now that I think about it, it might be my version of CB. Buycraft does not work either.
@thekillerofevil
It should work fine... Can you please paste your config?
@Blackixx
1+2. I no longer have it. All I did though was enable player commands for the default rank. The the commands I put on there were newisland, skyhelp, and help. Nothing else was changed
@thekillerofevil
1. Can u show your config 2. At the default-RankUp/default-RankUp with a sign or at another RankUp?
Player commands do not work
@sgttarn
Atm the commands will be executed by the console, but I will add player commands today/tomorrow