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:
  • 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 Point
      candel - 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 X
      minMbrX - Min coord X
      maxMbrZ - Max coord Z
      minMbrZ - Min coord Z
      minY - Min location
      maxY - Max Location
      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 playername of this region.
      tppoint - Teleport Point
      candel - 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 flags
      welcome - Set a welcome message.
      value - A playername in server economy.
      tppoint - Teleport Point
      candel - Can delete?
      canPurge - Can be purged?
    • Region

      public Region(String name, org.bukkit.Location min, org.bukkit.Location max, String world)
      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

      public void updateSigns(String fname)
    • setFlag

      public boolean setFlag(org.bukkit.command.CommandSender cause, String fname, Object value)
    • removeFlag

      public void removeFlag(String Name)
    • getTPPoint

      public org.bukkit.Location getTPPoint()
    • setTPPoint

      public void setTPPoint(org.bukkit.Location loc)
    • setCanPurge

      public void setCanPurge(boolean purge)
    • setDate

      public void setDate(String value)
    • 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

      public void setWorld(String w)
    • setPrior

      public void setPrior(int prior)
    • setWelcome

      public void setWelcome(String s)
    • getDynmapSet

      public String getDynmapSet()
    • setAdmins

      public void setAdmins(Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> admins)
    • setMembers

      public void setMembers(Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> members)
    • setLeaders

      public void setLeaders(Set<br.net.fabiozumbi12.RedProtect.Core.region.PlayerRegion> leaders)
    • info

      public String 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

      public void addLeader(String uuid)
      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

      public void addMember(String uuid)
      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

      public void addAdmin(String uuid)
      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

      public void removeMember(String uuid)
      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

      public void removeAdmin(String uuid)
      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

      public void removeLeader(String uuid)
      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

      public boolean getFlagBool(String key)
    • getFlagString

      public String getFlagString(String key)
    • getFlagInfo

      public String 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

      public boolean isCmdAllowed(String fullcmd)
    • isCmdDenied

      public boolean isCmdDenied(String fullcmd)
    • 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

      public Set<org.bukkit.Location> getLimitLocs(int miny, int maxy, boolean define)
    • get4Points

      public List<org.bukkit.Location> get4Points(int y)
    • getCenterLoc

      public org.bukkit.Location getCenterLoc()
    • getAdminDesc

      public String getAdminDesc()
    • getLeadersDesc

      public String getLeadersDesc()
    • getMembersDesc

      public String getMembersDesc()