public class PlotSettings
extends java.lang.Object
Constructor and Description |
---|
PlotSettings(Plot plot)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addComment(PlotComment comment)
|
void |
addFlag(Flag flag)
|
java.lang.String |
getAlias()
|
org.bukkit.block.Biome |
getBiome()
|
java.util.ArrayList<PlotComment>
|
getComments(int tier)
|
Flag |
getFlag(java.lang.String flag)
|
java.util.Set<Flag> |
getFlags()
Get all flags applied for the plot
|
java.lang.String |
getJoinMessage()
|
java.lang.String |
getLeaveMessage()
Get the "farewell" flag value
|
boolean[] |
getMerged()
|
boolean |
getMerged(int direction)
Check if the plot is merged in a direction
0 = North 1 = East 2 = South 3 = West |
PlotHomePosition
|
getPosition()
|
boolean |
isMerged()
Returns true if the plot is merged (i.e. if it's a mega plot)
|
void |
removeComment(PlotComment comment)
|
void |
removeComments(java.util.ArrayList<PlotComment> comments)
|
void |
setAlias(java.lang.String alias)
Set the plot alias
|
void |
setComments(java.util.ArrayList<PlotComment> comments)
|
void |
setFlags(Flag[] flags)
|
void |
setMerged(boolean[] merged)
|
void |
setMerged(int direction,
boolean merged) |
void |
setPosition(PlotHomePosition position)
|
public PlotSettings(Plot plot)
plot
- objectpublic boolean getMerged(int direction)
direction
- Direction to checkpublic boolean isMerged()
public boolean[] getMerged()
public void setMerged(boolean[] merged)
public void setMerged(int direction, boolean merged)
public org.bukkit.block.Biome getBiome()
public void addFlag(Flag flag)
flag
- to addpublic java.util.Set<Flag> getFlags()
public void setFlags(Flag[] flags)
flags
-public Flag getFlag(java.lang.String flag)
flag
-public PlotHomePosition getPosition()
public void setPosition(PlotHomePosition position)
public java.lang.String getAlias()
public void setAlias(java.lang.String alias)
alias
- alias to be usedpublic java.lang.String getJoinMessage()
public java.lang.String getLeaveMessage()
public java.util.ArrayList<PlotComment> getComments(int tier)
public void setComments(java.util.ArrayList<PlotComment> comments)
public void removeComment(PlotComment comment)
public void removeComments(java.util.ArrayList<PlotComment> comments)
public void addComment(PlotComment comment)