public class Plot
extends java.lang.Object
implements java.lang.Cloneable
            | Modifier and Type | Field and Description | 
|---|---|
boolean | 
                countsTowardsMax 
                 | 
            
boolean | 
                delete
                    Delete on next save cycle? 
                 | 
            
java.util.ArrayList<java.util.UUID> | 
                denied
                    List of denied players 
                 | 
            
boolean | 
                deny_entry
                    Deny Entry 
                 | 
            
boolean | 
                hasChanged
                    Has the plot changed since the last save cycle? 
                 | 
            
java.util.ArrayList<java.util.UUID> | 
                helpers
                    List of helpers (with plot permissions) 
                 | 
            
PlotId
                 | 
                id
                    plot ID 
                 | 
            
java.util.UUID | 
                owner
                    plot owner 
                 | 
            
PlotSettings
                 | 
                settings
                    External settings class 
                 | 
            
java.util.ArrayList<java.util.UUID> | 
                trusted
                    List of trusted users (with plot permissions) 
                 | 
            
java.lang.String | 
                world
                    plot world 
                 | 
            
| Constructor and Description | 
|---|
Plot(PlotId id,
                    java.util.UUID owner,
                    org.bukkit.block.Biome plotBiome,
                    java.util.ArrayList<java.util.UUID> helpers,
                    java.util.ArrayList<java.util.UUID> trusted,
                    java.util.ArrayList<java.util.UUID> denied,
                    java.lang.String alias,
                    PlotHomePosition position,
                    Flag[] flags,
                    java.lang.String world,
                    boolean[] merged)
                    Constructor for saved plots 
                 | 
            
Plot(PlotId id,
                    java.util.UUID owner,
                    org.bukkit.block.Biome plotBiome,
                    java.util.ArrayList<java.util.UUID> helpers,
                    java.util.ArrayList<java.util.UUID> denied,
                    java.lang.String world)
                    Primary constructor 
                 | 
            
| Modifier and Type | Method and Description | 
|---|---|
void | 
                addDenied(java.util.UUID uuid)
                    Deny someone (use DBFunc.addDenied() as well) 
                 | 
            
void | 
                addHelper(java.util.UUID uuid)
                    Add someone as a helper (use DBFunc as well) 
                 | 
            
void | 
                addTrusted(java.util.UUID uuid)
                    Add someone as a trusted user (use DBFunc as well) 
                 | 
            
void | 
                clear(org.bukkit.entity.Player plr)
                    Clear a plot 
                 | 
            
java.lang.Object | 
                clone()
                    Get a clone of the plot 
                 | 
            
boolean | 
                deny_entry(org.bukkit.entity.Player player)
                    Should the player be allowed to enter? 
                 | 
            
boolean | 
                equals(java.lang.Object obj) 
                 | 
            
java.lang.String | 
                getDisplayName()
                    Get plot display name 
                 | 
            
PlotId
                 | 
                getId()
                    Get the plot ID 
                 | 
            
java.util.UUID | 
                getOwner()
                    Get the UUID of the owner 
                 | 
            
org.bukkit.World | 
                getWorld()
                    Get the plot World 
                 | 
            
int | 
                hashCode()
                    Get the plot hashcode 
                 | 
            
boolean | 
                hasOwner()
                    Check if the plot has a set owner 
                 | 
            
boolean | 
                hasRights(org.bukkit.entity.Player player)
                    Check if the player is either the owner or on the helpers list 
                 | 
            
void | 
                removeDenied(java.util.UUID uuid)
                    Remove a denied player (use DBFunc as well) 
                 | 
            
void | 
                removeHelper(java.util.UUID uuid)
                    Remove a helper (use DBFunc as well) 
                 | 
            
void | 
                removeTrusted(java.util.UUID uuid)
                    Remove a trusted user (use DBFunc as well) 
                 | 
            
void | 
                setOwner(org.bukkit.entity.Player player)
                    Set the owner 
                 | 
            
public PlotId id
public java.lang.String world
public java.util.UUID owner
public boolean deny_entry
public java.util.ArrayList<java.util.UUID> helpers
public java.util.ArrayList<java.util.UUID> trusted
public java.util.ArrayList<java.util.UUID> denied
public PlotSettings settings
public boolean delete
public boolean hasChanged
public boolean countsTowardsMax
public Plot(PlotId id, java.util.UUID owner, org.bukkit.block.Biome plotBiome, java.util.ArrayList<java.util.UUID> helpers, java.util.ArrayList<java.util.UUID> denied, java.lang.String world)
id -owner -plotBiome -helpers -denied -public Plot(PlotId id, java.util.UUID owner, org.bukkit.block.Biome plotBiome, java.util.ArrayList<java.util.UUID> helpers, java.util.ArrayList<java.util.UUID> trusted, java.util.ArrayList<java.util.UUID> denied, java.lang.String alias, PlotHomePosition position, Flag[] flags, java.lang.String world, boolean[] merged)
id -owner -plotBiome -helpers -denied -merged -public boolean hasOwner()
public boolean hasRights(org.bukkit.entity.Player player)
player -public boolean deny_entry(org.bukkit.entity.Player player)
player -public java.util.UUID getOwner()
public void setOwner(org.bukkit.entity.Player player)
player -public PlotId getId()
public org.bukkit.World getWorld()
public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
        clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void addDenied(java.util.UUID uuid)
uuid -public void addHelper(java.util.UUID uuid)
uuid -public void addTrusted(java.util.UUID uuid)
uuid -public java.lang.String getDisplayName()
public void removeDenied(java.util.UUID uuid)
uuid -public void removeHelper(java.util.UUID uuid)
uuid -public void removeTrusted(java.util.UUID uuid)
uuid -public void clear(org.bukkit.entity.Player plr)
plr - initiatorpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object