PayForAccess
PayForAccess - Let players pay to get access
Awesome! Woohoo over 2k downloads! New version 1.2.1 is out! Update coming soon!
Source code - Visit the feature request document to see what I am working on
What is it doing?
This plugin let users pay to get access to WorldGuard regions. For example: You have a region (like on a RPG-Server) you want the users to pay for to get the access for it. Just place a button on the wall (you can change the block type in the configuration file) and define it as a trigger. If a player clicks on the button he will buy access to the linked region if he has enough money.
What do I need?
Required plugins are WorldGuard and Vault for region and economy integration. For the regions you just have to define them with WorldGuard.
How to create a paid region
First of you need a WorldGuard region. If you don't have one, select an areas with the WorldEdit wand and define it as a region via the "/region define <region>" command. The next step is already the last one: just place a button on the wall, look at it and use the "/pfa create <name> <price> [region]" command. Name is a unique name for the button, price is the money the user has to pay, region is the name of the region the user will get access to. using the add effect command you also can now add permission and user groups!
For more information on how to edit regions and the permissions visit the Commands and Permissions page
Videos
This quick tutorial was made by me in 15 mins - so please don't bother me with comments about the visual quality ;)
Space I guess I can help you i can’t code but I can help you with ideas like adding a Time system or One time Pass system on a paper item so players can right click it and it goes away and a message appears You have Reedemed your OTP One time pass for this region from this time to that,They also get the region access from that time to the ending time
can you update this please! it doesnt work on my server with the current version
Can you do that you have to vote for acces?
What I really, really need in this plugin is a way to have /pfa forget automatically target the player executing the command if no player name is given; I'm using this with another plugin that automatically runs commands as a player.
Small thing overlooked (at least to my knowledge) has crippled my idea.
Also in other plugins I need timing event, that must be stored (e.g. after server restart). Maybe I write a Timer Libary that manage Threads automatically and save/load them.
@IDragonfire
I already have the timing stuff done, that was no problem. The problem lies in the plugin structure. The bought access file is just a plain list containing the names of the "buttons" containing the players. For the limited time access I need to rethink that thing: Each player will get a list now and stores the bought regions in themselves. I already have both formats, but the converter wont do what he should do. I will not be able to continue working on the project for one week, but i will see what i can do. You can be sure though, that the new version will be out very soon!
Access to an area for a specified time would be nice. I read that this is on your TODO list ... Maybe this libary helps:
http://forums.bukkit.org/threads/lib-timerlib-easily-create-delays-cool-downs-licensed-too.92395/
@LanceZX
Video uploaded :P
@mikethetoast
For certain groups you have to set the overwrite-group option to false first (if its true only the last added group will given to the player). the addeffect thing is the main part of this plugin. you can choose between different "effects" that the plugin will trigger when you buy the access (like commands, permissions, groups, ...)
Changing the overwrite-group flag is easy: /pfa select <name> then /pfa edit overwrite-groups false (for more flags see /fpa edit). you can set the groups by using /pfa addeffect group <group>
@LanceZX
Yup, the plugin just manages the 'buying' stuff, you still have to set the entry flag to deny. For the video, I maybe could make one very soon :)
how do u use the add effect button? i want to make it so certain groups are allowed. Great plugin btw just needs to be a little more clear on how to use it.
In reply to mikethetoast:
I don't quite get it, i did /pfa create <name> <price> region and players can still pass through, do i have to do /region flag <region> entry deny?, A video would also be nice.
@insers
Like I said in the comments below ( and you can also see it on my todo list, link above (under source code) ), I will look into this. I think its not that hard, but also not easy because I first have to check what the start time is and then check the difference to get the elapsed (and left) time.
Can this be done for an amount of time?
i buy a region for 24 hours
i need that option
@jiangpanda
I suppose it could be possible to add a check to the teleport plugin as well to prevent it from putting a teleport there or from allowing people to teleport to that location. However, I don't see this as the best fix to the problem.
@SpaceEmotion
Ah I see now. They would have to use WorldEdit to select the region and use WorldGuard commands to create the regions anyway. I was trying to find a simpler way for players to do it without having to have access to those plugins directly, and not having to learn all the flags, etc. I will see what I can do then. I believe the idea is to make it easy for players to do and, if possible, make it automatic. Thank you for publishing the source code and keeping it updated =)
@ryvix
You could just not put a telporter there.
@ryvix I think setting the region flag "entry" using worldguard should be enough
@YoFuzzy3 Ill have a look into command execution, should not be that hard, but you already can "sell" permisssions and groups using the "/pfa addeffect" command
@HitmanPL47 The idea is not bad, thanks for the tip ;)
@OCONNORx69 what do you mean with renting? the admins should pay for users to get into jail?
In reply to SpaceEmotion:
Will this stop people from teleporting to the area? Or do we have to use some plugin like http://dev.bukkit.org/server-mods/antiport/