public class PSMergedRegion extends PSRegion
PSGroupRegion).PSRegion.LastRegionTaxPaymentEntry, PSRegion.RentStage, PSRegion.TaxPayment| Modifier and Type | Method and Description |
|---|---|
void |
addMember(UUID uuid)
Add a member to the region.
|
void |
addOwner(UUID uuid)
Add an owner to the region.
|
boolean |
deleteRegion(boolean deleteBlock)
Deletes the region forever.
|
boolean |
deleteRegion(boolean deleteBlock,
org.bukkit.entity.Player cause)
Deletes the region forever.
|
boolean |
forSale() |
PSGroupRegion |
getGroupRegion()
Get the group region that contains this region.
|
org.bukkit.Location |
getHome()
Get the location of the set home the region has (for /ps tp).
|
String |
getId()
Get the WorldGuard ID of the region.
|
UUID |
getLandlord()
Get the landlord of the region.
|
ArrayList<UUID> |
getMembers() |
List<PSRegion> |
getMergeableRegions(org.bukkit.entity.Player p)
Get a list of regions that the current region can merge into, taking into account a player's permissions.
|
static PSMergedRegion |
getMergedRegion(org.bukkit.Location l)
Finds the
PSMergedRegion at a location if the block at that location is the source protection block for it. |
String |
getName()
Get the name (nickname) of the region from /ps name.
|
ArrayList<UUID> |
getOwners() |
PSRegion |
getParent()
Get the parent of this region, if there is one.
|
List<com.sk89q.worldedit.math.BlockVector2> |
getPoints() |
Double |
getPrice()
Get the price of the region
This applies to either the rent or the full purchase of a region.
|
org.bukkit.block.Block |
getProtectBlock()
This method returns the block that is supposed to contain the protection block.
|
List<PSRegion.LastRegionTaxPaymentEntry> |
getRegionLastTaxPaymentAddedEntries()
Get the list of timestamps of the last time regions and sub regions have added to the tax payments list.
|
Long |
getRentLastPaid()
Get the unix timestamp of when rent was last paid.
|
String |
getRentPeriod()
Get the rent period of the region
|
PSRegion.RentStage |
getRentStage() |
UUID |
getTaxAutopayer()
Get the player that is set to autopay the tax amount.
|
String |
getTaxPaymentPeriod()
Get the formatted period(s) allowed for the payment of tax.
|
List<PSRegion.TaxPayment> |
getTaxPaymentsDue()
Get the list of tax payments that are due.
|
String |
getTaxPeriod()
Get the formatted period(s) between tax payments for this region type.
|
UUID |
getTenant()
Get the tenant of the region.
|
String |
getType() |
PSProtectBlock |
getTypeOptions() |
com.sk89q.worldguard.protection.regions.ProtectedRegion |
getWGRegion() |
boolean |
isMember(UUID uuid)
Get whether or not a player is a member of this region.
|
boolean |
isOwner(UUID uuid)
Get whether or not a player is an owner of this region.
|
boolean |
isTaxPaymentLate()
Check if any tax payments are now late (exceeded tax payment time shown in config).
|
net.milkbowl.vault.economy.EconomyResponse |
payTax(PSPlayer p,
double amount)
Pay outstanding taxes.
|
void |
removeMember(UUID uuid)
Remove a member of the region, and deal with side-effects
|
void |
removeOwner(UUID uuid)
Remove an owner of the region, and deal with side-effects.
|
void |
removeRenting()
Stop renting process and remove tenant.
|
void |
rentOut(UUID landlord,
UUID tenant,
String rentPeriod,
double rentPrice)
Starts renting process (adds to rent queue) tenant.
|
void |
sell(UUID player)
Sells the region to a player at the price listed.
|
void |
setHome(double blockX,
double blockY,
double blockZ)
Set the home of the region (internally changes the flag).
|
void |
setHome(double blockX,
double blockY,
double blockZ,
float yaw,
float pitch)
Set the home of the region (internally changes the flag).
|
void |
setLandlord(UUID landlord)
Set the landlord of the region.
|
void |
setName(String name)
Set the name of the region (from /ps name).
|
void |
setParent(PSRegion r)
Set the parent of this region.
|
void |
setPrice(Double price)
Set the price of the region.
|
void |
setRegionLastTaxPaymentAddedEntries(List<PSRegion.LastRegionTaxPaymentEntry> entries)
Save the list of timestamps of the last time regions and sub regions have added to the tax payments list on to the base region.
|
void |
setRentable(UUID landlord,
String rentPeriod,
double rentPrice)
MUST BE CALLED when the region is looking for a tenant.
|
void |
setRentLastPaid(Long timestamp)
Set the unix timestamp of when rent was last paid.
|
void |
setRentPeriod(String s)
Set the rent period of the region
|
void |
setSellable(boolean forSale,
UUID landlord,
double price)
MUST BE CALLED when setting up the region to be sold or cancelling sale
|
void |
setTaxAutopayer(UUID uuid)
Set a player to auto-pay taxes for this region.
|
void |
setTaxPaymentsDue(List<PSRegion.TaxPayment> taxPayments)
Save the list of tax payments due onto the region.
|
void |
setTenant(UUID tenant)
Set the tenant of the region
|
void |
setType(PSProtectBlock type)
Change the type of the protection region.
|
void |
updateTaxPayments()
Update with the current time and calculate any tax payments that are now due.
|
equals, fromLocation, fromLocationGroup, fromLocationGroupUnsafe, fromLocationUnsafe, fromName, fromName, fromWGRegion, getID, getTaxRate, getWGRegionManager, getWorld, hashCode, hide, isHidden, toggleHide, unhidepublic static PSMergedRegion getMergedRegion(org.bukkit.Location l)
PSMergedRegion at a location if the block at that location is the source protection block for it.l - location to look atPSMergedRegion of the source block location, or null if not applicablepublic PSGroupRegion getGroupRegion()
public String getId()
PSRegionpublic String getName()
PSRegionpublic void setName(String name)
PSRegionpublic void setParent(PSRegion r) throws com.sk89q.worldguard.protection.regions.ProtectedRegion.CircularInheritanceException
PSRegionpublic PSRegion getParent()
PSRegionpublic org.bukkit.Location getHome()
PSRegionpublic void setHome(double blockX,
double blockY,
double blockZ)
PSRegionpublic void setHome(double blockX,
double blockY,
double blockZ,
float yaw,
float pitch)
PSRegionpublic boolean forSale()
public void setSellable(boolean forSale,
UUID landlord,
double price)
PSRegionsetSellable in class PSRegionforSale - whether or not the region is for salelandlord - the owner of the regionprice - the price to sell forpublic void sell(UUID player)
PSRegionpublic PSRegion.RentStage getRentStage()
getRentStage in class PSRegionpublic UUID getLandlord()
PSRegiongetLandlord in class PSRegionpublic void setLandlord(UUID landlord)
PSRegionsetLandlord in class PSRegionlandlord - uuid of landlord, or null to removepublic UUID getTenant()
PSRegionpublic void setTenant(UUID tenant)
PSRegionpublic String getRentPeriod()
PSRegiongetRentPeriod in class PSRegionpublic void setRentPeriod(String s)
PSRegionsetRentPeriod in class PSRegions - the duration between rent payments (d h m s), or null to removepublic Double getPrice()
PSRegionpublic void setPrice(Double price)
PSRegionpublic void setRentLastPaid(Long timestamp)
PSRegionsetRentLastPaid in class PSRegiontimestamp - the unix timestamp of when rent was last paid, or nullpublic Long getRentLastPaid()
PSRegiongetRentLastPaid in class PSRegionpublic void setRentable(UUID landlord, String rentPeriod, double rentPrice)
PSRegionsetRentable in class PSRegionlandlord - the landlord of the regionrentPeriod - the rent period (d h m s) of the regionrentPrice - the price to charge during each rent paymentpublic void rentOut(UUID landlord, UUID tenant, String rentPeriod, double rentPrice)
PSRegionpublic void removeRenting()
PSRegionremoveRenting in class PSRegionpublic String getTaxPeriod()
PSRegiongetTaxPeriod in class PSRegionpublic String getTaxPaymentPeriod()
PSRegiongetTaxPaymentPeriod in class PSRegionpublic List<PSRegion.TaxPayment> getTaxPaymentsDue()
PSRegiongetTaxPaymentsDue in class PSRegionpublic void setTaxPaymentsDue(List<PSRegion.TaxPayment> taxPayments)
PSRegionsetTaxPaymentsDue in class PSRegiontaxPayments - the full list of tax payments that are duepublic List<PSRegion.LastRegionTaxPaymentEntry> getRegionLastTaxPaymentAddedEntries()
PSRegiongetRegionLastTaxPaymentAddedEntries in class PSRegionpublic void setRegionLastTaxPaymentAddedEntries(List<PSRegion.LastRegionTaxPaymentEntry> entries)
PSRegionsetRegionLastTaxPaymentAddedEntries in class PSRegionentries - the full list of PSRegion.LastRegionTaxPaymentEntry entries.public UUID getTaxAutopayer()
PSRegiongetTaxAutopayer in class PSRegionpublic void setTaxAutopayer(UUID uuid)
PSRegionsetTaxAutopayer in class PSRegionuuid - the player to use to auto-pay taxespublic net.milkbowl.vault.economy.EconomyResponse payTax(PSPlayer p, double amount)
PSRegionpublic boolean isTaxPaymentLate()
PSRegionisTaxPaymentLate in class PSRegionpublic void updateTaxPayments()
PSRegionupdateTaxPayments in class PSRegionpublic org.bukkit.block.Block getProtectBlock()
PSRegiongetProtectBlock in class PSRegionpublic PSProtectBlock getTypeOptions()
getTypeOptions in class PSRegionpublic String getType()
public void setType(PSProtectBlock type)
PSRegionpublic boolean isOwner(UUID uuid)
PSRegionpublic boolean isMember(UUID uuid)
PSRegionpublic ArrayList<UUID> getMembers()
getMembers in class PSRegionpublic void addOwner(UUID uuid)
PSRegionpublic void addMember(UUID uuid)
PSRegionpublic void removeOwner(UUID uuid)
PSRegionremoveOwner in class PSRegionuuid - the uuid of the player to removepublic void removeMember(UUID uuid)
PSRegionremoveMember in class PSRegionuuid - the uuid of the player to removepublic List<com.sk89q.worldedit.math.BlockVector2> getPoints()
public List<PSRegion> getMergeableRegions(org.bukkit.entity.Player p)
PSRegiongetMergeableRegions in class PSRegionp - the player to compare permissions withpublic boolean deleteRegion(boolean deleteBlock)
PSRegiondeleteRegion in class PSRegiondeleteBlock - whether or not to also set the protection block to air (if not hidden)public boolean deleteRegion(boolean deleteBlock,
org.bukkit.entity.Player cause)
PSRegiondeleteRegion in class PSRegiondeleteBlock - whether or not to also set the protection block to air (if not hidden)cause - the player that caused the region to breakpublic com.sk89q.worldguard.protection.regions.ProtectedRegion getWGRegion()
getWGRegion in class PSRegionCopyright © 2021. All rights reserved.