WorldGuard Land Claim
WorldGuard Land Claim
Purpose
Allows administrators to charge users money for claiming a WorldGuard region and setting specific flags in their regions. This task was previously accomplished with plugins that charge for a specific command typed, like "/region claim *". The issue with this is that it charges the user even when a region is not successfully created due to errors with region overlap or names already being taken. This plugin solves that issue and adds the ability to create different types of regions and charge for setting flags in a region.
Example Usage
- Player1: /region claim myregion
- Player1 is charged $1000 if and only if region claiming succeeds (does not overlap, region name taken, etc).
- Player1: /region flag myregion pvp deny
- Player1 is charged $500 if his region does not already have the pvp flag set.
Installation & Config
- You need WorldGuard and Vault plugins first.
- Download WGLandClaim.jar
- Place in your server's plugins folder
- Run your server to generate the config
- Edit the config to your liking, see config at: http://dev.bukkit.org/bukkit-plugins/wglandclaim/pages/config/
- Reload the plugin or restart the server
Features
- Charge users money for typing /region claim <name>
- Does not charge if the region claiming fails
- Charge users money for setting flags on their region
- Only charges when set, does not charge toggling between allow and deny or other flag values afterwards
- Optional, toggleable "plot" creation with /region claimplot <name>, allowing for small region creation that is limited to regions within a region that you already own.
- Specify amounts of money to charge for regions, plots, and flags in config
- Supports claiming with UUID and player name
Permissions
No permissions are set by default. You will need to set some WorldGuard and WorldEdit permissions to start, see the next section.
- wglandclaim.* : User can claim plots if enabled, exempt from all limits and costs for regions, plots, flags.
- wglandclaim.claimplot: Allows user to claim a plot if enabled.
- wglandclaim.bypass.*: User exempt from all region, plot, flag costs and limits
- wglandclaim.bypass.claim: No charge or any limits on claiming a region.
- wglandclaim.bypass.claimplot: No charge or limits for creating plots.
- wglandclaim.bypass.flags: No charge for setting flags on a region.
Necessary WorldGuard/WorldEdit Permissions
You need to add some other permissions in order for this plugin to function to your desire.
Required
- worldedit.wand
- worldedit.selection.pos
- worldguard.region.claim
- worldguard.region.flag.regions.own.*
- worldguard.region.addowner.own.*
Optional
- worldedit.selection.expand : This is used for auto-expanding users region, see the config.
- worldguard.region.flag.flags.<flagname>.* : Allows a user to flag a specific flag on or off on their region. Replace <flag> with desired flag.
How to use
Select 2 points with the wooden axe using left and right click.
Credit to ALLISKATA for help with ideas and brainstorming.
@FortyEffs
Sorry, I think the issue is just a little lazy coding on my part. In the config, change the price of the pvp flag from 10 to 10.0 and it should work. In the meantime I'll make sure that flags can be handled with integers as prices and update it for 1.8 & the latest worldguard build. Source is on github if you'd like to contribute/modify anything else. Thanks for bringing up the issue!
I'm on Spigot 1.8, WG 6.0 Beta 4. The plugin wasn't working at all until I disabled UUIDs in the config. Then it worked fine until I changed claim costs in the config and restarted the server. Here is the error I'm getting and Here is my config
This is the only plugin I can find that has come close to working. I have a programming degree, the source files and my IDE set up but no experience making MC plugins. If you know what I could do to get this plugin updated to work with CB 1.8, just point me in the right direction and I'll do my best to get it working.
Ok new problem, I updated to spigot 1.8 and wglandclaim 1.2 runs, only issue I have is claimplot is giving an error. I am running Worldguard 6.0 b1473
I updated to WGLandClaim 1.2 and still couldn't seem to figure out how to make the claimplot command to work. Yes I have given myself wglandclaim.claimplot permission. plots enabled in the config now, but still will not let me make a claimplot. While working on another plugin I had to update worldguard to 6.0 and now claimplot works. not sure how I missed WGLandClaim 1.2 needs WorldGuard 6.0 in the documentation, but I figured it out.
Yes I would like to be able to set price by volume for a claim.
@Ironic8b49
Looks like it's no longer compatible with newer versions of worldguard, yeah. I'm submitting an update. Just to check though, did you give yourself the wglandclaim.claimplot permission? Are plots enabled in the config?
Per your overall size limit request, do you mean volume?
I can create a region fine, but not able to create a plot. Is it cause the commands in Worldguard 5.9 have changed? How I understand how WG works is you place regions within each other and you set parents. Also I would like a way to set limit to over all size since I'm not allowing vertical to top and bottom of map. Also set limit to overall size will prevent players from buying up all the land.
Can you make an option to charge them by block after an initial price?
i have problem with config file: "region_auto_expand_ver" set to "true" doesn't work.
@Mrphpfan
+1 for this feature
Fantastic plug-in. Works exactly as expected. Thanks!
Do you know of a way to automatically set flags when a user creates a region? I'd like to have the greeting and farewell flags automatically set to "Now entering/leaving %regionname%" when the region is declared.
Edit: Would is be possible to add something like the following to the config file to allow this?
defaultregionflags: greeting: farewell: pvp: mob-damage: [etc, etc, complete list of WG region flags here and the admin could simply configure the required flags and set them to allow, deny, none, etc]
Would be really cool if you could add the cost per block so instead of a straight price it would adapt to the region size.
@GameChampion360
Does the plugin just not function correctly, or does it not load? Do you have WorldEdit / WorldGuard and does the console throw any errors when you start it?
I am not able to get the plugin working on my server, but my other plugins work fine:/ I am using Yellow/ Beta Testing Bukkit
@SwiftSwamp
If you look in the config you'll notice there is a field called "max_width_region" which by default is set to 150 (blocks). This means that users can at max claim a 150x150 area. There is currently no way to charge them more for the next claim or charge them based upon the amount of land that they are claiming, but that is a good idea and I can add that as a configurable option and add it to the next update. Let me know if that's what you meant :). Thanks!
Is there a limit on how big of a radius they can claim or the ability to make it where it has to be inbetween such and such radius...and then the ability to charge them more for the next claim and so on.
@TheLastDogMiner
Hi, The project is nearly finished, everything works, I just have to fix some of the permissions before I upload it. Should be out in a few days once it gets approved.
there's no download...