Sueta

World Guard Region Claim

2.0

Charge players when claiming regions!

·Plugin


Charge players in-game money for creating regions. You can either charge them a flat rate, so any size region will cost x dollars, or charge them x dollars per block in their selection.

Commands:

  • /wgrc - Main command.
  • /wgrc reload - Reload the WorldGuardRegionClaim config.yml file.
    • permission: wgrc.reload
  • /regionclaim <name> - Claim a region with a given name.
    • aliases: /claim, /rgclaim, /rgc
    • permission: wgrc.claim
    • A player can only claim up to the set amount in config.yml
      • A player can claim more than the number in config.yml if a permission 'wgrc.regionclaim.<number>' is set. For example if the permission 'wgrc.regionclaim.7' is set, then the player can claim up to 7 regions.
  • /claimprice - View the price of a selected area.
    • aliases: /pc, /cprice
    • permission: wgrc.claimprice

Needed World Edit permissions in order to select land to claim:

  • worldedit.wand
  • worldedit.selection.pos

Other permissions such as adding owners to regions can be found on World Guard's Wiki.

How to claim land:

Spoiler

Step 1: Get the wand.

Step 2: Select two points to form a cuboid. Left click a block with the wand to set the 1st position, then right click a block to set the 2nd position.

Step 3: Type the command '/claim <name>'

If the region does not claim, it will either be one of the following reasons:
A. The region overlaps with another players region.

B. You do not have enough money to claim the region.

C. A region with the name you choose already exists.

D. You did not type a name for the region.

E. You do not have permission to.

Using the command '/claimprice':

/claimprice

Step 1: Type the command '//wand', then selection position 1 by left clicking a block, then right click another block for the second position.
Step 2: Type the command '/claimprice' and the plugin will tell you how much it will cost to claim your selection.


Config:

config.yml
# Set to false if you do not want the plugin checking for updates.
update-check: true
# If flat-rate is false, it will charge the player cost*volume.
# If flat-rate is true, it will charge the player the same cost no matter what the volume is.
# Example:
# If flat-rate is false, and cost is 0.50, and the volume of the player's selection is 10000 blocks, then
# the region will cost 5000 to claim.
flat-rate: false
cost: 0.50
# A player will not be allowed to claim more blocks then max-volume, at one time.
max-volume: 100000
# A player will not be allowed to claim more regions than max-regions.
max-regions: 5


Dependencies:

  • WorldGuard 7.0.8
  • WorldEdit 7.2.11
  • Vault
  • Economy plugin that is supported by Vault

Similar projects

Plugin →