PurchasePermissions
Purchase Permissions allows server owners to sell access to specific plugin permissions.
Requirments
- Vault: PP uses Vault to access various money systems on the server.
- MySQL : MySQL is required to hold user info, you'll need to add your MySQL info to the config file.
Configuration
- You can configure permission details within the config.yml file. More details here.
- You can create/modify/remove permissions in game.
Usage
- Available commands can be found here.
- You can sell access to WorldGuard regions for a set period of time. More details here.
- Uses permissions available here.
Todo
- Regex command detection.
- Add option to save active permissions to disk rather than MySQL.
Bugs
Please submit bugs to the ticket system.
Comments
The source code is available at GitHub if you wish to review and/or improve it. License: GPLv3
PurchasePermissions is looking for translators. Apply translations here
Bitcoin: 17X4zUX6qSSDBjHtLNTXBGAqFfwZB6eN95
Its not working, I'm guessing it's outdated or I'm doing something wrong? In /pl it's red.
this plugin is still working, but i would be glad if someone would like to update it in the future. its very useful.
I don't seem to be able to require permissions to use pp. I set requirebuypermissions: true on each of my permissions, but users seem to be able to just buy them without having the perms. Also, ingame I tried /pp modify PotionArcher requirebuypermission, but it didn't work, and /pp modify reports that thats not even an option.
Are there any plans to reintroduce this feature?
@Swords761
:)
@Cyprias
Bukkit Beta 1.2.3 R0.2 - I'll give it another try and see if it's my side which a different plugin permission node example. I'll write back in a bit.
EDIT: Well as it turns out ChestShop.shop.create also has some issues with its permission to let people create shops and SuperPerms already, so it wasn't PP for that after all. Assuming CMDbook was also in the fault and not PP, I guess I should apologize and give you another chance. I tried deathtpplus.deathtp.deathtp for 1 use for 100 dollars, and it works like a charm. I'll keep you around and hope the third party plugins can get their acts together.
@Swords761
I know some plugins like Essentials will refuse to work without another permissions plugin running, it'll completely ignore the official permissions API bukkit uses which I use, it instead creates handles for the various popular permissions plugins listed here.
CommandBook may have the same issue, I've tried instealling it but versions 2.0 and 2.2 fail to load, I've checked it's source and see it hooks the permissions API but I can't figure out where their hook looks to, I suspect they haven't updated the repo of where their hook is. What versions of Bukkit and CB are you using? I'll try to load them together.
As for chestshop, I've been unable to replicate that issue. I've installed ChestShop, PEX and then attempted to make a admin shop which failed, I then used PP to buy ChestShop.* and was able to create a admin shop.
I can understand if PP seems like a lost cause for you, but if you're willing to stick around I'll try solving your issue.
@Cyprias
First of all, the god perm node was just an example. I tried other permissions, ie. giving access to ChestShop.shop.create, and it just doesn't work with PEX or I have no idea what I'm looking for in my config because it says in game the user got the permission, but the node isn't actually added anywhere and the user can't actually do the command due to that.
Secondly, /god does work when the perm node is added properly; that ticket is probably just from a user with an incorrect config. /god works for my moderators who have commandbook.god (I use a dev build of both WorldGuard and CommandBook for 1.2.3), and autogodding also works properly for ops as set in my CommandBook config (ie. /ungod properly takes off the initial godding, and /god puts it back on just fine).
I think there's an issue with your plugin and PEX, and not with CommandBook or other plugins unrelated to permission granting.
@Swords761
I notice CB has a ticket about /god not working with PEX, could it be an issue with CB it self? http:redmine.sk89q.com/issues/1151
Deop yourself and give yourself commandbook.god in PEX. Are you able to use /god?
Alright great. Say, does this plugin work with PermissionsEx? This is still with 0.1.4 (currently away from home) but I cannot for the life of me find where PP is adding the nodes to my players in my config, and my players complain it doesn't actually permit them to the permission or command (ie. tried selling commandbook.god, someone purchased it successfully but still couldn't use /god).
@Swords761
Ah, I didn't even test it with the default empty permissions. It should be fixed in 0.1.5. I moved permissions to their own file and added defaults upon creation.
I get spammed a NPE on 1.2.3-R0.2 whenever typing /pp:
04:53:18 [SEVERE] java.lang.NullPointerException 04:53:18 [SEVERE] at com.cyprias.purchasepermissions.Config.getPermissions(Config.java:117) 04:53:18 [SEVERE] at com.cyprias.purchasepermissions.Database.commandUsed(Database.java:201) 04:53:18 [SEVERE] at com.cyprias.purchasepermissions.PlayerListener$1.run(PlayerListener.java:106) 04:53:18 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126) 04:53:18 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:520) 04:53:18 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) 04:53:18 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
Guessing the problem is you should include your sample config for permissions in the config.yml included, or else the plugin will complain.
@kahlilnc
I'll think about it.
Could you add suppose other databases :(