public class PSGroupRegion extends PSStandardRegion
PSStandardRegions.
Contains multiple PSMergedRegion representing the individual merged regions (which don't technically exist in WorldGuard).PSRegion.LastRegionTaxPaymentEntry, PSRegion.RentStage, PSRegion.TaxPayment| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteRegion(boolean deleteBlock,
org.bukkit.entity.Player cause)
Deletes the region forever.
|
List<PSMergedRegion> |
getMergedRegions()
Get the list of
PSMergedRegion objects of the regions that were merged into this region. |
List<PSMergedRegion> |
getMergedRegionsUnsafe()
Get the list of
PSMergedRegion objects of the regions that were merged into this region. |
PSMergedRegion |
getRootRegion()
Get the merged region whose ID is the same as the group region ID.
|
String |
getTaxPaymentPeriod()
Get the formatted period(s) allowed for the payment of tax.
|
String |
getTaxPeriod()
Get the formatted period(s) between tax payments for this region type.
|
double |
getTaxRate()
Get the tax rate for this region type.
|
boolean |
hasMergedRegion(String id)
Check if this region contains a specific merged region
|
boolean |
hide()
Hides the protection block, if it is not hidden.
|
void |
removeMergedRegionInfo(String id)
Removes the merged region's information from the object.
|
boolean |
unhide()
Unhides the protection block, if it is hidden.
|
void |
updateTaxPayments()
Update with the current time and calculate any tax payments that are now due.
|
addMember, addOwner, deleteRegion, forSale, getHome, getId, getLandlord, getMembers, getMergeableRegions, getName, getOwners, getParent, getPoints, getPrice, getProtectBlock, getRegionLastTaxPaymentAddedEntries, getRentLastPaid, getRentPeriod, getRentStage, getTaxAutopayer, getTaxPaymentsDue, getTenant, getType, getTypeOptions, getWGRegion, isMember, isOwner, isTaxPaymentLate, payTax, removeMember, removeOwner, removeRenting, rentOut, sell, setHome, setHome, setLandlord, setName, setParent, setPrice, setRegionLastTaxPaymentAddedEntries, setRentable, setRentLastPaid, setRentPeriod, setSellable, setTaxAutopayer, setTaxPaymentsDue, setTenant, setTypeequals, fromLocation, fromLocationGroup, fromLocationGroupUnsafe, fromLocationUnsafe, fromName, fromName, fromWGRegion, getID, getWGRegionManager, getWorld, hashCode, isHidden, toggleHidepublic double getTaxRate()
PSRegiongetTaxRate in class PSRegionpublic String getTaxPeriod()
PSRegiongetTaxPeriod in class PSStandardRegionpublic String getTaxPaymentPeriod()
PSRegiongetTaxPaymentPeriod in class PSStandardRegionpublic void updateTaxPayments()
PSRegionupdateTaxPayments in class PSStandardRegionpublic boolean hide()
PSRegionpublic boolean unhide()
PSRegionpublic boolean deleteRegion(boolean deleteBlock,
org.bukkit.entity.Player cause)
PSRegiondeleteRegion in class PSStandardRegiondeleteBlock - whether or not to also set the protection block to air (if not hidden)cause - the player that caused the region to breakpublic PSMergedRegion getRootRegion()
public boolean hasMergedRegion(String id)
id - the psID that would've been generated if the merged region was a standard regionpublic void removeMergedRegionInfo(String id)
id - the id of the merged regionpublic List<PSMergedRegion> getMergedRegions()
PSMergedRegion objects of the regions that were merged into this region.public List<PSMergedRegion> getMergedRegionsUnsafe()
PSMergedRegion objects of the regions that were merged into this region.
Note: This is unsafe as it includes PSMergedRegions that are of types not configured in the config.Copyright © 2021. All rights reserved.