public class RegionManager extends Object
| Constructor and Description |
|---|
RegionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Region r,
String w) |
void |
clearDB() |
Set<Region> |
getAdminRegions(String uuid)
Return a set of regions by player UUID or Name if this player is Admin or Leader;
This will return player regions based on raw UUID or Player name, depending if server is running in Online;
|
Set<Region> |
getAllRegions() |
long |
getCanPurgePlayer(String player,
String world) |
Map<Integer,Region> |
getGroupRegion(org.bukkit.Location loc)
Get regions in a group region.
|
Map<Integer,Region> |
getGroupRegion(String w,
int x,
int y,
int z)
Get regions in a group region.
|
Set<Region> |
getInnerRegions(Region region,
String w) |
Set<Region> |
getLeaderRegions(String uuid)
Return a set of regions by player UUID or Name if this player is Leader;
This will return player regions based on raw UUID or Player name, depending if server is running in Online or Offline mode;
|
Region |
getLowRegion(org.bukkit.Location loc)
Get the low priority region in a group region.
|
Region |
getLowRegion(String w,
int x,
int y,
int z)
Get the low priority region in a group region.
|
Set<Region> |
getMemberRegions(String uuid)
Return a set of regions by player UUID or Name if this player is Member, Admin or Leader;
This will return player regions based on raw UUID or Player name, depending if server is running in Online;
|
int |
getPlayerRegions(String player,
String w) |
Region |
getRegion(String rname,
String w) |
Region |
getRegionById(String rid) |
Set<Region> |
getRegions(org.bukkit.entity.Player p,
int x,
int y,
int z) |
Set<Region> |
getRegions(String player,
String w) |
Set<Region> |
getRegionsByWorld(String w) |
Set<Region> |
getRegionsForChunk(org.bukkit.Chunk chunk) |
Set<Region> |
getRegionsNear(org.bukkit.entity.Player player,
int i) |
Region |
getTopRegion(org.bukkit.Location loc)
Get the high priority region in a group region.
|
Region |
getTopRegion(String w,
int x,
int y,
int z)
Get the high priority region in a group region.
|
int |
getTotalRegionSize(String uuid,
String world) |
int |
getTotalRegionsNum() |
void |
load(String w) |
void |
loadAll() |
int |
regenAll(String player) |
void |
remove(Region r,
String w) |
int |
removeAll(String player) |
void |
removeLiveFlags(Region r,
String flag) |
Region |
renameRegion(String newName,
Region old) |
void |
save(String w) |
int |
saveAll(boolean force) |
void |
unload(String w) |
void |
unloadAll() |
void |
updateLiveFlags(Region r,
String flag,
String value) |
void |
updateLiveRegion(Region r,
String columm,
Object value) |
public void unloadAll()
public void unload(String w)
public int saveAll(boolean force)
public Set<Region> getLeaderRegions(String uuid)
This will return player regions based on raw UUID or Player name, depending if server is running in Online or Offline mode;
uuid - the UUID of the player.Set<Region> with regionspublic Set<Region> getAdminRegions(String uuid)
This will return player regions based on raw UUID or Player name, depending if server is running in Online;
uuid - the UUID of the player.Set<Region> with regionspublic Set<Region> getMemberRegions(String uuid)
This will return player regions based on raw UUID or Player name, depending if server is running in Online;
uuid - the UUID of the player.Set<Region> with regionspublic void save(String w)
public int removeAll(String player)
public int regenAll(String player)
public Region getTopRegion(org.bukkit.Location loc)
loc - LocationRegion - Or null if no regions on this location.public Region getTopRegion(String w, int x, int y, int z)
w - Worldx - Location xy - Location yz - Location zRegion - Or null if no regions on this location.public Region getLowRegion(String w, int x, int y, int z)
w - Worldx - Location xy - Location yz - Location zRegion - Or null if no regions on this location.public Region getLowRegion(org.bukkit.Location loc)
loc - location to get region.Region - Or null if no regions on this location.public Map<Integer,Region> getGroupRegion(String w, int x, int y, int z)
w - Worldx - Location xy - Location yz - Location zMap<Integer,Region> - Indexed by prioritypublic Map<Integer,Region> getGroupRegion(org.bukkit.Location loc)
Map<Integer,Region> - Indexed by prioritypublic void clearDB()
public int getTotalRegionsNum()
Copyright © 2021. All rights reserved.