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 22, 2013@Blackixx
I updated my CommandRank, but now when any rank tries to rank up, using either /acceptrules or a [RankUp] sign, they get a message in chat saying "Main.NoPermissions" I have given them permissions in PEX though to be able to rank up using either.
http://pastebin.com/qqcwsxRp
After looking into the console, i found it was producing this error http://pastebin.com/p18nttjY
-
View User Profile
-
Send Message
Posted Feb 22, 2013@shadvalentine
The problem at the restart is: First CommandRank stores the time of the players and removes them from a map. Then the PlayerQuitEvent is fired because your server kicks the players. CommandRank detects that the players leave and tries to store their time again but it was already saved and removed from the map. I'll add a fix to the next update.
-
View User Profile
-
Send Message
Posted Feb 22, 2013Just noticed that I am getting an error when my server restarts...
http://pastebin.com/aztk91fS
-
View User Profile
-
Send Message
Posted Feb 22, 2013@RevZamorak
You are using the old version of CommandRank.
@shadvalentine
Ok I'll add it.
-
View User Profile
-
Send Message
Posted Feb 21, 2013@RevZamorak
Unless they fixed it .. I had alot of problems with iConomy .. I switched to BOSEconomy
-
View User Profile
-
Send Message
Posted Feb 21, 2013I would like to enable economy in the config, but every time i do, then try to rank up using a rankup sign, i get this error. I use iConomy as my money plugin.
Could not pass event PlayerInteractEvent to CommandRank v2.5.1 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 org.bukkit.craftbukkit.v1_4_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178) at net.minecraft.server.v1_4_R1.PlayerInteractManager.interact(PlayerInteractManager.java:376) at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:657) at net.minecraft.server.v1_4_R1.Packet15Place.handle(SourceFile:58) 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: org.bukkit.command.CommandException: Unhandled exception executing command 'acceptrules' in plugin CommandRank v2.5.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.dispatchCommand(CraftServer.java:514) at me.black_ixx.commandRank.Listeners.SignListener.onInteract(SignListener.java:57) at sun.reflect.GeneratedMethodAccessor31.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 Caused by: java.lang.NullPointerException at me.black_ixx.commandRank.Helpers.RankUpOther.Iconomy.Check(Iconomy.java:20) at me.black_ixx.commandRank.Helpers.RankUpOther.RankUpOther.RankUp(RankUpOther.java:26) at me.black_ixx.commandRank.commands.Commander.onCommand(Commander.java:48) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 23 more
-
View User Profile
-
Send Message
Posted Feb 21, 2013Ok .. now that everything is working ...
You think you could add a repeating message to tell people to read and accept the rules if they haven't yet? maybe have the message configurable?
-
View User Profile
-
Send Message
Posted Feb 21, 2013I think I am about ready to move your plugin over to my main server :-)
-
View User Profile
-
Send Message
Posted Feb 21, 2013@shadvalentine
Ok perfect :D
-
View User Profile
-
Send Message
Posted Feb 21, 2013looks like I have everything working now
I just have to add - CommandRank.RankUp.rankupname to every group so they can go to the next group
-
View User Profile
-
Send Message
Posted Feb 21, 2013this also makes the /rankup command work
Owner:
prefix: '&4O'
permissions:
- CommandRank.RankUp.ownerop .. had to add this..
- commandrank.rankupcommand
- commandrank.isgroup.owner
- -commandrank.isgroup.*
- commandrank.rankup
- alphachest.*
-
View User Profile
-
Send Message
Posted Feb 21, 2013found a way to make it work
default:
prefix: '&aNEW'
default: true
permissions:
- CommandRank.RankUp.BuilderI ... I had to add this to make it work
- CommandRank.AcceptRules
- bukkit.command.plugins
- mcdocs.command.rules
- tos.accept
- modifyworld.chat
- -teleport.*
-
View User Profile
-
Send Message
Posted Feb 21, 2013@Blackixx
Dont know if you want to come help me test it .. but if you do .. here is my test server
play.valcraft.net:20565
-
View User Profile
-
Send Message
Posted Feb 21, 2013when I add commandrank.acceptrules and try to type /acceptrules it will tell me I have to read the rules first .. then after reading the rules and typing /acceptrules again it says I cant do that
-
View User Profile
-
Send Message
Posted Feb 21, 2013Still not working
default:
prefix: '&aNEW'
default: true
permissions:
- CommandRank.AcceptRules ... this will tell you you have to read the ruels ..
- CommandRank.RankUpCommand
- bukkit.command.plugins
- mcdocs.command.rules
- tos.accept
- modifyworld.chat
- -teleport.*
-
View User Profile
-
Send Message
Posted Feb 21, 2013@shadvalentine
Oh: CommandRank.AcceptRulesCommand is wrong... The plugin checks for CommandRank.AcceptRules and CommandRank.RankUpCommand.
-
View User Profile
-
Send Message
Posted Feb 21, 2013@Blackixx
It is still not working .. the node for rankup is not working eather
-
View User Profile
-
Send Message
Posted Feb 21, 2013@Machinimatt
Ty for trying to help however that the old node .. i needed the new node for accept the rules
-
View User Profile
-
Send Message
Posted Feb 21, 2013@shadvalentine
The permission for the accept rules command is listed as
So your permission node is wrong
-
View User Profile
-
Send Message
Posted Feb 21, 2013@shadvalentine Just give them CommandRank.AcceptRulesCommand that should work.