Example: Setting up a town
Example: Setting up a town
What we want:
- A town called "MyTown"
- Only one region per user should be allowed
- A marketplace (called "Marketplace")
- Users should only be able to rent the plots
- Users should be able to rent up to one plot, even if they already own a region in the city
- A restricted area for premium-users only (called "PremiumArea")
The town itself
First possibility to add a region
- Create the town using WorldGuard
- Select the area using the WorldEdit wand
- Type in
/rg define MyTown
(WorldGuard command)
- Use //region addparent MyTown to add it to RegionForSale
- Type //region set max-regions 1 to limit the amount of regions a player can maximal have in this town.
The marketplace
Second possibility to add a region
- Select the area using WorldEdit's wand
- Type //region define parent Marketplace to create the region and directly add it to RegionForSale
- Type //region set buyable false - We only want marketplaces to be rentable.
- Type
//rg set max-regions 1
, in order that users can always rent one plot, no matter if they already owe a plot somewhere in MyTown
The premium-area
- Select the area
- Type //region define parent PremiumArea
- Require permissions to buy/rent in this area
- Type //region set parmission-required-buy true
- Type //region set parmission-required-rent true
- Give premiums the permissions to buy & rent regions in there:
- - - -regionforsale.buy.PremiumArea
- - - -regionforsale.rent.PremiumArea