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 ;)
You should add a time limit to the plugin. So they don't stay around forever.
Hey space, do you think it is possible to add a "renting" option for admins to set. For example, something like jail servers have for cells, like say how much the rent is and how long the rental is for.
This suggestion maybe going a bit off the point of this plugin but I'll still suggest it.
It would be nice if you could add a feature where you can set a/some command(s) to a button that would be run through the console. An economy amount would also be set to that button which would be taken from the player when they use the button. With this it would also be good if you could control how many times a player is allowed to use each specific button.
This would make it possible to do things like sell permissions, and more, to players.
Hopefully you understand and like my suggestion, and if you get the time you could put it into this plugin, or even make a new plugin for it. Thanks! :)
@SpaceEmotion
I wrote a similar script before. What I did is stored an "expire" time along with the other plot data, like who owns it and the coordinates, then run a simple purge check every hour and if the current times exceeds the expire time, teleport players from that lot and remove their access. (I'm pretty sure bukkit has API events for time ticks)
I hope this helps.. just wanted to share the little experience I have.
@Nikecow
Adding players as owners should be no problem (only a different command in the code), the renting is a bit tricky though. from what i understood now you basically want players to be removed as member/owner after a specified time when they bought the access? Ill have a look into timers, and try what i can do ;)
@SpaceEmotion
Hey, can you make this so that people can rent, for like a duration of time. I have a question though, when a player hits the button he gets add as owner or as member of the region ? This should be configurable if the case.
Thanks for the cool addon!
@IBlacky360I
Seems like you wanted to access a function with the name "2" that, of course, does not exist. please check your command again or upload to the newest version (when it got approved), i think there also was a little bug in v1.1 with that type of thing that got fixed.
When i type in my command and press enter this messages come: "[PayForAcess] Error: Argument lenght does not match with function 2" pls help! [this Plugin is Great ;)]
@aa2202aa2202
That means that you're not looking at a stone-button or any specified blocks that is listed in the config file. When you are underwater, the water may be in your sight, so remove it first or make yourself a little "aircapsule".
Error Could not create region cause no correct trigger material found!
What to do
@SpaceEmotion
Thanks, ive been wanting something like this for quite a while :D
@charleskelly
I am currently rewriting how the managing of the buttons work so i think adding new features wont be a problem. I'll see what I can do ;)
@Adrenalineq
thank you for the support :)
great plugin but can u make it so they pay once then when they enter the region and leave it they have to pay again. also can u make it so after they have payed and enterd the region they only have a certain ammount of time then when the time is up they get tped to a defined location
:O nice :P