RankMarket
RankMarket
RankMarket is designed to let your users choose their donation benefits or earn money in your economy and rank up.
Each "rank" has a permission node associated with it's availability for purchase, so you can make even design tiered rank up systems, where each rank unlocks the next for purchase!
How to use
Typing '/rank' in-game will open up a list of available ranks for purchase. Type '/rank name' to purchase the rank (if you have enough funds available).
Configuration
The RankMarket config file (plugins/RankMarket/config.yml) is the only place you need to edit to setup your ranks.
ranks: miner: groups: - mine cost: 200 builder: groups: - build cost: 500
For more information on configuration check out the Config page.
Permissions
RankMarket uses the "SuperPerms" system to actually check for permissions, but lets you use any Vault supported Permission plugin to make the purchase.
To give a group permission to one rankup simply give them: rankmarket.rankname. (Ex. rankmarket.builder) The 'rankmarket.*' node gives access to all rankmarket permissions.
Economy
RankMarket supports any Vault supported Economy plugin, what you use is entirely up to you!
It takes the money from the players 'balance in hand' or 'wallet' rather than banks.
@codename_B
Update it please my server is really near done, and this plugin is awsome! Update! ;) Thanks.
@MachetePanda
Not been worked on recently, open a ticket? :)
Was this plugin dropped? I posted on Jan 29 about an error.
Wtf on my server it just takes the money, but it dosent rank any one up... Im using PermissionsBukkit and Vault, but no luck...
Could you make the text say: "You don't have the money to purchase that" instead of "ability" to purchase when you can't afford it?
That would be really neato. :P
Any possibility of adding permissions to only be able to /rank to special groups? I'm thinking perhaps there's a rank that ahs the permissions rankmarket.miner and rankmarket.builder, then once rankmarket.miner is chosen, they can choose between rankmarket.miner2 or lets say rankmarket.minernether
This would open up so many possibilities. Thank you. You have made an amazing plugin sir.
@Redstoner_Pro
So have it add an extra group rather than remove old ones?
That's also a possibility. Good idea.
Hello Codename,
I updated to 1.1 and am still having problems. When I run the command I get this error.
-----------------------------------------------------------------------------------------------
09:50:43 [INFO] MachetePanda [/108.14.108.41:58149] logged in with entity id 338 at ([argos] 93.28125, 72.0, -165.4375)
09:50:44 [INFO] [Heroes] Loaded hero: MachetePanda with EID: 338
09:50:44 [WARNING] [BukkitInventoryTools] Missing parameter:SBP.InventoriesShare.argos
09:51:07 [SEVERE] null
org.bukkit.command.CommandException Unhandled exception executing command 'rank' in plugin RankMarket v1.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:386)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:777)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:737)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:725)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:178)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:587)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
Caused by: java.lang.NullPointerException
at net.milkbowl.vault.permission.plugins.Permission_PermissionsBukkit.getPlayerGroups(Permission_PermissionsBukkit.java:185)
at net.milkbowl.vault.permission.Permission.getPlayerGroups(Permission.java:526)
at com.bpermissions.rank.RankMarket.onCommand(RankMarket.java:81)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
... 14 more
>
--------------------------------------------------------------------
I thought it was because I was still in the permissions yml, so I pulled my name out and made sure I was de-oped. but still get it.
Please help. Thanks.
EDIT: oh yeah, and this is the config.yml I was testing with:
ranks:
owner:
groups:
- owner
cost: 500
:)
I do use inheritance. I was asking if there could be an option to set to ignore removing certain groups. My main ranks inherit the ones below them and the same with the magic levels. though i cant have a player spend money on one skillrank just to have it lost when ranking up main class rank. I guess my citizens promotion system will have to work for now. Thanks though.
Could you make a "rank" based (so for every rank) addgroup system ? Because I would love to use it modular, and giving permissions per buy =) Also please remove "/r" as it interferes with "/r" (reply) form different chat message plugins. :(
Does this support Groupmanager?
@MCCharlieCraft
Supports every plugin that Vault supports.
If this isn't working with GroupManager it's because Vaults methods aren't being supported.
@Redstoner_Pro
The reason I did setgroup rather than addgroup is that like... everyone seems to use inheritance :/
sigh
I guess I could make a switch in the config to make it add or set?
Does this only support bPermissions? Cant seem to get it working with GroupManager.
Doesn't really matter.. The only reason I use GroupManager is for OKB3 Forum Bridge.. But if this can be my alternative to that plugin.. I have no reason not to switch.
I have 2 main class groups- Main ranks which give most of the permission nodes, and MagicRanks which give permissions for magic spells. I also have donator ranks as well which add to the players permissions. So a player is able to rank up the main classes seperatly from the magic or donator ranks.
So any way to have this addgroup not setgroup
ie: player rank before promo : Builder, Magic2, Donator5
player rank after promo : Constructor, Magic2, Donator 5
in current state it does this : after promo : Constructor
@codename_B
I love where its going! I think Im having a plugin issue though with one of my other plugins. It works alone but not with all the others. I'll try it again when the official bukkit release comes out, if I'm still having trouble then, I'll let you know.
This looks awesome. I cant wait for the rent timer. :)
@Redstoner_Pro
Can you expand on that a bit more clearly?
any way to have this add the groups to it instead of removing all the pre existing groups?.. we have several tracks that players can promote through. edit: even better, could you make it configurable so that the config could have a setting for which groups should be removed upon promotion?
@Sonic_Sam7
That option is already there - (you give each rank the permission nodes to unlock the next)
Also I won't support any plugin directly (other than bPermissions) so you should request Vault to fix their PermissionsEX compatability.
Hey i love what your doing and i have been looking for something exactly like this no my server, thanks every so much. Two suggestions though please. 1. can you may it directly support PermissionsEX because it isnt working with permissions on my server even with vault. 2. can you make it have the option to pay to go through ranks for example say if the options where miner $100 builder $200 then worker $300 they had to get miner and builder before they could buy worker. Thanks ever so much!