Class Region
java.lang.Object
br.net.fabiozumbi12.RedProtect.Core.region.CoreRegion
br.net.fabiozumbi12.RedProtect.Bukkit.Region
- All Implemented Interfaces:
Serializable
public class Region
extends br.net.fabiozumbi12.RedProtect.Core.region.CoreRegion
Represents a 3D Bukkit region created by players.
- See Also:
-
Field Summary
Fields inherited from class br.net.fabiozumbi12.RedProtect.Core.region.CoreRegion
admins, canDelete, canPurge, date, flags, leaders, maxMbrX, maxMbrZ, maxY, members, minMbrX, minMbrZ, minY, name, prior, serialVersionUID, tppoint, tppointYaw, value, wMessage, world -
Constructor Summary
ConstructorsConstructorDescriptionRegion(String name, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> admins, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> members, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> leaders, int[] x, int[] z, int miny, int maxy, int prior, String worldName, String date, Map<String, Object> flags, String welcome, double value, org.bukkit.Location tppoint, boolean candel, boolean canPurge) Represents the region created by player.Region(String name, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> admins, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> members, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> leaders, int maxMbrX, int minMbrX, int maxMbrZ, int minMbrZ, int minY, int maxY, Map<String, Object> flags, String wMessage, int prior, String worldName, String date, double value, org.bukkit.Location tppoint, boolean candel, boolean canPurge) Represents the region created by player.Region(String name, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> admins, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> members, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> leaders, org.bukkit.Location minLoc, org.bukkit.Location maxLoc, Map<String, Object> flags, String wMessage, int prior, String worldName, String date, double value, org.bukkit.Location tppoint, boolean candel, boolean canPurge) Represents the region created by player.Represents the region created by player. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an admin to the Region.voidAdd a leader to the Region.voidAdd a member to the Region.booleanbooleanallowMod(org.bukkit.entity.Player p) booleanbooleancanBack(org.bukkit.entity.Player p) booleancanBreak(org.bukkit.entity.EntityType e) booleancanBreak(org.bukkit.Material b) booleancanBuild(org.bukkit.entity.Player p) booleancanButton(org.bukkit.entity.Player p) booleancanChest(org.bukkit.entity.Player p) booleanbooleanbooleancanCrops()booleancanCrops(org.bukkit.block.Block b, boolean breaking) booleancanDeath()booleancanDoor(org.bukkit.entity.Player p) booleancanDrop(org.bukkit.entity.Player p) booleancanEnderChest(org.bukkit.entity.Player p) booleancanEnter(org.bukkit.entity.Player p) booleancanEnterPortal(org.bukkit.entity.Player p) booleancanEnterWithItens(org.bukkit.entity.Player p) booleancanExit(org.bukkit.entity.Player p) booleancanExitPortal(org.bukkit.entity.Player p) booleancanExitWithItens(org.bukkit.entity.Player p) booleancanFire()booleancanFish(org.bukkit.entity.Player p) booleancanFlow()booleanbooleancanFly(org.bukkit.entity.Player p) Check if the specified player can fly in this region.booleancanGetEffects(org.bukkit.entity.Player p) booleancanGrow()booleanbooleanAllow ice form by entity and by world.booleancanIceForm(org.bukkit.entity.Player p) Allow ice form by players.booleancanInteractPassives(org.bukkit.entity.Player p) booleancanLever(org.bukkit.entity.Player p) booleancanMinecart(org.bukkit.entity.Player p) booleancanMining(org.bukkit.block.Block b) booleanbooleancanMove(org.bukkit.entity.Player p) booleancanPet(org.bukkit.entity.Player p) booleancanPickup(org.bukkit.entity.Player p) booleancanPlace(org.bukkit.Material b) booleancanPlaceSpawner(org.bukkit.entity.Player p) Check if the specified player can place a spawner in this region.booleanbooleancanPressPlate(org.bukkit.entity.Player p) booleancanProtectiles(org.bukkit.entity.Player p) booleancanPVP(org.bukkit.entity.Player attacker, org.bukkit.entity.Player defender) booleancanRedstone(org.bukkit.entity.Player p) booleancanSign(org.bukkit.entity.Player p) booleancanSkill(org.bukkit.entity.Player p) booleancanSpawnMonsters(org.bukkit.entity.Entity entity) booleancanSpawnPassives(org.bukkit.entity.Entity entity) booleanbooleancanTeleport(org.bukkit.entity.Player p) booleancanTree()booleancanTree(org.bukkit.block.Block b) voidvoidvoidbooleancmdOnHealth(org.bukkit.entity.Player p) booleandenyEnterWithItens(org.bukkit.entity.Player p) List<org.bukkit.Location>get4Points(int y) org.bukkit.LocationbooleangetFlagBool(String key) getFlagString(String key) Set<org.bukkit.Location>getLimitLocs(int miny, int maxy, boolean define) org.bukkit.Locationintorg.bukkit.Locationorg.bukkit.Locationinfo()booleanisAdmin(org.bukkit.entity.Player player) booleanisCmdAllowed(String fullcmd) booleanisCmdDenied(String fullcmd) booleanbooleanisHomeAllowed(org.bukkit.entity.Player p) booleanbooleanbooleanisLeader(org.bukkit.entity.Player player) booleanisMember(org.bukkit.entity.Player player) booleanisOnTop()booleanbooleanvoidvoidremoveAdmin(String uuid) Remove an admin to the Region.voidremoveFlag(String Name) voidremoveLeader(String uuid) Remove an leader to the Region.voidremoveMember(String uuid) Remove an member to the Region.voidvoidsetCanPurge(boolean purge) voidbooleanvoidsetLeaders(Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> leaders) voidsetMaxY(int y) voidsetMembers(Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> members) voidsetMinY(int y) voidsetPrior(int prior) voidsetTPPoint(org.bukkit.Location loc) voidsetValue(double value) voidsetWelcome(String s) voidbooleanshowMap()voidvoidupdateSigns(String fname) booleanusePotions(org.bukkit.entity.Player p) Methods inherited from class br.net.fabiozumbi12.RedProtect.Core.region.CoreRegion
adminSize, canDelete, canPurge, flagExists, getAdmins, getAdminString, getArea, getCenterX, getCenterY, getCenterZ, getDate, getFlags, getFlagStrings, getID, getLeaders, getLeadersString, getMaxMbrX, getMaxMbrZ, getMaxY, getMembers, getMembersString, getMinMbrX, getMinMbrZ, getMinY, getName, getPrior, getTPPointString, getValue, getWelcome, getWorld, isAdmin, isAdminByName, isAdminByUUID, isLeader, isLeaderByName, isLeaderByUUID, isMember, isMemberByName, isMemberByUUID, leaderSize, sameLeaders, serializeMembers, setFlags, setToSave, toSave, toString
-
Constructor Details
-
Region
public Region(String name, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> admins, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> members, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> leaders, org.bukkit.Location minLoc, org.bukkit.Location maxLoc, Map<String, Object> flags, String wMessage, int prior, String worldName, String date, double value, org.bukkit.Location tppoint, boolean candel, boolean canPurge) Represents the region created by player.- Parameters:
name- Name of region.admins- List of admins.members- List of members.leaders- List of leaders.minLoc- Min coord.maxLoc- Max coord.flags- Flag names and values.wMessage- Welcome message.prior- Priority of region.worldName- Name of world for this region.date- Date of latest visit of an admin or leader.value- Last value of this region.tppoint- Teleport Pointcandel- Can delete?canPurge- Can be purged?
-
Region
public Region(String name, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> admins, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> members, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> leaders, int maxMbrX, int minMbrX, int maxMbrZ, int minMbrZ, int minY, int maxY, Map<String, Object> flags, String wMessage, int prior, String worldName, String date, double value, org.bukkit.Location tppoint, boolean candel, boolean canPurge) Represents the region created by player.- Parameters:
name- Name of region.admins- List of admins.members- List of members.leaders- List of leaders.maxMbrX- Max coord XminMbrX- Min coord XmaxMbrZ- Max coord ZminMbrZ- Min coord ZminY- Min locationmaxY- Max Locationflags- Flag names and values.wMessage- Welcome message.prior- Priority of region.worldName- Name of world for this region.date- Date of latest visit of an admin or leader.value- Last playername of this region.tppoint- Teleport Pointcandel- Can delete?canPurge- Can br purged?
-
Region
public Region(String name, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> admins, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> members, Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> leaders, int[] x, int[] z, int miny, int maxy, int prior, String worldName, String date, Map<String, Object> flags, String welcome, double value, org.bukkit.Location tppoint, boolean candel, boolean canPurge) Represents the region created by player.- Parameters:
name- Region name.admins- Admins names/uuids.members- Members names/uuids.leaders- Leaders name/uuid.x- Locations of x coords.z- Locations of z coords.miny- Min coord y of this region.maxy- Max coord y of this region.prior- Location of x coords.worldName- Name of world region.date- Date of latest visit of an admins or leader.flags- Default flagswelcome- Set a welcome message.value- A playername in server economy.tppoint- Teleport Pointcandel- Can delete?canPurge- Can be purged?
-
Region
Represents the region created by player.- Parameters:
name- Region name.min- Min Location.max- Max Location.world- World name.
-
-
Method Details
-
notifyRemove
public void notifyRemove() -
updateSigns
public void updateSigns() -
updateSigns
-
setFlag
-
removeFlag
-
getTPPoint
public org.bukkit.Location getTPPoint() -
setTPPoint
public void setTPPoint(org.bukkit.Location loc) -
setCanPurge
public void setCanPurge(boolean purge) -
setDate
-
setMaxY
public void setMaxY(int y) -
setMinY
public void setMinY(int y) -
getMaxLocation
public org.bukkit.Location getMaxLocation() -
getMinLocation
public org.bukkit.Location getMinLocation() -
setWorld
-
setPrior
public void setPrior(int prior) -
setWelcome
-
getDynmapSet
-
setAdmins
-
setMembers
-
setLeaders
-
info
-
clearLeaders
public void clearLeaders() -
clearAdmins
public void clearAdmins() -
clearMembers
public void clearMembers() -
isLeader
public boolean isLeader(org.bukkit.entity.Player player) -
isAdmin
public boolean isAdmin(org.bukkit.entity.Player player) -
isMember
public boolean isMember(org.bukkit.entity.Player player) -
addLeader
Add a leader to the Region. The string need to be UUID if Online Mode, or Player Name if Offline Mode.- Parameters:
uuid- - UUID or Player Name.
-
addMember
Add a member to the Region. The string need to be UUID if Online Mode, or Player Name if Offline Mode.- Parameters:
uuid- - UUID or Player Name.
-
addAdmin
Add an admin to the Region. The string need to be UUID if Online Mode, or Player Name if Offline Mode.- Parameters:
uuid- - UUID or Player Name.
-
removeMember
Remove an member to the Region. The string need to be UUID if Online Mode, or Player Name if Offline Mode.- Parameters:
uuid- - UUID or Player Name.
-
removeAdmin
Remove an admin to the Region. The string need to be UUID if Online Mode, or Player Name if Offline Mode.- Parameters:
uuid- - UUID or Player Name.
-
removeLeader
Remove an leader to the Region. The string need to be UUID if Online Mode, or Player Name if Offline Mode.- Parameters:
uuid- - UUID or Player Name.
-
getFlagBool
-
getFlagString
-
getFlagInfo
-
isOnTop
public boolean isOnTop() -
canMove
public boolean canMove(org.bukkit.entity.Player p) -
canSpawnWhiter
public boolean canSpawnWhiter() -
getMaxPlayers
public int getMaxPlayers() -
canDeath
public boolean canDeath() -
cmdOnHealth
public boolean cmdOnHealth(org.bukkit.entity.Player p) -
showMap
public boolean showMap() -
isKeepInventory
public boolean isKeepInventory() -
isKeepLevels
public boolean isKeepLevels() -
canPlayerDamage
public boolean canPlayerDamage() -
isForcePVP
public boolean isForcePVP() -
canHunger
public boolean canHunger() -
canSign
public boolean canSign(org.bukkit.entity.Player p) -
canExit
public boolean canExit(org.bukkit.entity.Player p) -
canEnter
public boolean canEnter(org.bukkit.entity.Player p) -
canExitWithItens
public boolean canExitWithItens(org.bukkit.entity.Player p) -
canEnterWithItens
public boolean canEnterWithItens(org.bukkit.entity.Player p) -
denyEnterWithItens
public boolean denyEnterWithItens(org.bukkit.entity.Player p) -
canTeleport
public boolean canTeleport(org.bukkit.entity.Player p) -
canMining
public boolean canMining(org.bukkit.block.Block b) -
canPlace
public boolean canPlace(org.bukkit.Material b) -
canBreak
public boolean canBreak(org.bukkit.entity.EntityType e) -
canBreak
public boolean canBreak(org.bukkit.Material b) -
canTree
public boolean canTree() -
canCrops
public boolean canCrops() -
canTree
public boolean canTree(org.bukkit.block.Block b) -
canCrops
public boolean canCrops(org.bukkit.block.Block b, boolean breaking) -
canSkill
public boolean canSkill(org.bukkit.entity.Player p) -
canBack
public boolean canBack(org.bukkit.entity.Player p) -
isPvPArena
public boolean isPvPArena() -
allowMod
public boolean allowMod(org.bukkit.entity.Player p) -
canEnterPortal
public boolean canEnterPortal(org.bukkit.entity.Player p) -
canExitPortal
public boolean canExitPortal(org.bukkit.entity.Player p) -
canPet
public boolean canPet(org.bukkit.entity.Player p) -
canProtectiles
public boolean canProtectiles(org.bukkit.entity.Player p) -
canDrop
public boolean canDrop(org.bukkit.entity.Player p) -
canPickup
public boolean canPickup(org.bukkit.entity.Player p) -
canCreatePortal
public boolean canCreatePortal() -
isCmdAllowed
-
isCmdDenied
-
blockTransform
public boolean blockTransform() -
canFish
public boolean canFish(org.bukkit.entity.Player p) -
canPressPlate
public boolean canPressPlate(org.bukkit.entity.Player p) -
canBuild
public boolean canBuild(org.bukkit.entity.Player p) -
leavesDecay
public boolean leavesDecay() -
canPlaceSpawner
public boolean canPlaceSpawner(org.bukkit.entity.Player p) Check if the specified player can place a spawner in this region.- Parameters:
p- The player to check for permission.- Returns:
- boolean if the player can place o not a spawner.
-
canFly
public boolean canFly(org.bukkit.entity.Player p) Check if the specified player can fly in this region.- Parameters:
p- The player to check for permission.- Returns:
- boolean if the player can fly or not.
-
canIceForm
public boolean canIceForm(org.bukkit.entity.Player p) Allow ice form by players.- Parameters:
p- the player- Returns:
- boolean if player can iceform
-
canIceForm
public boolean canIceForm()Allow ice form by entity and by world.- Returns:
- boolean if can iceform
-
allowGravity
public boolean allowGravity() -
canFlowDamage
public boolean canFlowDamage() -
canMobLoot
public boolean canMobLoot() -
usePotions
public boolean usePotions(org.bukkit.entity.Player p) -
canGetEffects
public boolean canGetEffects(org.bukkit.entity.Player p) -
canPVP
public boolean canPVP(org.bukkit.entity.Player attacker, org.bukkit.entity.Player defender) -
canEnderChest
public boolean canEnderChest(org.bukkit.entity.Player p) -
canChest
public boolean canChest(org.bukkit.entity.Player p) -
canLever
public boolean canLever(org.bukkit.entity.Player p) -
canRedstone
public boolean canRedstone(org.bukkit.entity.Player p) -
canButton
public boolean canButton(org.bukkit.entity.Player p) -
canDoor
public boolean canDoor(org.bukkit.entity.Player p) -
canSpawnMonsters
public boolean canSpawnMonsters(org.bukkit.entity.Entity entity) -
canSpawnPassives
public boolean canSpawnPassives(org.bukkit.entity.Entity entity) -
canMinecart
public boolean canMinecart(org.bukkit.entity.Player p) -
canInteractPassives
public boolean canInteractPassives(org.bukkit.entity.Player p) -
canFlow
public boolean canFlow() -
canFire
public boolean canFire() -
isHomeAllowed
public boolean isHomeAllowed(org.bukkit.entity.Player p) -
canGrow
public boolean canGrow() -
canCollide
public boolean canCollide() -
setValue
public void setValue(double value) -
getLimitLocs
-
get4Points
-
getCenterLoc
public org.bukkit.Location getCenterLoc() -
getAdminDesc
-
getLeadersDesc
-
getMembersDesc
-