AreaShop
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Usage and configuration: ►Download (releases) ►Commands and Permissions
____ ►Basic regions setup_ ►Advanced regions setup_ ►Configuration files
Advanced features: ►Save/restore region blocks_ ►Change the language_ ►Limitgroups
Troubleshooting: ►Frequently Asked Questions_ ►Common errors
Support: ►Ask question / request feature / report bug_ ►Planned features_ ►Open bugs
Development: ►Changelog_ ►Compiling_ ►Modules, packages and classes overview
Connections: ►GitHub_ ►Spigot Resources_
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
This plugin is for giving players the option to rent or buy a region. It could be used to let them rent a jail in your Prison server or maybe a shop in the market of the Survival server. The player interacts with signs, making it easy to use. It also has a lot of commands to check the status of all regions, manage the renting and buying of a region and also features for admins. Also the plugin is capable of saving the region and restoring it later, this is very flexible and can be set general and per region, check the config for more information.
All features in a list:
- Rent and sell regions to players + Players can resell their bought regions to other players
- Signs for easy interacting and current status
- Change the language of the plugin or use of of the already provided language files (check here for supported languages, these are already packed with the plugin, just change the language setting in the config).
- Automatically let the plugin restore the region with schematics
- Change which commands players can use with permissions
- Customize the plugin by changing the config
- Automatically place the region name on the sign if it is placed inside a region
- Teleport to rent/buy regions and optionally set the teleport location (teleporting is safe and within the region)
- Adding friends to regions (which also can teleport then)
- Automatic unrent/sell for regions of which the owner is offline for a certain time
- Warning to players when their rent is about to run out (at login and while they are online)
- Group system to set options for a couple of regions instead of all of them.
- All heavy tasks are spread over time (each tick a part is executed until done), so the plugin should not cause any lag.
- Rent/buy limits can be different per permission node (player group), world or group of regions (possible situation: Normal players can buy 1 market region in survival + 1 build region in survival and 2 plots in creative, while VIPs have double limits for all those), check this example.
- Supports name changes because of saving player info by UUID, for more details check the FAQ entry: What happens when a player changes his name?
You need to have WorldEdit, WorldGuard and Vault installed on your server, WorldGuard is used for creating and managing regions, WorldEdit for the saving and restoring the blocks in regions and Vault is used to let players pay for the regions.
Preview
For a preview join 'mc.go-craft.com' and go to the Survival server, the shops around the spawn use AreaShop.
Tutorial & Feature overview (AreaShop V2.0.1)
Made by Koz4Christ
Prison cell setup tutorial (AreaShop V2.1.0)
Made by PerkulatorTime
Old video for AreaShop v1.0: Tutorial by VariationVault
Requirements and installing
Requirements:
- Server software: Bukkit 1.7.9 or higher, Spigot 1.7.9+ or higher
- Java 7 or higher (latest recommended)
- WorldGuard 5.9 or higher (6.0+ recommended)
- WorldEdit 5.6.3 or higher (6.0+ recommended)
- Vault 1.4.1 or higher
- An economy plugin supported by Vault (check the Vault page for a list of supported plugins)
When you have installed AreaShop, have correct server software and all required plugins installed (and the correct versions of them) you can startup your server. After that you can edit the config.yml and default.yml file of AreaShop to your liking and after that you use '/as reload' to reload the configs. Then you can start by setting up regions and adding them to AreaShop.
Notification for new versions
To enable email notifications for new versions of this plugin follow these steps:
- Login to dev.bukkit.org
- Go to the 'Subscriptions' tab Link
- Tick the checkbox for 'File updates'
- Confirm your choice
Metrics
This plugin utilizes Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
A unique identifier, the server's version of Java, whether the server is in offline or online mode, the plugin's version, the server's version, the OS version/name and architecture, the core count for the CPU, the number of players online, the Metrics version.
This information will give me an indication about how much the plugin is used and encourages me to continue development. Opting out of this service can be done by setting 'sendStats' in the config of this plugin to 'false', if you want to disable Metrics for any plugin go to plugins/Plugin Metrics/config.yml and change 'opt-out' to 'true'. Check graphs of the statistics at this page: mcstats.org/plugin/AreaShop
Do you want to translate AreaShop?
Help translating the plugin into different languages and to keep the translations up to date. Go to this page for more information. Translating goes through the Transifex website and is very easy, sending files back and forth is not needed, you can translate lines online and whenever you want. Every line you translate will be saved, no need to do it all at once (this also allows for easy collaboration).

-
View User Profile
-
Send Message
Posted Dec 26, 2015@TheZerok666
You seem to be good at finding bugs, got it fixed :) The latest build on Jenkins should work correctly. Recently I changed a lot of messages to support variables (instead of replacing only the currently-required values), and I did not correctly change the selling messages.
If you find any more bugs let me know.
-
View User Profile
-
Send Message
Posted Dec 25, 2015@nlthijs48
The name thing works perfectly now! Thanks for such a fast response.
But... Now when I'm selling a region it says "You have sold %region%". Do I have to regenerate the config or something?
P.S.: The "you successfully bought <region name>" message, for example, works perfectly.
-
View User Profile
-
Send Message
Posted Dec 25, 2015@TheZerok666
Tested it, and it indeed was broken, I forgot to strip the 'n:' part for the name option (but did do it for the group setting somehow, and for the name setting I even already checked the length). I have fixed it for the upcoming version, you could try the dev build of AreaShop if you need this option right now, keep in mind though that I cannot fully guarantee the stability of dev builds.
Thanks for reporting this problem.
-
View User Profile
-
Send Message
Posted Dec 25, 2015Seems that the "n:<name>" thing is broken. Adds "n:nickname" instead of just the nickname into worldguard's .yml file. Does work with groups though.
-
View User Profile
-
Send Message
Posted Dec 22, 2015@nickthemcboss
Aha good that you got it fixed ;) If you ever need more help then just post a message again.
-
View User Profile
-
Send Message
Posted Dec 20, 2015@nlthijs48
Wow, I'm really stupid... I din't realize a price could be defined with resell, I thought the price had to stay the same. Sorry for wasting your time, and thanks for trying to help! Like I said, this is a great plugin, and you can expect that I will be using it on my server for a long time!
Thanks again,
-Nick
-
View User Profile
-
Send Message
Posted Dec 15, 2015@nickthemcboss
There are permissions to let the landlord set the price, but if that person is also the owner of the region then it is just a bit weird, since then money that is paid for the rent is paid to the same person again, making the region practically a buy region. It is also possible to automatically set the renter/buyer as landlord by using the 'eventCommandProfiles' section in the config.
My question to you is: Why do you want the player to be able to change the price himself? Because to me that seems like a very weird situation. For example for reselling the region to other players they don't need this, because when reselling they can already set the price. If I know what you want to achieve with this setup they I might have a suggestion that fits your goal better.
-
View User Profile
-
Send Message
Posted Dec 13, 2015@nlthijs48 Also, I have one other question... Can I have it so that the owner of the region can use the command /as setprice, but not someone who doesn't own that region. Right now I have it where the landlord can change price, and since all players will be their own landlords, I would like the owner to change the price. These are the methods I see of doing this... Are either of these possible?:
1. Is it possible to let owners of regions use that command only?
or
2. Is it possible to make a player the landlord when they purchase the region?
Thanks,
-Nick
-
View User Profile
-
Send Message
Posted Dec 13, 2015@nickthemcboss
Thanks! Proper DynMap integration is planned to be added, but there is already a plugin to display WorldGuard region on DynMap, so that is already getting close to it. This ticket tracks the feature request for DynMap support.
-
View User Profile
-
Send Message
Posted Dec 13, 2015This is an amazing plugin... Far better than some other ones out there... The only thing that I would suggest would be DynMap integration, like SRM had, so that players can see which regions are for sale on the DynMap, but other than that, this is an awesome plugin!
-
View User Profile
-
Send Message
Posted Dec 13, 2015@frizzbee30
There are no plans to add support for SQL, a bit of discussion about it can be found here. Basically it does not give performance improvement, would take a lot of time to implement (basically a full rewrite) and does not have much pros in general.
Backing up regions (and all server files in general) is always smart to do, so I don't really see why SQL would make that better. What I'm using for my own server is a combination of rsync and rsnapshot. rsync is a command that can sync a complete directory structure to another folder/disk/server, and at later runs it will only sync the changes instead of all files. Then rsnapshot is to keep snapshots of certain points in time of the complete file structure of the server. Currently I'm keeping 7 daily snapshots, and 4 weekly ones. Normally this would take a lot of disk space, but because it uses hardlinks only the changes between snapshots need extra space. Currently the backup disk only uses 1.5 times the size of the actual server files.
-
View User Profile
-
Send Message
Posted Dec 12, 2015Hi, any plans to move the region storage to MySQL?, or to make a configurable periodic backup of the rental regions. obviously we had an issue as per ticket with losing around 300+ cell rentals, which all have to be recreated, and the option to restore the database (and schematics) would save a couple of weeks work at least :)
(we utilise MySQL storage externally, which has been fantastic for disaster recovery in the past!)
-
View User Profile
-
Send Message
Posted Dec 7, 2015@nlthijs48
hi, the debug shows the checker is running, but no clears. I've added the file link to a new ticket. Thanks :)
-
View User Profile
-
Send Message
Posted Dec 6, 2015@frizzbee30
The checker task can also be disabled by setting the interval to 0 or lower, so maybe you specified the interval in an incorrect format and therefore it has been disabled.
In older versions AreaShop would remove regions from the system when their WorldGuard region or world was missing, which would cause major problems when for example Multiverse or WorldGuard does not correctly startup. That has been fixed for a while now though, now it will simply keep them but indicate in the console which regions are wrong.
-
View User Profile
-
Send Message
Posted Dec 5, 2015@nlthijs48
Thanks :) If I recall I think I did change the check interval, but some had long expired :) I'll try debug and also look at zipping the folder.
It has been a bit weird in the past like loosing shop regions (telling me none to run a command on), yet still recognising them (saying bought by/rented by etc) at the same time, but I just removed them and then put the regions back up. :)
-
View User Profile
-
Send Message
Posted Dec 5, 2015@frizzbee30
That is weird, you can try enabling 'debug' in the config file, then AreaShop should say "Debug: Checking rent expirations..." in the console every minute. Did you maybe change the 'expiration' setting that is at the bottom of the config file? That is the interval at which AreaShop checks the rental expiration's.
I don't have any other suggestion currently, you could send me the contents of the AreaShop folder and a log file so that I can check it out.
-
View User Profile
-
Send Message
Posted Dec 4, 2015odd one, our expired rented regions aren't resetting, they just say the area is rented by 'player' until (past expiry).
-
View User Profile
-
Send Message
Posted Nov 22, 2015@nlthijs48
ah ty i mean Build #8 :D dont see that jenkins here :D thank you so much!
-
View User Profile
-
Send Message
Posted Nov 22, 2015@NoHoPeLess What bug are you talking about? Dev version can be found on Jenkins, so if I already programmed it then you can download it there.
-
View User Profile
-
Send Message
Posted Nov 22, 2015@nlthijs48
When is there an version ready for this bug? :D sry but my users are very confusing with this wrong messages and cant find their home... :)