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 ;-)
-
View User Profile
-
Send Message
Posted Feb 20, 2013I have my default group permissions set like this:
default:
prefix: '&aNEW'
default: true
permissions:
- commandrank.acceptrules
- -bukkit.command.plugins
- mcdocs.command.rules
- tos.accept
- modifyworld.chat
- -teleport.*
They are unable to use the acceptrules command .. if i add - commandrank.* then they can
-
View User Profile
-
Send Message
Posted Feb 20, 2013Ok .. so the problem I was having with needing to add the - -commandrank.isgroup.* was because I had OP in the minecraft server .. now .. what are all the new permissions?
-
View User Profile
-
Send Message
Posted Feb 20, 2013So far everything is working verry good .. I am now rewriging my permissions file .. It was getting out of hand lol .. see if I can remove a few hundred lines ;-)
-
View User Profile
-
Send Message
Posted Feb 20, 2013was wondering if you could make it so by default nobody had permission to use the plugin?
This way we would have to add the permissions that are needed per group
-
View User Profile
-
Send Message
Posted Feb 20, 2013@shadvalentine
The best way to solve this is just to create the list like that:
Example:
so like:
Then it will check the higher ranks first.
-
View User Profile
-
Send Message
Posted Feb 20, 2013This is not a problem for me .. however you have to remove the permission for the other rankups or it will try to run the wrong one ..
example:
- commandrank.isgroup.owner
- -commandrank.isgroup.*
This makes it run only the owner rankup
If I do not add the - -commandrank.isgroup.* it will try to run a lesser rankup
-
View User Profile
-
Send Message
Posted Feb 20, 2013Love it !! ... 1 command to switch between as many ranks as I need .. so now I can switch between my Owner (same as a normal player) OwnerOP (OP Powers) and OwnerOPPS (OP Powers + the ability to place special Prortection stones for shops)
-
View User Profile
-
Send Message
Posted Feb 20, 2013will keep testing .. looks like it is working
-
View User Profile
-
Send Message
Posted Feb 20, 2013Wow .. that was fast .. gona test it now
-
View User Profile
-
Send Message
Posted Feb 20, 2013@shadvalentine
Yes your config is right.
Update: http://dev.bukkit.org/server-mods/commandrank-permissionsbukkit/files/52-3-0-1-beta/
-
View User Profile
-
Send Message
Posted Feb 20, 2013ok .. so I am setting it up correctly then?
If that is the case I will stop messing with it untill the next update.
-
View User Profile
-
Send Message
Posted Feb 20, 2013@shadvalentine
I'll take a look in that. The next plugin update is going to fix all of the bugs and I'll release it in some days.
-
View User Profile
-
Send Message
Posted Feb 20, 2013This setup switches me between Owner and OwnerOP
commandrankuplist:
enabled: true
list:
- CommandRank.isGroup.BuilderI:builderii
- CommandRank.isGroup.BuilderII:ownerop
- CommandRank.isGroup.Owner:ownerop
- CommandRank.isGroup.OwnerOP:owneropps
- CommandRank.isGroup.OwnerOPPS:owner
for some reason the plugin sees me as being BuilderII when I am Owner
-
View User Profile
-
Send Message
Posted Feb 20, 2013If I understand it correctly .. you make a group for each rankup .. in my case I have owner, ownerop and owneropps .. then you make a CommandRank.isGroup.owner:ownerop .. and add this permission to my permissions plugin and /rankup moves owner to ownerop .. right?
If this is correct .. I can not make it work
-
View User Profile
-
Send Message
Posted Feb 20, 2013I can not figure out how to use the rankup command ... How do I set the config and permissions ... We do not have access to your new Config file example on this page
...
First Run
On the first run, the plugin will create a Folder with a config. Here, you can see, how to edit the config
-
View User Profile
-
Send Message
Posted Feb 20, 2013@shadvalentine
The next update will fix this aswell.
-
View User Profile
-
Send Message
Posted Feb 20, 2013Why can I not remove the rankups user, builder and prisoner from the config?
-
View User Profile
-
Send Message
Posted Feb 18, 2013@shadvalentine
" and this is an error I get when I type /rules"
I'm fixing this now.
"I got the /declinerules to work .. however I have a problem with the order that commands are ran ... when somone types /declinerules it is soposed to set them to the BAD group and then send them to BAD spawn .. but the spawn is fireing before the group is changed ... this sends them to the default spawn location on the main world. .. Is there a way to set a delay in the commands .. or set the order that they fire?"
I'll just change the code that the console commands run first.
"could you add an admin command that would allow us to rank a player manulay? .. "
Ok sure.
"Maybe make the command configurable .. so we can set it to what ever we want .. like in my case I would use /banish"
Well would be possible, but then you would have to go inside the CommandRank.jar / plugin.yml and change the command name there.
-
View User Profile
-
Send Message
Posted Feb 17, 2013so I got the /declinerules to work .. however I have a problem with the order that commands are ran ... when somone types /declinerules it is soposed to set them to the BAD group and then send them to BAD spawn .. but the spawn is fireing before the group is changed ... this sends them to the default spawn location on the main world. .. Is there a way to set a delay in the commands .. or set the order that they fire?
Edit:
I found a way around it .. however I will still like a way to pick which one fires first .. and also .. could you add an admin command that would allow us to rank a player manulay? .. like /banish player .. this would run the same rank as them typing /declinerules
Maybe make the command configurable .. so we can set it to what ever we want .. like in my case I would use /banish
-
View User Profile
-
Send Message
Posted Feb 17, 2013changing to lower case worked .. and this is an error I get when I type /rules
2013-02-17 22:32:27 [INFO] MCDocs: shadvalentine: /rules
2013-02-17 22:32:27 [SEVERE] Could not pass event PlayerCommandPreprocessEvent to CommandRank v3.0.0
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_4_R1.PlayerConnection.handleCommand(PlayerConnection.java:972)
at net.minecraft.server.v1_4_R1.PlayerConnection.chat(PlayerConnection.java:898)
at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:853)
at net.minecraft.server.v1_4_R1.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113)
at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598)
at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.StringIndexOutOfBoundsException String index out of range: 1
at java.lang.String.charAt(Unknown Source)
at org.black_ixx.commandRank.listeners.PlayerListener.onCommand(PlayerListener.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 16 more
2013-02-17 22:32:31 [INFO] MCDocs: shadvalentine: /rules 2
2013-02-17 22:32:34 [INFO] MCDocs: shadvalentine: /rules 3
2013-02-17 22:32:37 [INFO] MCDocs: shadvalentine: /rules 4