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 ;-)
Awesome plugin dude! i use this for my server and have tipsed a few others and we all love it <3
@smokie23
1.4.4 should work better. At my server with this permissions.yml, it worked great.
1.4.3 is bugged.
I removed CommandRank.getRank from default group, left in CommandRank.useSign. OP's are able to rank up but anybody that isn't a OP gets the "I'm sorry, but you do not have permission to perform this command. Please contact server administrators if you believe that this is an error."
So with this current version if you use CommandRank.useSign, you will still have to use CommandRank.getRank. But only OP's can rank up if I remove CommandRank.getRank.
@Blackixx
ohhh my bad. Awsome stuff. You are quick!
EDIT: Have tested out 1.4.3 and the sign on the wall works as it should. I also tested removing CommandRank.getRank from default group and leaving CommandRank.useSign in the group and the signs still work with CommandRank.getRank removed. So everything seems normal now :)
I'll test out all blocks and make sure it works on them all.
Oh sry wrote this inscrutable. I wanted to say, that I will add this feature, that If you have the permissions node CommandRank.useSign, you dont have to have CommandRank.getRank.
Update is finished too: Now with CommandRank 1.4.3, you can have CommandRank.useSign without CommandRank.getRank for a rankup
@Blackixx
Are you sure?
I have the node CommandRank.useSign for default group. I just removed CommandRank.getRank and tried to use the sign and got the permissionsbukkit error saying "I'm sorry, but you do not have permission to perform this command. Please contact server administrators if you believe that this is an error."
Once I added in the node CommandRank.getRank and tried again...it let me rank. So there is a dependency on that node.
EDIT: what permissions plugin is this built on or do you test with mostly? I use permissionsbukkit.
@smokie23
Ok I will add this feature now: If you have the permissions node CommandRank.useSign, you dont have to have CommandRank.getRank.
Hmmmm...my friend knew this plugin. He came on the server and just used /acceptRules and got the rank without doing the tutorial. Is that suppose to do that with CommandRank.useSign? Is there a way to disable the command /acceptRules and only use the signs? Couldn't really see option for it in config.
EDIT: actually found a plugin that may allow me to disable any command. I try that out first.
EDIT2: Ok if it easy for you to do, I rather use one plugin then two of them.
Update is ready, you can download it as soon as the file is approved
@Blackixx
sure, Ill help you test out new features and what not if you want me too! just glad I found out what was causing this problem before I redesigned my map/building or telling worldguard something isn't working :)
Fantastic: You found the bug. I will fix this now. If you want, you can be official tester of this plugin.
OMG...I think I found it out man!!!
Video of bug
Steps to reproduce:
- Give permissions CommandRank.getRank, CommandRank.useSign to default group
- Create 2 signs. Create one ON TOP of a block and create one ON THE SIDE of a block (like on the wall and one on the ground)
- Click signs with default group.
The sign on the wall or ON THE SIDE of a block does not work. The sign ON TOP of the block will work!
Can you test this for me? I hope this is the problem.
@Blackixx
:) awsome! didnt think it was possible. also no rush...take your time implementing this.
But those plugins are outdated? I looked for hours for a plugin like this and all I found was outdated/inactive plugins. Most were from MC beta era.
Just a quick question...that video you posted. Is that near main spawn where you created that sign?
@smokie23
OK I will add item support (items needed) And different groups, but
line 1: [RankUp] line 2: <group> line 3: comment line 4: comment will not work, cause the command is different in the permissions plugins. But it could be like this: Config:
And new config line: SignLine2: <name>
So if "SignLine2: guest", your sign looks like this: [RankUp] guest <comment> <comment>
@Blackixx
I found out more info on this problem. It is not a server restart as I originally expected. I create a sign and it will not work from the get go. I created a sign that is about 30 blocks above where I wanted it in the first place and it will allow me to rank up for some reason. (I can only think that spawn protection is affecting it somehow, because this sign is kind of close to main spawn, if I fly away from spawn it will work and if I create sign way up it will work)
If I lower the sign 30 or so blocks it stops working again, this I cannot find out why for the life of me. Im ripping my hair out trying to figure this out. I set "spawn-radius" to -1, 0, 1 and default 16...still no difference. I tried multiple combinations of worldgaurd region settings (setpriority, parents, setting use flag on and off, tried messing with global settings and even construct, build flags) and still no luck. Tried to even remove the entire region from database and still sign will not work. Its very odd.
Its ok though...I will redesign my whole building just to make this damn sign work =D pain in the butt but a solution.
As for the 'You are already in this group' thing...that is no biggie. It would be nice though if there was a confirmation to limit player confusion. All in all pretty good plugin. Essential on my server.
Possible request
Would it be possible to implement something like exchanging in-game items for ranks? like money with economy but just with items. For example a player can click on a donator sign and will need X amount of diamonds to rank up. This will allow players that cannot donate money for whatever reason, still have access to the donator group and permissions and goodies.
The sign can be configured like so:
line 1: [RankUp]
line 2: <group>
line 3: comment
line 4: comment
create a perimission node: CommandRank.getRank.<group>
When player clicks on sign it does checks. Items needed? Items in inventory? Does player already have rank? Does player have correct permissions and if everything is ok player is added to that group automatically and items taken from their inventory.
If you could implement something like this, It would allow many more possible ways of server admins setting up servers. I have no clue if this is even possible and just thought of it while messing around on my server.
@smokie23
I tested this, and the sign worked after restart: video
I dont know the cause of the error, but I had this error with another plugin (CommandSigns) before. Could you test this without other plugins, and tell me if this works?
Zitat: Another problem? If someone is already in the group and they click the sign, it will not say "You are already in this group".
Give all players the permissions node CommandRank.useSign, then they can click on it.
CB #2126
CommandRank 1.2.3
PermissionsBukkit 1.6
The sign is not working after a server restart.
Steps to reproduce:
- Give permissions CommandRank.getRank, CommandRank.useSign to default group
- Create a sign (it will say successfully created)
- NOTE: if they click on sign now, it WILL work.
- Restart server
- Have a player in default group click the sign
- NOTHING HAPPENINGS. Sign no work anymore.
Expected result:
I expect that the sign still be active and available upon server restart. If I have to create a sign every time I log on or restart server...this plugin is useless.
Another problem?
If someone is already in the group and they click the sign, it will not say "You are already in this group".
UPDATE:
As for the first problem, I moved the sign out of a protected region into an area with no protections and it worked...so how do I use this sign in a protected region?
As for the second problem...they are still NOT notified that they are already in this group. When clicked there is no message...just silent.
WOO. Finally found it. Such a simple plugin but none out there. Thanks alot bro! Simple yet effective.
YEAH: 1.4
Important: Vault is needed if you want to enable Economy on this plugin
@Blackixx
Ok i am sorry i missed that :/ hope i dont disturbed you and I love this plugin it is realy great you can test it out on my server now when i have it all working Thanks for creating this plugin keep up the good work and make so it is always updated for the builds