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 ;-)
Could I get a better explanation for running other commands? I want the player to run the command "/hbg join" I have Essentials, so I've been trying to sudo the player. CommandList: - world yourmainworld - user %player% - user setgroup user What does the world and user mean? Is that a part of the command that is run? Is the command here "/setgroup user"? I need some help :/
@Khralen
You can only get as much items as you want, if you have permissions.
Example:
Guest : has permissions node for rankUp
User : has permissions node for rankUp too
At this example you can get infinite items.
You also said that theres a problem with your command. So, if you have UseCommandBelow: false, then it executes the permissionsBukkit command. I will change this soon, but atm, your config should look like that:
I seem to be hacing trouble getting the plugin to actualy rank people up, I'm using it via signs, and I have bPermissions. It says the player was ranked up, and it gives them the items, but it doesn't issue the command properly. I also noticed that I can spam the sign to get as much items I want...
Top portion of the config:
CommandRank:
NoPermissions: You do not have permissions!
NoArguments: This command has no arguments!
Economy:
Failed: /AcceptRules failed
NotEnoughMoney: You do not have enough money
Enabled: false
SignText: '[RankUp]'
ToLessOnline: You were to less online for RankUp
OnlineTimeEnabled: false
Default:
OnlineTime: 0
Group: citizen
RankUp: You are now in the group Citizen!
Economy:
Price: 0
UseCommandBelow: false
Command: permissions player setgroup %name% user
UseCommandListBelow: true
CommandList:
- world NerdCraft_Old
- user %player%
- user setgroup citizen
Actions:
LeatherArmor: true
IronArmor: false
GoldArmor: false
ChainArmor: false
DiamondArmor: false
Food: true
Heal: true
WoodenTools: false
StoneTools: true
IronTools: false
GoldTools: false
DiamondTools: false
ItemsNeeded:
List:
- LOG:10
- DIRT:60
Enabled: false
GetItems:
List:
- LOG:10
- TORCH:15
Enabled: false
It is so perfect now! :D
Thank you so much for the Plugin!
@rockingoutloud
can you show your config and a part of your serverlog? (use pastie) I think you wrote your commands wrong.
I'm having some issues with the command. I need it to use either a PEX command or (preferably) the McMyAdmin command. I can't seem to get them to take either. When players use the command, it displays the RankUp message, but doesn't actually make the change. Anything on this?
@Aangiix3
then you have get Items = false, cause there isnt any difference between the signRankUp and the killRankUp.
I have found a bug (I think)... I set up, that you automatically get ranked up to "Pro" when you reach 250 Kills, and it works fine, but the User doesn't get the items!
@fueroll
it allows you to set a command to enact with any permission system.
Does this works with PermissionEx? (PEX)?? If not could you add this feature?;)
Thank you. _____ fueroll Owner of tranicatagaming
@smokie23
Ok I will add a way to reload the config ingame.
Bug #1. I will change this, that the plugin takes money and items at the end, if the player has all items, money, onlineTime etc.
Bug #2: If the plugin is used for guests, that they can RankUp themselves, they will not have diamond armor and if its used for other players too, the admins can set Give Leather Armor to false, and add it on the getItemsList.
Can you add a way to reload your config from in-game?
Like with another plugin I use "mchatsuite" I can use command like "/mchat reload info" and it will reload info.yml without needed to restart/reset server. This will make testing much quicker and easier too :)
EDIT:
Bug #1.
- Items needed in use
- Money needed in use
When you are using both of these options together and the player does not have enough money to rankup and they try to use a rankup sign, the items needed are still taken from the player.
Bug #2:
- Equip some nice shiny new diamond armor :)
- Give leather armor (or any armor) on rank up using sign
When a player has armor on and they rankup using a sign the armor given to them on rankup replaces the nice shiny new diamond armor they were wearing before and the nice new shiny diamond armor is gone...FOREVER :*(
Bug #3:
- Money needed in use
- Items needed in use (I used 1 torch needed to rank up)
- Have 1 torch in inventory
- Click on the RankUp sign
The Items_Needed message pops up even though I have 1 torch in my inventory.
Also, this is triggered when you add money to the players account and the player now has enough money to rank up and the player only has 1 torch in their inventory...they still cannot rankup
Actually Bug #1 is affecting or maybe is the root problem to Bug #3, making things really confusing on testing. I think Bug #1 needs to be fixed before I test Bug #3 more.
@Blackixx
It finally worked. I am the happiest Admin in the world right now :D
Thank you very much for your amazing Plugin!
@Aangiix3
Updated the config tutorial
@Blackixx
No, it works fine. I just want to know how to make signs that promote to the Rank I created...since there's no tutorial explaining that (the signs tutorial only explains how to do a regular one) :(
Fixed the reload problem: At 1.9.1 you can reload your server to reload the config, if you have
@Aangiix3
Can you show your config?
Yes I do have PRO in OtherRankUps and it works, but I don't know what to write on the Sign since in the Signs-Help Page it says that you can write anything you want in the 2nd,3rd and 4th line...so where do I have to write the rank down?
@Drake63628
Hm ok my idea:
You can type /apw <code>, and then the plugin saves the code to your name. If you want to rankUp yourself then, and code is enabled for this group, the code at your name must be the same then the code in the config.
@Blackixx
Basically I've been trying to find a plugin that does what I was saying in that thread. It would be nice if you could add support for multiple ranks and have passwords that can be set for each rank. I cant seem to find a plugin that does that specific job so far. I basically have just wanted the /acceptrules and then the /acceptrules <password> and the basic sets them as Member, the other sets them as a Builder