nlthijs48 / areashop Goto Github PK
View Code? Open in Web Editor NEWA Bukkit/Spigot (Minecraft server) plugin that facilitates renting and buying WorldGuard regions
License: GNU General Public License v3.0
A Bukkit/Spigot (Minecraft server) plugin that facilitates renting and buying WorldGuard regions
License: GNU General Public License v3.0
If someone rents a region, they can build but not break any blocks... I've looked everywhere, I just need a quick solution.
Thanks in advance!
This would only show the regions from the specified group.
The following plugins might be interesting to look into connecting to:
To notify: Sturmchicken (Spigot, conversation, LWC)
Allow for more granular control on the limits, like allowing them to only own 1 lot per town.
Limits per region (setting in default.yml) and possibly permissions (maybe multiplier permissions?).
Suggested by St.Schmitty
Useful for server maintenance and downtime.
Implementation:
While paused do not check rentals, when unpaused add the time that it was paused to all rent times. For inactive timers: switch to saving last activity in the plugin itself and handle the same as with rentals.
Suggested by MPFx (BukkitDev comment #716)
A way to automatically remove QuickShop things at region unrent/sell. Plugin page: QuickShop (BukkitDev).
Implementation:
Depends on an integration/event API within AreaShop, would also allow for #19.
Suggested by felixchat62 (BukkitDev comment 850)
Is the only thing i read when i use /as setprice 12345 regionname on any region.
http://hastebin.com/jahigisigu.coffee
lastest commit
it fixes after setting landlord again with /as setlandlord... will report later after a server restart.
Because default.yml normally sets landlord to "" AreaShop will think there is a landlord and display as the name.
I know you declined requests for SQL adaption due the marginal improvement at best.
But I would like to propose it again, since there might be some advantages with storing in SQL than seperate region files in a folder:
Permissions "areashop.destroyrent.landlord" and "areashop.destroybuy.landlord" to give landlords the option to remove their region from AreaShop.
Display all regions on the DynMap, including all information displayed with '/as info region '.
Implementation:
Check the DynMap WorldGuard plugin and expand upon it. API available on github.com/webbukkit
This would make it safer for users to have a rental, and then they don't have to worry about it running out.
Implementation:
When a region is about to be unrented first check if automatic extending is on, if it is then just extend, if the user cannot extend anymore then actually unrent.
Add a setting in default.yml (and therefore groups and individual regions) to turn off the option to use this. Maybe also add an option to set the default setting for this option (so that it can be turned on by default).
Suggested by Kofeyy
I would like to see that actions with commands like as buy
as well as using the sign would need a confirmation like If you are sure please retype the command
or /as yes
.
The story behind is, that I am pretty sure that players will complain when they "accidently" hit the sign to unrent their shop or whatever and with schematics enabled all their stuff will be deleted.
Option to specify where the fee goes.
Suggested by Nentify (BukkitDev)
Add a way to display the owner of the region by a playerhead. This way you can visually see who is the owner of the region instead of having to read text on a sign.
Implementation:
When placing a sign with a certain tag on the first line ([ashead]
?) and optionally the region name on the second line (otherwise surrounding region will be used) it will link the location to the region and display the head of the owner. Placing a wall sign will make the head stick to a wall with the same rotation as the sign had when placed, placing a standing sign will place the head on the floor.
Suggested by Arnii
This would allow you to make modular houses, which can be expanded by buying extra regions. Because buying/renting can already trigger schematic restoring this will make it possible to build a house up part by part.
Implementation:
Add a required regions list, possibly make it easy to setup so that this setting does not need to be different per modular shop setup (use variables in some way to describe the dependencies).
Suggested by GoreaCraft (already has it implemented himself)
Make it so that you can link mutliple regions to any region sign.
Such as if you have a sign for rent on region room_1 then you could do "/as linkregion room_2"
and then click the sign to be linked.
Then if someone goes to rent the room_1 they automatically get room_2 aswell. :)
regards,
Thomas
/as find <buy|rent> [maxprice] [group]
maxprice
is an optional argument but not setting a price AreaShop uses 0.0 as maxprice
. So the list of available shops is pretty short.
v2.2.0
This would make sure that names like 'region-01'...'region-10' are used (which will be sorted correctly), instead of 'region-1'...'region-10' (which are sorted weirdly). Probably a config option to specify the desired number of decimals.
Suggested by RexRegum77
test description
test comment
The page would explain step-by-step how to efficiently setup a lot of regions, signs and settings. It will use the group system, /as stack
, /as linksigns
and things like that.
Command like:
/as purge <player|missingworld|missingregion> [player]
Hi,
can you add resetting LWC protections within AreaShop-Regions, for example when a rent timeframe is over and the region gets resettet and freed for re-rent?
Add an example to let certain ranks (A...Z) only rent/buy regions in their own hall to this page.
On most servers with PvP enabled you have to use delays before players can teleport themselves to another (and probably safe) location.
At the moment I have to disable features like as find
or as tp
as it would probably be abused to escape a confrontation.
Therefore I suggest to add a configurable time in seconds the player has to wait before any command that would end up in a teleport is executed. The timer should cancel at player movement and player damage.
This could be solved partially by using a 3rd party plugin like MyCommand as well but would be not as nice as a seamless integration.
Thanks for reading.
Best regards
Olaf
Makes it possible to depend the price on for example square or cubic meters. Also add variables for times region is extended, can still be extended, etc.
Keep in mind possibility of mortgage, paying X times before the price drop to zero. Also keep in mind other payment plans.
Implementation:
Either use a simple expression parser + the current formulas or use Javascript evaluation. Both described here.
Suggested by paedda2 (BukkitDev)
Could make it easier to manage regions as admins, not sure how useful it would be for players since for all information you would need to hover the items in the chest GUI. Interesting to explore though.
Suggested by Jperl33 (BukkitDev)
Currently only seconds, minutes, hours, days, months and years are supported, it would be good to add weeks. Optionally also include weeks in the display of time.
Extra: Output warnings to console when using incorrect time indication strings to make these errors clear to the user.
I edited some phrases at the German lang file (also see pull request from a few minutes ago) and did /as reload
and the changes have been reverted. Tried this a couple of times.
v2.2.0
How do you compile this project?
Regions currently always save/restore as a rectangle shape, would be nice if polygon regions would be supported.
Implementation:
When saving/restoring only do the blocks that are actually inside the region, or ask WorldEdit if there are methods to do it correctly via their API.
Also check polygon support for /as stack
, selection info.
Looks like a mask can be set on a paste/
When AreaShop changes a teleport to sign instead because of permissions it does not correctly teleport to a sign.
Currently a player can extend his rental region, even though he has this region outside of some of his limits (for example limits changed after rank change, e.g. prison rankup). This could be blocked by disallowing extend when the player would not be able to rent this region again if he would fully unrent it.
Probably want this on by default, because for most cases this would be the expected behaviour. For legacy reasons a config setting would need to be added (or not?).
Implementation:
Extra argument for GeneralRegion#limitsAllowRenting() to indicate it is an extend check, simply decrease the currently rented regions and total regions by one, and then check like normal.
Using hover and click events on chat messages could greatly improve the usage of commands, and the feedback of commands. For example '/as me' could show [info] and [tp] buttons for your regions to immediately do those actions. This could make using AreaShop easier for the player.
Current work in progress version can be found at github.com/NLthijs48/FancyMessageFormat, this is a collaboration with PhoenixIV from the RegionForSale plugin.
This prevents problems with the Bukkit API methods that indicate the last online time. Bukkit will not give a correct time if the player.dat file has been deleted, and therefore AreaShop will unrent/sell the region.
Hi there, Simple question I hope:
I have figured out that as a landlord of a region you collect the cash.
I want to make alot of smaller Inn's so I want to add so that when someone buys the inn they get landlords over the rented rooms inside the group/region.
As to collect from them.
I understand that I can do this manually but I'm asking this to see if there is a automatic way.
If someone buys my Inn. I'd like it to add landlord over to the rent regions inside that region (I also have it set as a group).
However I also want it so that if the player that once before bought it sells it, it would first remove him as landlord of all the regions then add the new person.
I thought I could do this with the landlords and then the groups but I cannot figure it out and havn't found any information regarding it (Am I missing anything).
The Config.yml is not populating when i load/reload as on my server. i have pulled the copy of the yml from github but i don't know if this is the correct set up for the latest version as of 8/14/15
Can you please help me set up this? Me and a Buddy have been trying to get it going. we have a spawn and want to put a mall (shops) in it. We have tried everything and still dont know what to do.We have watched the videos and still aren't sure what we are doing wrong. We have a world guard region called Spawn. And each shop is regioned off and signs are set, and i have set the priority to -1 and the shops to 0 or 1 and. But I cant open chests, can place blocks and break things, but you cant break or open chests. (as the owner of the shop, when renting the area)
Please Help. ~Thanks
Breaking a block behind a sign causes the sign to be destroyed.
We're allowing players to customise the look of their shops, and this is causing some bother.
Can there be an option to cancel the BlockPhysicsEvent instead of outputting a warning to the console?
The default [buy] tag clashes with Essentials buy signs (if enabled in the Essentials config), it might be wise to change this to something else.
This would for example allow you to place signs that display the number of regions in a group, and how many of them are rented/free. Would also need to allow for click actions to give the user more information (for example show list of free regions).
Possible variables: regionCount, regionsFree, regionsOwned.
Implementation:
Where to store the signs? Maybe always link a sign to a region group and therefore save it in the groups.yml file?
Suggested by mapstar87
It would make life easier if you add in a command like /as home to let people who own 1 region teleport automatically to their region without adding extra arguments
Might want to add an note to the region.yml file to indicate that the buyer/renter has this permission, since checking permissions for offline players is not possible via the Bukkit API (but Vault does support it, partially fixing this problem).
Suggestion by EnderdragonDotDe
This would allow you to get rid of paintings/item frames/etc of the previous owner when the region is restored to default.
Saving and restoring of schematics with WorldGuard 6 already includes entities, it does however not remove existing entities.
I'm building a server where money never dissapears or comes from nowhere.
Do you think its possible to add an account option where this money goes? like towny if you buy a region the money goes directly to the server account.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.