Suggested name: CheckRank, CautiousRank, CRank, LCRank, etc. I'm not too picky. What I want: A "cautious" ranking system. Basically, when the command is run, it will check to make sure that the user is of an appropriate rank. This will make more sense after reading the commands and configuration sections, below. Ideas for commands: /crank newbie-to-member Follows what is defined in the configuration and is labelled "newbie-to-member" (read configuration for more information). /crank -reload This would reload the plugin. It's nice, but certainly not necessary. Ideas for permissions: No permissions are needed, but the command needs to be able to be run from the console (and ops). Ideas for configuration: Code: confirm-message: '&aYou are now a(n) %rank%!' # When a user successfully is ranked, send them the above message # Please have the ability to use ChatColors in the message ranks: newbie-to-member: #This is the "name" of the change, used as an argument in /crank from: newbie to: member commands: - money give %player% 10 # This command is ran from the Console from-noob-to-builder: from: newbie to: builder commands: - give %player% 1 64 - say %player% is now a Builder! Notice how I had "Newbie" able to rank up to either a "Member" or a "Builder", depending on which "label" (command argument) is used. Other Information: Please have it support either PermissionsEx or Vault. When I'd like it by: I'm not going to rush you, although I'd like it sooner than later.
Done! CautiousRank v1.0 Download: https://github.com/downloads/chaseoes/CautiousRank/CautiousRank.jar Vault is required. Enjoy.
Hey @chaseoes , Console: crank from-noob-to-builder np98765 [INFO] [CautiousRank] Could not find the rank given in the configuration file. [INFO] Error: Player not found. [INFO] [Server] np98765 is now a Builder! [INFO] [CautiousRank] Successfully ranked the player. [INFO] [CautiousRank] Could not find the rank given in the configuration file. Using the default configuration: Code: from-noob-to-builder: from: newbie to: builder commands: - give %player% 1 64 - say %player% is now a Builder! I get ranked to Builder, and the message that I'm a Builder. But the stone doesn't come, or the money (in the newbie-to-member). I'm using Vault, too.
Wow, I honestly didn't think that people would actually like this plugin. I expected to be shouted at: "THIS IS USELESS!" "YOU'RE STUPID!" "WHY WOULD ANYONE MAKE THIS!!!". What a nice surprise. :3
Not really sure, it would be related to those plugins. Since it did the "[Server] np98765 is now a Builder!" as a result of the say command, I'm pretty sure it's doing the commands right. Edit: The "cound not find the rank given.." message is harmless, I'll fix it soon. In my tests the commands worked though, it gave me the 64 stone and ranked me up (using the default configuration of from-noob-to-builder).
Yeah, that's what odd. I can run /give %player% 1 64 normally, and it works. But for some reason, it says "Error: Player not found" when I'm online (The plugin requires me to be online to work). So I'm not sure what's wrong... I'm using Essentials and iConomy for money/items.
When testing it on myself I got the items fine (using essentials).. does it say player not found but continues with the command?
Yeah, it says "Error: Player not found". I'm testing it on my test server right now to see.. I'm using the default config; did you change anything in yours?
crank newbie-to-member np98765 [INFO] [Money] Account np98765 does not exist. [INFO] [CautiousRank] Successfully ranked the player. Same configuration, and my username is np98765, no caps. It's weird, because I can then do: money give np98765 1 [INFO] [Money] np98765's account had 1.00 LavaCoin credited. And it works perfectly.
Ah, well the "[Money] Account np98765 does not exist." isn't from my plugin, so I'm not really sure. I actually might know why it's doing that though, so please re-download this version and try it (I updated it).
Yeah, I was curious. It's from iConomy. When I manually type the command, it works 100% fine. When I use it from the commands section of CR, it doesn't work for some reason.. Ok. Tried v1.1... Same thing. -_- Both Essentials and iConomy can't recognize my name. Is there something added in front of the name when executing commands or something?
Nope. Have the say command run just your name so you can see exactly how it's outputted. If you're using the 2nd v1.1 version it should work.
Oh, I have a question -- When I run say, it says [Server] np98765 is now a Builder! (The grey is white) Did you add some sort of suffix to the name? :O Because I can't even do that normally...