Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdvancedRegionMarket Support #387

Open
JeffP07 opened this issue Sep 14, 2022 · 0 comments
Open

AdvancedRegionMarket Support #387

JeffP07 opened this issue Sep 14, 2022 · 0 comments
Labels
Possible Might be added - good candidate for a PR!

Comments

@JeffP07
Copy link

JeffP07 commented Sep 14, 2022

Source code can be found here: https://github.com/alex9849/advanced-region-market

Events that can be added:
https://github.com/alex9849/advanced-region-market/wiki/API
AddRegionEvent (Is called if a new region gets added to ARM)
BuyRegionEvent (Is called if a region gets bought)
ExtendRegionEvent (Is called if a rentregion or contractregion gets extended)
RemoveRegionEvent (Is called if a region gets removed from ARM)
ResetBlocksEvent (Is called if a region gets resetted)
UnsellRegionEvent (Is called if a region gets unsold) - if possible, getting the reason from the unsell would be helpful
UpdateRegionEvent (Is called if a region gets maked as unsaved)
All events are cancelable.

Tags that could be added:
https://github.com/alex9849/advanced-region-market/blob/master/advancedregionmarket/src/main/java/net/alex9849/arm/regions/RegionManager.java
getRegion(wgregion) - get ARM region by wgregion
getRegionByNameAndWorld - get ARM region
getRegionsByLocation
getRegionsByRegionKind
getRegionsBySelltype
getBuyableRegions
getRegionsByMember
getRegionsByOwner

https://github.com/alex9849/advanced-region-market/blob/master/advancedregionmarket/src/main/java/net/alex9849/arm/regions/Region.java
Some of the most generally helpful seem to be
getRegionKind
isSold
isSubregion
isHotel
isAllowSubregions
isTakeoverReady
getLandlord
getM2Amount
getPricePerPeriod
getPricePerM2
getPricePerM3
getDimensions
getParentRegion
getRegionworld
getRegion (this gets the worldguard region)
getSubregions
isBuyable
setSold(boolean)
setSold(player) - sets sold = true and sets owner at the same time
setLandlord
setRegionKind
setOwner

@mcmonkey4eva mcmonkey4eva added the Possible Might be added - good candidate for a PR! label Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Possible Might be added - good candidate for a PR!
Projects
None yet
Development

No branches or pull requests

2 participants