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.
UPDATE PLEASE!!
Hello, when I claim a region I don't charge money. Why?
this is a v good idea,
please do an update to set for 1.10 ?
[03:40:01 ERROR]: [WGLandClaim] - Disabled due to no Vault dependency found!
i have vault on my server tho so what do i do ?
very good!!
1.8.6
WG 5.
Any update? ((
[02:18:09] [Server thread/WARN]: at com.sk89q.worldguard.bukkit.commands.region.RegionCommands.claim(RegionCommands.java:233) [02:18:09] [Server thread/WARN]: at com.gmail.mrphpfan.WGLandClaim.onCommandPreprocess(WGLandClaim.java:339) [02:18:09] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [02:18:09] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [02:18:09] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [02:18:09] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Unknown Source) [02:18:09] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) [02:18:09] [Server thread/WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [02:18:09] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [02:18:09] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [02:18:09] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerConnection.java:1107) [02:18:09] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:950) [02:18:09] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:26) [02:18:09] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:53) [02:18:09] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [02:18:09] [Server thread/WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [02:18:09] [Server thread/WARN]: at java.util.concurrent.FutureTask.run(Unknown Source) [02:18:09] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696) [02:18:09] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [02:18:09] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [02:18:09] [Server thread/WARN]: at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [02:18:09] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)
Spigot 1.8
WorldGuard 6
WGLandClaim 1.3
@Ironic8b49
Apologies for the late reply. Did you add the permission "worldguard.region.addowner.own.*" when updating to 1.3?
@Bradleyd887
I use 1.2 before 1.3 not sure if the issue is wglandclaim or all the upgrades in Bukkit 1.8 and Worldguard. I went back to 1.2 and it still didn't work. So I decided to set up limits for each group within Worldguard and set max block size and not charge for a region.
@Ironic8b49
What version did you use before and what was upgraded? I thinking of trying that older version.
everything was working fine before I updated to 1.3
Player1: /region claim myregion Player1 does not get charged $1000 Player1: /region flag myregion pvp deny Player1 is not charged $3000 and the flag is set
config file http://pastebin.com/6wZj2dR2 running WG 6.0 b1583
@dilbukon
I would like to see this as well! And more options for vertical protection, such as 5 blocks above and below or something. Really sound mod though.
@Mrphpfan For me as an admin it would be awesome to have the possibility to change the system of buying areas to a system in which the price depends on the squareblocks ;)
I'm helping someone set up a Minecraft Server, and we're trying to use this (Land Claim) to prevent people from spamming WG regions all over. However, even though we have all the config files and permissions in order (as far as we can tell), it isn't costing anything to create regions. I have the config files and permissions file here for reference. If anybody can help, or direct us somewhere that we can go to get help, it would be greatly appreciated. WorldGuard config: http://pastebin.com/pVc13ATa wglandclaim config: http://pastebin.com/m9BRNaMT permissions file: http://pastebin.com/Eb64JD8K
I'm helping someone set up a Minecraft Server, and we're trying to use this to prevent people from spamming regions all over.
However, even though we have all the config files and permissions in order (as far as we can tell), it isn't costing anything to create regions.
I have the config files and permissions file here for reference. If anybody can help, or direct me somewhere that we can go to get help, it would be greatly appreciated.
WorldGuard config: http://pastebin.com/pVc13ATa
wglandclaim config: http://pastebin.com/m9BRNaMT
permissions file: http://pastebin.com/Eb64JD8K
just updated to 1.3 and can't get the plugin to charge for a claim.
Excellent its working now. Thank you for looking into this so quickly.
@FortyEffs
Add the permission worldguard.region.addowner.own.*
Forgot to note that after the most recent update to this plugin. Thank you.
Yes here is the console log. Everything else is working now.
@FortyEffs
I've tested the current build on a spigot-1.8-R0.1-SNAPSHOT with WG 6.0 Beta 4 and everything seems to work ok with use_uuid set to true. Could you paste the error that you're getting when you try to run it with this setup?