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 Jun 11, 2015Getting lots of reports that when a player does /as addfriend <player>, it works, but the added friend gets removed on server reboot, this is impossible with WG6 causing this, theres no bugs about that I guess, and when a new player joins and a friend adds him, it says he never joined the server, but relogging fixes it. Any news?
-
View User Profile
-
Send Message
Posted Jun 10, 2015@ArmyStich
You need to make sure that players have a limit of 0 for the regiongroups they should not be able to buy, check this page for an example of the limitGroups. Did you add your regions to groups inside AreaShop with the '/as groupadd' command?
If you cannot solve the problem with the information on linked page then please give me a description about how you want the limits to work, and then ill provide you some groups.
-
View User Profile
-
Send Message
Posted Jun 9, 2015Hello again thanks for responding but I have one more question I have a Jail and i want only players in each Ward to buy a cell in that Ward and when they rank up it Removes their cell is that possable and how do i set the group i did Set the A to a group gave the permission areashop.limits.<group> with group being what I named the group but they can buy cell anwhere IDK what I Did Wrong.
A: options: suffix: ' &f[&4A&f] ' rank: '400' permissions: - areashop.limits.A inheritance: - default
-
View User Profile
-
Send Message
Posted Jun 9, 2015@Sfmplayer
Ah nice, the lines from the 'flagProfiles' section indeed ensure that the players is added to the WorldGuard region correctly, so removing those is indeed a bad idea as you found out :)
If you have other questions then let me know.
-
View User Profile
-
Send Message
Posted Jun 9, 2015I found out already thx anyway
-
View User Profile
-
Send Message
Posted Jun 9, 2015@nlthijs48
I found it! nvm haha:)
1 more question.
So when somebody rents a plot, the rent system works. But the player isn't getting added to the worldguard region. (nor at owner, nor at members) How so ?
So they can not build right now on the plot that they rented
I wanted to remove the greeting flag so right now i havn't any flags at all at the config file
rented: members: '' greeting: ''
So... How do i make it so, when players rent a plot, they get added to it, and should they be added to owner, or members?
-
View User Profile
-
Send Message
Posted Jun 9, 2015@Sfmplayer
This feature is explained on the Schematics page, if you have any questions then let me know.
-
View User Profile
-
Send Message
Posted Jun 9, 2015Hi!
If a rented region expires, How does it rollback to its original state?
Kind Regards
-
View User Profile
-
Send Message
Posted Jun 9, 2015@danielfr789
I think your suggestion is already covered by the 'maxRentTime' option in the default.yml file, let me know if that is what you are looking for.
-
View User Profile
-
Send Message
Posted Jun 8, 2015Suggestion
Add a way so people can extend their shops only if there is X time left?
-
View User Profile
-
Send Message
Posted Jun 6, 2015@mathpro
Good that you got it fixed, currently '1 week' is indeed incorrect, weeks are not implemented as a time indicator. I think I will add weeks for the upcoming version, then this kind of problem will not happen again in the future.
-
View User Profile
-
Send Message
Posted Jun 6, 2015@nlthijs48
Thanks you, it was the "duration value", i've set to "1 week"... Now it's "7 d" and it's work ;) Thanks you for your reply ;)
-
View User Profile
-
Send Message
Posted Jun 5, 2015@mathpro
Somehow you managed to to get an infinite or incorrect moneyback value for one or more regions. This is breaking the code that renders the number to a formatted string (adding currency prefix+suffix). I have made a change for the upcoming version to prevent this problem.
Things you could check to possibly solve your problem now:
What also might help to solve the problem is counting how many times this error occurs. You could do this by stopping the server, then starting, then stopping (areashop refreshes regions at startup). Then open the latest.log file and for example search for "NumberFormatException" and see how many hits it has. If it is in the 1-10 range then the problem might be caused by 1 faulty region, if it is a lot more (more as the number of rental regions) then it might be a settings that is applied to all regions.
Let me know if that helps, if you cannot figure out the problem then please create a ticket and give me a link to download the complete '/plugins/AreaShop/' folder.
-
View User Profile
-
Send Message
Posted Jun 5, 2015[18:59:11] [Server thread/WARN]: [AreaShop] Task #34805 for AreaShop v2.1.5 generated an exception
java.lang.NumberFormatException Infinite or NaN
at java.math.BigDecimal.<init>(BigDecimal.java:895) ~[?:1.8.0_45]
at java.math.BigDecimal.<init>(BigDecimal.java:872) ~[?:1.8.0_45]
at nl.evolutioncoding.areashop.AreaShop.formatCurrency(AreaShop.java:442) ~[?:?]
at nl.evolutioncoding.areashop.regions.RentRegion.getFormattedMoneyBackAmount(RentRegion.java:350) ~[?:?]
at nl.evolutioncoding.areashop.regions.RentRegion.getSpecificReplacements(RentRegion.java:150) ~[?:?]
at nl.evolutioncoding.areashop.regions.GeneralRegion.getAllReplacements(GeneralRegion.java:398) ~[?:?]
at nl.evolutioncoding.areashop.regions.GeneralRegion.applyAllReplacements(GeneralRegion.java:441) ~[?:?]
at nl.evolutioncoding.areashop.regions.GeneralRegion.setRegionFlags(GeneralRegion.java:1005) ~[?:?]
at nl.evolutioncoding.areashop.regions.GeneralRegion.updateRegionFlags(GeneralRegion.java:178) ~[?:?]
at nl.evolutioncoding.areashop.regions.GeneralRegion.updateRegionFlags(GeneralRegion.java:200) ~[?:?]
at nl.evolutioncoding.areashop.managers.FileManager.run(FileManager.java:500) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-47b1dff-f233e7d]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-47b1dff-f233e7d]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:694) [spigot.jar:git-Spigot-47b1dff-f233e7d]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot.jar:git-Spigot-47b1dff-f233e7d]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [spigot.jar:git-Spigot-47b1dff-f233e7d]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [spigot.jar:git-Spigot-47b1dff-f233e7d]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
after an /as reload, my console is spamming by this error...
Sorry for my bad english, i'm french :P
-
View User Profile
-
Send Message
Posted Jun 5, 2015@ArmyStich
Check the 'inactiveTimeUntilUnrent' and 'inactiveTimeUntilSell' settings in the default.yml file, these should be exactly what you are looking for. Remember you can set all settings that are in default.yml for region groups, and individual regions, so if you need different times for certain regions then that is possible.
@novrom
Currently the money of the rent/buy does not go anywhere, however I have added a 'landlord' implementation to my development version. That should be exactly what you need, if you are familiar with compiling plugins then you could check my GitHub page, otherwise just wait a while until I release an update.
-
View User Profile
-
Send Message
Posted Jun 2, 2015Hello. And why when someone buys or takes in rent my area I do not have money?
-
View User Profile
-
Send Message
Posted Jun 2, 2015Hello I was wondering if let's say I have a tun of regions for sale then a player buys it and becomes inactive is there a way to have that region resold if that happens automatically or am I going to have to find them?
-
View User Profile
-
Send Message
Posted May 30, 2015First I want to say something to anyone that commented but did not get answered yet: Thanks for your patience. Normally I'm always trying to answer within 24 hours, but the last 2 weeks I was very busy with my study and therefore have failed to deliver that self-imposed response target. I'm still very interested in AreaShop and am tempted all the time to develop things for AreaShop. But finishing my bachelor degree is simply more important currently. The coming 5 weeks I will still be busy, but after that the holidays start, so I hope to get working on AreaShop a lot at that time.
Now lets get into answering :)
@novelleserver
By default AreaShop already adds the buyer/renter of a region to the 'members' flag of the WorldGuard region. Make sure that the 'flagProfiles' section in your config.yml file is still correct, this is the section that will make it happen. If you want AreaShop to set them as owner instead then check this FAQ item.
@rockindavies21
First check which regions you have at the spot where you have problems with build rights: '/region info'. If you have multiple regions then make sure that the region used in AreaShop has the highest priority, the easiest thing to do is to change the priority of your other regions to -1. If you still have trouble then please give me the following information:
@frizzbee30
Thanks for helping while I had no time to reply, and nice that you are using AreaShop with pleasure :) .
@ralphhogaboom
Operators can simply use '/as unrent <region>' and '/as sell <region>' for regions owned by other players. If you want to give players that do not have OP this ability then you can use the permissions provided by AreaShop, check the Commands & Permissions page for those.
@catastrov
Great that you like the plugin :)
PS: biggest post ever ;)
-
View User Profile
-
Send Message
Posted May 29, 2015first of all; have to say; Awesome plugin! stable and up to date. running it on a 1.8.4 spigot server. Works like a charm!
just have 3 requests for Thijs, mister awesome developer;
1. Could you add a confirmation on buying a region. something like; pressing the sign. and then getting a confirm question like: ''you sure you want to buy this region?'' and then you would need to press the sign again to confirm the buy request.
2. when you already bought a region. being able to press the sign to sell it. (you could add the same functionality as request 1; 'you already own this region. you sure you want to sell it?'')
3. setup the permissions to only let players use signs. prevent them from using commands.
either way. Awesome plugin! Just would love that bit more functionality.
-
View User Profile
-
Send Message
Posted May 28, 2015@frizzbee30
Yes, I have done that. and it's members:none in the wg config aswell. Also, there are no errors in the console.