diff --git a/doc/Test1.html b/doc/Test1.html deleted file mode 100644 index eecfe94d5..000000000 --- a/doc/Test1.html +++ /dev/null @@ -1,518 +0,0 @@ - - - -
- -public class Test1
-extends java.lang.Object
- Constructor and Description | -
---|
Test1()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- nextTest() |
-
void |
- t1()
- |
-
void |
- t2()
- |
-
void |
- t3()
- |
-
void |
- t4()
- |
-
void |
- t5()
- |
-
void |
- t6()
- |
-
void |
- t7()
- |
-
void |
- t8()
- |
-
void |
- t9()
- |
-
boolean |
- test1_Square() |
-
boolean |
- test2_InitMain() |
-
boolean |
- test3_InitPlotId()
- |
-
boolean |
- test4_InitPlot() |
-
boolean |
- test5_InitDBFunc()
- |
-
boolean |
- test6_Plots() |
-
boolean |
- test7_OnEnable() |
-
boolean |
- test8_AddPlotWorld()
- |
-
boolean |
- test9_CanSetFast()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public boolean nextTest()-
public void t1()-
public void t2()-
public void t3()-
public void t4()-
public void t5()-
public void t6()-
public void t7()-
public void t8()-
public void t9()-
public boolean test1_Square()-
public boolean test2_InitMain()-
public boolean test3_InitPlotId()-
public boolean test4_InitPlot()-
public boolean test5_InitDBFunc()-
public boolean test6_Plots()-
public boolean test7_OnEnable()-
public boolean test8_AddPlotWorld()-
public boolean test9_CanSetFast()-
public final class ByteArrayTag -extends Tag-
TAG_Byte_Array
tag.Constructor and Description | -
---|
ByteArrayTag(byte[] value)
-
- Creates the tag with an empty name.
- |
-
ByteArrayTag(java.lang.String name,
- byte[] value)
-
- Creates the tag.
- |
-
Modifier and Type | -Method and Description | -
---|---|
byte[] |
- getValue()
-
- Gets the value of this tag.
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public ByteArrayTag(byte[] value)-
value
- the value of the tagpublic ByteArrayTag(java.lang.String name, - byte[] value)-
name
- the name of the tagvalue
- the value of the tagpublic final class ByteTag -extends Tag-
TAG_Byte
tag.Constructor and Description | -
---|
ByteTag(byte value)
-
- Creates the tag with an empty name.
- |
-
ByteTag(java.lang.String name,
- byte value)
-
- Creates the tag.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Byte |
- getValue()
-
- Gets the value of this tag.
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public ByteTag(byte value)-
value
- the value of the tagpublic ByteTag(java.lang.String name, - byte value)-
name
- the name of the tagvalue
- the value of the tagpublic final class CompoundTag -extends Tag-
TAG_Compound
tag.Constructor and Description | -
---|
CompoundTag(java.util.Map<java.lang.String,Tag> value)
-
- Creates the tag with an empty name.
- |
-
CompoundTag(java.lang.String name,
- java.util.Map<java.lang.String,Tag> value)
-
- Creates the tag.
- |
-
Modifier and Type | -Method and Description | -
---|---|
double |
- asDouble(java.lang.String key)
-
- Get a double named with the given key, even if it's another
- type of number.
-
- |
-
int |
- asInt(java.lang.String key)
-
- Get an int named with the given key, even if it's another
- type of number.
-
- |
-
long |
- asLong(java.lang.String key)
-
- Get a long named with the given key, even if it's another
- type of number.
-
- |
-
boolean |
- containsKey(java.lang.String key)
-
- Returns whether this compound tag contains the given key.
- |
-
CompoundTagBuilder |
- createBuilder()
-
- Create a compound tag builder.
- |
-
byte |
- getByte(java.lang.String key)
-
- Get a byte named with the given key.
- |
-
byte[] |
- getByteArray(java.lang.String key)
-
- Get a byte array named with the given key.
- |
-
double |
- getDouble(java.lang.String key)
-
- Get a double named with the given key.
- |
-
float |
- getFloat(java.lang.String key)
-
- Get a float named with the given key.
- |
-
int |
- getInt(java.lang.String key)
-
- Get an int named with the given key.
- |
-
int[] |
- getIntArray(java.lang.String key)
-
- Get a
- int[] named with the given key. |
-
java.util.List<Tag> |
- getList(java.lang.String key)
-
- Get a list of tags named with the given key.
- |
-
<T extends Tag> |
- getList(java.lang.String key,
- java.lang.Class<T> listType)
-
- Get a list of tags named with the given key.
- |
-
ListTag
- |
- getListTag(java.lang.String key)
-
- Get a
- TagList named with the given key. |
-
long |
- getLong(java.lang.String key)
-
- Get a long named with the given key.
- |
-
short |
- getShort(java.lang.String key)
-
- Get a short named with the given key.
- |
-
java.lang.String |
- getString(java.lang.String key)
-
- Get a string named with the given key.
- |
-
java.util.Map<java.lang.String,Tag> |
- getValue()
-
- Gets the value of this tag.
- |
-
CompoundTag
- |
- setValue(java.util.Map<java.lang.String,Tag> value)
-
- Return a new compound tag with the given values.
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public CompoundTag(java.util.Map<java.lang.String,Tag> value)-
value
- the value of the tagpublic CompoundTag(java.lang.String name, - java.util.Map<java.lang.String,Tag> value)-
name
- the name of the tagvalue
- the value of the tagpublic boolean containsKey(java.lang.String key)-
key
- the given keypublic java.util.Map<java.lang.String,Tag> getValue()-
Tag
public CompoundTag setValue(java.util.Map<java.lang.String,Tag> value)-
value
- the valuepublic CompoundTagBuilder createBuilder()-
public byte[] getByteArray(java.lang.String key)-
- If the key does not exist or its value is not a byte array tag, then an - empty byte array will be returned. -
key
- the keypublic byte getByte(java.lang.String key)-
- If the key does not exist or its value is not a byte tag, then 0
- will be returned.
-
key
- the keypublic double getDouble(java.lang.String key)-
- If the key does not exist or its value is not a double tag, then
- 0
will be returned.
-
key
- the keypublic double asDouble(java.lang.String key)-
- If the key does not exist or its value is not a number, then 0
- will be returned.
-
key
- the keypublic float getFloat(java.lang.String key)-
- If the key does not exist or its value is not a float tag, then 0
- will be returned.
-
key
- the keypublic int[] getIntArray(java.lang.String key)-
int[]
named with the given key.
-
-
- - If the key does not exist or its value is not an int array tag, then an - empty array will be returned. -
key
- the keypublic int getInt(java.lang.String key)-
- If the key does not exist or its value is not an int tag, then 0
- will be returned.
-
key
- the keypublic int asInt(java.lang.String key)-
- If the key does not exist or its value is not a number, then 0
- will be returned.
-
key
- the keypublic java.util.List<Tag> getList(java.lang.String key)-
- If the key does not exist or its value is not a list tag, then an empty - list will be returned. -
key
- the keypublic ListTag getListTag(java.lang.String key)-
TagList
named with the given key.
-
-
- - If the key does not exist or its value is not a list tag, then an empty - tag list will be returned. -
key
- the keypublic <T extends Tag> java.util.List<T> getList(java.lang.String key, - java.lang.Class<T> listType)-
- If the key does not exist or its value is not a list tag, then an empty - list will be returned. If the given key references a list but the list of - of a different type, then an empty list will also be returned. -
T
- the type of listkey
- the keylistType
- the class of the contained typepublic long getLong(java.lang.String key)-
- If the key does not exist or its value is not a long tag, then 0
- will be returned.
-
key
- the keypublic long asLong(java.lang.String key)-
- If the key does not exist or its value is not a number, then 0
- will be returned.
-
key
- the keypublic short getShort(java.lang.String key)-
- If the key does not exist or its value is not a short tag, then 0
- will be returned.
-
key
- the keypublic java.lang.String getString(java.lang.String key)-
- If the key does not exist or its value is not a string tag, then
- ""
will be returned.
-
key
- the keypublic java.lang.String toString()-
toString
in class java.lang.Object
public class CompoundTagBuilder
-extends java.lang.Object
- Modifier and Type | -Method and Description | -
---|---|
CompoundTag
- |
- build()
-
- Build an unnamed compound tag with this builder's entries.
- |
-
CompoundTag
- |
- build(java.lang.String name)
-
- Build a new compound tag with this builder's entries.
- |
-
static CompoundTagBuilder |
- create()
-
- Create a new builder instance.
- |
-
CompoundTagBuilder |
- put(java.lang.String key,
- Tag value)
-
- Put the given key and tag into the compound tag.
- |
-
CompoundTagBuilder |
- putAll(java.util.Map<java.lang.String,?
- extends Tag> value)
-
- Put all the entries from the given map into this map.
- |
-
CompoundTagBuilder |
- putByte(java.lang.String key,
- byte value)
-
- Put the given key and value into the compound tag as a
-
- ByteTag .
- |
-
CompoundTagBuilder |
- putByteArray(java.lang.String key,
- byte[] value)
-
- Put the given key and value into the compound tag as a
-
- ByteArrayTag .
- |
-
CompoundTagBuilder |
- putDouble(java.lang.String key,
- double value)
-
- Put the given key and value into the compound tag as a
- DoubleTag .
- |
-
CompoundTagBuilder |
- putFloat(java.lang.String key,
- float value)
-
- Put the given key and value into the compound tag as a
-
- FloatTag .
- |
-
CompoundTagBuilder |
- putInt(java.lang.String key,
- int value)
-
- Put the given key and value into the compound tag as an
-
- IntTag .
- |
-
CompoundTagBuilder |
- putIntArray(java.lang.String key,
- int[] value)
-
- Put the given key and value into the compound tag as a
-
- IntArrayTag .
- |
-
CompoundTagBuilder |
- putLong(java.lang.String key,
- long value)
-
- Put the given key and value into the compound tag as a
-
- LongTag .
- |
-
CompoundTagBuilder |
- putShort(java.lang.String key,
- short value)
-
- Put the given key and value into the compound tag as a
-
- ShortTag .
- |
-
CompoundTagBuilder |
- putString(java.lang.String key,
- java.lang.String value)
-
- Put the given key and value into the compound tag as a
- StringTag .
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static CompoundTagBuilder create()-
public CompoundTagBuilder put(java.lang.String key, - Tag value)-
key
- they keyvalue
- the valuepublic CompoundTagBuilder putByteArray(java.lang.String key, - byte[] value)-
ByteArrayTag
.
- key
- they keyvalue
- the valuepublic CompoundTagBuilder putByte(java.lang.String key, - byte value)-
ByteTag
.
- key
- they keyvalue
- the valuepublic CompoundTagBuilder putDouble(java.lang.String key, - double value)-
DoubleTag
.
- key
- they keyvalue
- the valuepublic CompoundTagBuilder putFloat(java.lang.String key, - float value)-
FloatTag
.
- key
- they keyvalue
- the valuepublic CompoundTagBuilder putIntArray(java.lang.String key, - int[] value)-
IntArrayTag
.
- key
- they keyvalue
- the valuepublic CompoundTagBuilder putInt(java.lang.String key, - int value)-
IntTag
.
- key
- they keyvalue
- the valuepublic CompoundTagBuilder putLong(java.lang.String key, - long value)-
LongTag
.
- key
- they keyvalue
- the valuepublic CompoundTagBuilder putShort(java.lang.String key, - short value)-
ShortTag
.
- key
- they keyvalue
- the valuepublic CompoundTagBuilder putString(java.lang.String key, - java.lang.String value)-
StringTag
.
- key
- they keyvalue
- the valuepublic CompoundTagBuilder putAll(java.util.Map<java.lang.String,? extends Tag> value)-
value
- the map of tagspublic CompoundTag build()-
public CompoundTag build(java.lang.String name)-
name
- the name of the tagpublic final class DoubleTag -extends Tag-
TAG_Double
tag.Constructor and Description | -
---|
DoubleTag(double value)
-
- Creates the tag with an empty name.
- |
-
DoubleTag(java.lang.String name,
- double value)
-
- Creates the tag.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Double |
- getValue()
-
- Gets the value of this tag.
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public DoubleTag(double value)-
value
- the value of the tagpublic DoubleTag(java.lang.String name, - double value)-
name
- the name of the tagvalue
- the value of the tagpublic final class EndTag -extends Tag-
TAG_End
tag.Constructor and Description | -
---|
EndTag()
-
- Creates the tag.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Object |
- getValue()
-
- Gets the value of this tag.
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public final class FloatTag -extends Tag-
TAG_Float
tag.Constructor and Description | -
---|
FloatTag(float value)
-
- Creates the tag with an empty name.
- |
-
FloatTag(java.lang.String name,
- float value)
-
- Creates the tag.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Float |
- getValue()
-
- Gets the value of this tag.
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public FloatTag(float value)-
value
- the value of the tagpublic FloatTag(java.lang.String name, - float value)-
name
- the name of the tagvalue
- the value of the tagpublic final class IntArrayTag -extends Tag-
TAG_Int_Array
tag.Constructor and Description | -
---|
IntArrayTag(int[] value)
-
- Creates the tag with an empty name.
- |
-
IntArrayTag(java.lang.String name,
- int[] value)
-
- Creates the tag.
- |
-
Modifier and Type | -Method and Description | -
---|---|
int[] |
- getValue()
-
- Gets the value of this tag.
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public IntArrayTag(int[] value)-
value
- the value of the tagpublic IntArrayTag(java.lang.String name, - int[] value)-
name
- the name of the tagvalue
- the value of the tagpublic final class IntTag -extends Tag-
TAG_Int
tag.Constructor and Description | -
---|
IntTag(int value)
-
- Creates the tag with an empty name.
- |
-
IntTag(java.lang.String name,
- int value)
-
- Creates the tag.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Integer |
- getValue()
-
- Gets the value of this tag.
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public IntTag(int value)-
value
- the value of the tagpublic IntTag(java.lang.String name, - int value)-
name
- the name of the tagvalue
- the value of the tagpublic final class ListTag -extends Tag-
TAG_List
tag.Constructor and Description | -
---|
ListTag(java.lang.Class<?
- extends Tag> type,
- java.util.List<? extends Tag> value)
-
- Creates the tag with an empty name.
- |
-
ListTag(java.lang.String name,
- java.lang.Class<? extends Tag> type,
- java.util.List<? extends Tag> value)
-
- Creates the tag.
- |
-
Modifier and Type | -Method and Description | -
---|---|
double |
- asDouble(int index)
-
- Get a double named with the given index, even if it's another
- type of number.
-
- |
-
int |
- asInt(int index)
-
- Get an int named with the given index, even if it's another
- type of number.
-
- |
-
long |
- asLong(int index)
-
- Get a long named with the given index, even if it's another
- type of number.
-
- |
-
byte |
- getByte(int index)
-
- Get a byte named with the given index.
- |
-
byte[] |
- getByteArray(int index)
-
- Get a byte array named with the given index.
- |
-
double |
- getDouble(int index)
-
- Get a double named with the given index.
- |
-
float |
- getFloat(int index)
-
- Get a float named with the given index.
- |
-
Tag
- |
- getIfExists(int index)
-
- Get the tag if it exists at the given index.
- |
-
int |
- getInt(int index)
-
- Get an int named with the given index.
- |
-
int[] |
- getIntArray(int index)
-
- Get a
- int[] named with the given index. |
-
java.util.List<Tag> |
- getList(int index)
-
- Get a list of tags named with the given index.
- |
-
<T extends Tag> |
- getList(int index,
- java.lang.Class<T> listType)
-
- Get a list of tags named with the given index.
- |
-
ListTag
- |
- getListTag(int index)
-
- Get a
- TagList named with the given index. |
-
long |
- getLong(int index)
-
- Get a long named with the given index.
- |
-
short |
- getShort(int index)
-
- Get a short named with the given index.
- |
-
java.lang.String |
- getString(int index)
-
- Get a string named with the given index.
- |
-
java.lang.Class<? extends Tag> |
- getType()
-
- Gets the type of item in this list.
- |
-
java.util.List<Tag> |
- getValue()
-
- Gets the value of this tag.
- |
-
ListTag
- |
- setValue(java.util.List<Tag> list)
-
- Create a new list tag with this tag's name and type.
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public ListTag(java.lang.Class<? extends Tag> type, - java.util.List<? extends Tag> value)-
type
- the type of tagvalue
- the value of the tagpublic java.lang.Class<? extends Tag> getType()-
public java.util.List<Tag> getValue()-
Tag
public ListTag setValue(java.util.List<Tag> list)-
list
- the new list@Nullable -public Tag getIfExists(int index)-
index
- the indexpublic byte[] getByteArray(int index)-
- If the index does not exist or its value is not a byte array tag, then an - empty byte array will be returned. -
index
- the indexpublic byte getByte(int index)-
- If the index does not exist or its value is not a byte tag, then
- 0
will be returned.
-
index
- the indexpublic double getDouble(int index)-
- If the index does not exist or its value is not a double tag, then
- 0
will be returned.
-
index
- the indexpublic double asDouble(int index)-
- If the index does not exist or its value is not a number, then 0
- will be returned.
-
index
- the indexpublic float getFloat(int index)-
- If the index does not exist or its value is not a float tag, then
- 0
will be returned.
-
index
- the indexpublic int[] getIntArray(int index)-
int[]
named with the given index.
-
-
- - If the index does not exist or its value is not an int array tag, then an - empty array will be returned. -
index
- the indexpublic int getInt(int index)-
- If the index does not exist or its value is not an int tag, then
- 0
will be returned.
-
index
- the indexpublic int asInt(int index)-
- If the index does not exist or its value is not a number, then 0
- will be returned.
-
index
- the indexpublic java.util.List<Tag> getList(int index)-
- If the index does not exist or its value is not a list tag, then an empty - list will be returned. -
index
- the indexpublic ListTag getListTag(int index)-
TagList
named with the given index.
-
-
- - If the index does not exist or its value is not a list tag, then an empty - tag list will be returned. -
index
- the indexpublic <T extends Tag> java.util.List<T> getList(int index, - java.lang.Class<T> listType)-
- If the index does not exist or its value is not a list tag, then an empty - list will be returned. If the given index references a list but the list - of of a different type, then an empty list will also be returned. -
T
- the NBT typeindex
- the indexlistType
- the class of the contained typepublic long getLong(int index)-
- If the index does not exist or its value is not a long tag, then
- 0
will be returned.
-
index
- the indexpublic long asLong(int index)-
- If the index does not exist or its value is not a number, then 0
- will be returned.
-
index
- the indexpublic short getShort(int index)-
- If the index does not exist or its value is not a short tag, then
- 0
will be returned.
-
index
- the indexpublic java.lang.String getString(int index)-
- If the index does not exist or its value is not a string tag, then
- ""
will be returned.
-
index
- the indexpublic java.lang.String toString()-
toString
in class java.lang.Object
public class ListTagBuilder
-extends java.lang.Object
- Modifier and Type | -Method and Description | -
---|---|
ListTagBuilder |
- add(Tag value)
-
- Add the given tag.
- |
-
ListTagBuilder |
- addAll(java.util.Collection<?
- extends Tag> value)
-
- Add all the tags in the given list.
- |
-
ListTag
- |
- build()
-
- Build an unnamed list tag with this builder's entries.
- |
-
ListTag
- |
- build(java.lang.String name)
-
- Build a new list tag with this builder's entries.
- |
-
static ListTagBuilder |
- create(java.lang.Class<?
- extends Tag> type)
-
- Create a new builder instance.
- |
-
static <T extends Tag> |
- createWith(T... entries)
-
- Create a new builder instance.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static ListTagBuilder create(java.lang.Class<? extends Tag> type)-
public static <T extends Tag> ListTagBuilder createWith(T... entries)-
public ListTagBuilder add(Tag value)-
value
- the tagpublic ListTagBuilder addAll(java.util.Collection<? extends Tag> value)-
value
- a list of tagspublic ListTag build()-
public ListTag build(java.lang.String name)-
name
- the name of the tagpublic final class LongTag -extends Tag-
TAG_Long
tag.Constructor and Description | -
---|
LongTag(long value)
-
- Creates the tag with an empty name.
- |
-
LongTag(java.lang.String name,
- long value)
-
- Creates the tag.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Long |
- getValue()
-
- Gets the value of this tag.
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public LongTag(long value)-
value
- the value of the tagpublic LongTag(java.lang.String name, - long value)-
name
- the name of the tagvalue
- the value of the tagpublic final class NBTConstants
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
static java.nio.charset.Charset |
- CHARSET
- |
-
static int |
- TYPE_BYTE
- |
-
static int |
- TYPE_BYTE_ARRAY
- |
-
static int |
- TYPE_COMPOUND
- |
-
static int |
- TYPE_DOUBLE
- |
-
static int |
- TYPE_END
- |
-
static int |
- TYPE_FLOAT
- |
-
static int |
- TYPE_INT
- |
-
static int |
- TYPE_INT_ARRAY
- |
-
static int |
- TYPE_LIST
- |
-
static int |
- TYPE_LONG
- |
-
static int |
- TYPE_SHORT
- |
-
static int |
- TYPE_STRING
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.Class<? extends Tag> |
- getClassFromType(int id)
-
- Convert a type ID to its corresponding
- Tag class.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static final java.nio.charset.Charset CHARSET-
public static final int TYPE_END-
public static final int TYPE_BYTE-
public static final int TYPE_SHORT-
public static final int TYPE_INT-
public static final int TYPE_LONG-
public static final int TYPE_FLOAT-
public static final int TYPE_DOUBLE-
public static final int TYPE_BYTE_ARRAY-
public static final int TYPE_STRING-
public static final int TYPE_LIST-
public static final int TYPE_COMPOUND-
public static final int TYPE_INT_ARRAY-
public final class NBTInputStream
-extends java.lang.Object
-implements java.io.Closeable
- Tag
- object.
-
-
- - The NBT format was created by Markus Persson, and the specification may be - found at - http://www.minecraft.net/docs/NBT.txt. -
Constructor and Description | -
---|
NBTInputStream(java.io.InputStream is)
-
- Creates a new
- NBTInputStream , which will source its
- data
- from the specified input stream.
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- close()
- |
-
Tag
- |
- readTag()
-
- Reads an NBT tag from the stream.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public NBTInputStream(java.io.InputStream is) - throws java.io.IOException-
NBTInputStream
, which will source its data
- from the specified input stream.
- is
- the input streamjava.io.IOException
- if an I/O error occurspublic Tag readTag() - throws java.io.IOException-
java.io.IOException
- if an I/O error occurs.public void close() - throws java.io.IOException-
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
- java.io.IOException
public final class NBTOutputStream
-extends java.lang.Object
-implements java.io.Closeable
-
- This class writes NBT, or Named Binary Tag
- Tag
objects to an underlying OutputStream
.
-
- The NBT format was created by Markus Persson, and the specification may be - found at - http://www.minecraft.net/docs/NBT.txt. -
Constructor and Description | -
---|
NBTOutputStream(java.io.OutputStream os)
-
- Creates a new
- NBTOutputStream , which will write data
- to the
- specified underlying output stream.
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- close()
- |
-
void |
- writeTag(Tag tag)
-
- Writes a tag.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public NBTOutputStream(java.io.OutputStream os) - throws java.io.IOException-
NBTOutputStream
, which will write data to
- the
- specified underlying output stream.
- os
- The output stream.java.io.IOException
- if an I/O error occurs.public void writeTag(Tag tag) - throws java.io.IOException-
tag
- The tag to write.java.io.IOException
- if an I/O error occurs.public void close() - throws java.io.IOException-
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
- java.io.IOException
public final class NBTUtils
-extends java.lang.Object
- Modifier and Type | -Method and Description | -
---|---|
static <T extends Tag>
- |
- getChildTag(java.util.Map<java.lang.String,Tag> items,
- java.lang.String key,
- java.lang.Class<T> expected)
-
- Get child tag of a NBT structure.
- |
-
static java.lang.Class<? extends Tag> |
- getTypeClass(int type)
-
- Gets the class of a type of tag.
- |
-
static int |
- getTypeCode(java.lang.Class<?
- extends Tag> clazz)
-
- Gets the type code of a tag class.
- |
-
static java.lang.String |
- getTypeName(java.lang.Class<?
- extends Tag> clazz)
-
- Gets the type name of a tag.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static java.lang.String getTypeName(java.lang.Class<? extends Tag> clazz)-
clazz
- the tag classpublic static int getTypeCode(java.lang.Class<? extends Tag> clazz)-
clazz
- the tag classjava.lang.IllegalArgumentException
- if the tag class is invalid.
- public static java.lang.Class<? extends Tag> getTypeClass(int type)-
type
- the typejava.lang.IllegalArgumentException
- if the tag type is invalid.
- public static <T extends Tag> T getChildTag(java.util.Map<java.lang.String,Tag> items, - java.lang.String key, - java.lang.Class<T> expected) - throws java.lang.IllegalArgumentException-
items
- the map to read fromkey
- the key to look forexpected
- the expected NBT class typeInvalidFormatException
java.lang.IllegalArgumentException
public final class ShortTag -extends Tag-
TAG_Short
tag.Constructor and Description | -
---|
ShortTag(short value)
-
- Creates the tag with an empty name.
- |
-
ShortTag(java.lang.String name,
- short value)
-
- Creates the tag.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Short |
- getValue()
-
- Gets the value of this tag.
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public ShortTag(short value)-
value
- the value of the tagpublic ShortTag(java.lang.String name, - short value)-
name
- the name of the tagvalue
- the value of the tagpublic final class StringTag -extends Tag-
TAG_String
tag.Constructor and Description | -
---|
StringTag(java.lang.String value)
-
- Creates the tag with an empty name.
- |
-
StringTag(java.lang.String name,
- java.lang.String value)
-
- Creates the tag.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- getValue()
-
- Gets the value of this tag.
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public StringTag(java.lang.String value)-
value
- the value of the tagpublic StringTag(java.lang.String name, - java.lang.String value)-
name
- the name of the tagvalue
- the value of the tagpublic abstract class Tag
-extends java.lang.Object
- Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- getName()
-
- Gets the name of this tag.
- |
-
abstract java.lang.Object |
- getValue()
-
- Gets the value of this tag.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public class WorldEditUtils
-extends java.lang.Object
- Constructor and Description | -
---|
WorldEditUtils()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
- setNBT(org.bukkit.World world,
- short id,
- byte data,
- int x,
- int y,
- int z,
- CompoundTag tag)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static void setNBT(org.bukkit.World world, - short id, - byte data, - int x, - int y, - int z, - CompoundTag tag)-
Class | -Description | -
---|---|
ByteArrayTag | -
- The
- TAG_Byte_Array tag. |
-
ByteTag | -
- The
- TAG_Byte tag. |
-
CompoundTag | -
- The
- TAG_Compound tag. |
-
CompoundTagBuilder | -
- Helps create compound tags.
- |
-
DoubleTag | -
- The
- TAG_Double tag. |
-
EndTag | -
- The
- TAG_End tag. |
-
FloatTag | -
- The
- TAG_Float tag. |
-
IntArrayTag | -
- The
- TAG_Int_Array tag. |
-
IntTag | -
- The
- TAG_Int tag. |
-
ListTag | -
- The
- TAG_List tag. |
-
ListTagBuilder | -
- Helps create list tags.
- |
-
LongTag | -
- The
- TAG_Long tag. |
-
NBTConstants | -
- A class which holds constant values.
- |
-
NBTInputStream | -
- This class reads NBT, or Named Binary Tag
- streams, and produces an object graph of subclasses of the
- Tag
- object.
- |
-
NBTOutputStream | -
-
- This class writes NBT, or Named Binary Tag
-
- Tag objects to an underlying OutputStream .
- |
-
NBTUtils | -
- A class which contains NBT-related utility methods.
- |
-
ShortTag | -
- The
- TAG_Short tag. |
-
StringTag | -
- The
- TAG_String tag. |
-
Tag | -
- Represents a NBT tag.
- |
-
WorldEditUtils | -- |
public class CDL
-extends java.lang.Object
- Constructor and Description | -
---|
CDL()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static JSONArray |
- rowToJSONArray(JSONTokener x)
-
- Produce a JSONArray of strings from a row of comma delimited
- values.
-
- |
-
static JSONObject |
- rowToJSONObject(JSONArray names,
- JSONTokener x)
-
- Produce a JSONObject from a row of comma delimited text, using a
- parallel JSONArray of strings to provides the names of the elements.
-
- |
-
static java.lang.String |
- rowToString(JSONArray ja)
-
- Produce a comma delimited text row from a JSONArray.
- |
-
static JSONArray |
- toJSONArray(JSONArray names,
- JSONTokener x)
-
- Produce a JSONArray of JSONObjects from a comma delimited text string
- using a supplied JSONArray as the source of element names.
-
- |
-
static JSONArray |
- toJSONArray(JSONArray names,
- java.lang.String string)
-
- Produce a JSONArray of JSONObjects from a comma delimited text string
- using a supplied JSONArray as the source of element names.
-
- |
-
static JSONArray |
- toJSONArray(JSONTokener x)
-
- Produce a JSONArray of JSONObjects from a comma delimited text
- string,
- using the first row as a source of names.
-
- |
-
static JSONArray |
- toJSONArray(java.lang.String string)
-
- Produce a JSONArray of JSONObjects from a comma delimited text
- string,
- using the first row as a source of names.
-
- |
-
static java.lang.String |
- toString(JSONArray ja)
-
- Produce a comma delimited text from a JSONArray of JSONObjects.
- |
-
static java.lang.String |
- toString(JSONArray names,
- JSONArray ja)
-
- Produce a comma delimited text from a JSONArray of JSONObjects using
- a provided list of names.
-
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static JSONArray rowToJSONArray(JSONTokener x) - throws JSONException-
x
- A JSONTokener of the source text.JSONException
- public static JSONObject rowToJSONObject(JSONArray names, - JSONTokener x) - throws JSONException-
names
- A JSONArray of names. This is commonly obtained from the
- first row of a comma delimited text file using the
- rowToJSONArray
- method.
- x
- A JSONTokener of the source text.JSONException
- public static java.lang.String rowToString(JSONArray ja)-
ja
- A JSONArray of strings.public static JSONArray toJSONArray(java.lang.String string) - throws JSONException-
string
- The comma delimited text.JSONException
- public static JSONArray toJSONArray(JSONTokener x) - throws JSONException-
x
- The JSONTokener containing the comma delimited text.JSONException
- public static JSONArray toJSONArray(JSONArray names, - java.lang.String string) - throws JSONException-
names
- A JSONArray of strings.string
- The comma delimited text.JSONException
- public static JSONArray toJSONArray(JSONArray names, - JSONTokener x) - throws JSONException-
names
- A JSONArray of strings.x
- A JSONTokener of the source text.JSONException
- public static java.lang.String toString(JSONArray ja) - throws JSONException-
ja
- A JSONArray of JSONObjects.JSONException
- public static java.lang.String toString(JSONArray names, - JSONArray ja) - throws JSONException-
names
- A JSONArray of strings.ja
- A JSONArray of JSONObjects.JSONException
- public class Cookie
-extends java.lang.Object
- Constructor and Description | -
---|
Cookie()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
- escape(java.lang.String string)
-
- Produce a copy of a string in which the characters '+', '%', '=',
- ';'
- and control characters are replaced with "%hh".
-
- |
-
static JSONObject |
- toJSONObject(java.lang.String string)
-
- Convert a cookie specification string into a JSONObject.
- |
-
static java.lang.String |
- toString(JSONObject jo)
-
- Convert a JSONObject into a cookie specification string.
- |
-
static java.lang.String |
- unescape(java.lang.String string)
-
- Convert
- % hh sequences to single characters,
- and
- convert plus to space.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static java.lang.String escape(java.lang.String string)-
string
- The source string.public static JSONObject toJSONObject(java.lang.String string) - throws JSONException-
string
- The cookie specification string.JSONException
- public static java.lang.String toString(JSONObject jo) - throws JSONException-
jo
- A JSONObjectJSONException
- public static java.lang.String unescape(java.lang.String string)-
%
hh sequences to single characters, and
- convert plus to space.
- string
- A string that may contain +
-
- (plus)
- and %
hh
- sequences.
- public class CookieList
-extends java.lang.Object
- Constructor and Description | -
---|
CookieList()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static JSONObject |
- toJSONObject(java.lang.String string)
-
- Convert a cookie list into a JSONObject.
- |
-
static java.lang.String |
- toString(JSONObject jo)
-
- Convert a JSONObject into a cookie list.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static JSONObject toJSONObject(java.lang.String string) - throws JSONException-
string
- A cookie list stringJSONException
- public static java.lang.String toString(JSONObject jo) - throws JSONException-
jo
- A JSONObjectJSONException
- public class HTTP
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
static java.lang.String |
- CRLF
-
- Carriage return/line feed.
- |
-
Constructor and Description | -
---|
HTTP()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static JSONObject |
- toJSONObject(java.lang.String string)
-
- Convert an HTTP header string into a JSONObject.
- |
-
static java.lang.String |
- toString(JSONObject jo)
-
- Convert a JSONObject into an HTTP header.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static final java.lang.String CRLF-
public static JSONObject toJSONObject(java.lang.String string) - throws JSONException-
- { - Method: "POST" (for example), - "Request-URI": "/" (for example), - "HTTP-Version": "HTTP/1.1" (for example) - } -- - A response header will contain - -
- { - "HTTP-Version": "HTTP/1.1" (for example), - "Status-Code": "200" (for example), - "Reason-Phrase": "OK" (for example) - } -- - In addition, the other parameters in the header will be captured, using - the HTTP field names as JSON names, so that - -
- Date: Sun, 26 May 2002 18:06:04 GMT - Cookie: Q=q2=PPEAsg--; B=677gi6ouf29bn&b=2&f=s - Cache-Control: no-cache -- - become - -
- {... - Date: "Sun, 26 May 2002 18:06:04 GMT", - Cookie: "Q=q2=PPEAsg--; B=677gi6ouf29bn&b=2&f=s", - "Cache-Control": "no-cache", - ...} -- - It does no further checking or conversion. It does not parse dates. - It does not do '%' transforms on URLs. -
string
- An HTTP header string.JSONException
- public static java.lang.String toString(JSONObject jo) - throws JSONException-
- { - Method: "POST" (for example), - "Request-URI": "/" (for example), - "HTTP-Version": "HTTP/1.1" (for example) - } -- - A response header must contain - -
- { - "HTTP-Version": "HTTP/1.1" (for example), - "Status-Code": "200" (for example), - "Reason-Phrase": "OK" (for example) - } -- - Any other members of the JSONObject will be output as HTTP fields. - The result will end with two CRLF pairs. -
jo
- A JSONObjectJSONException
-
- if the object does not contain enough
- information.
- public class HTTPTokener -extends JSONTokener-
Constructor and Description | -
---|
HTTPTokener(java.lang.String string)
-
- Construct an HTTPTokener from a string.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- nextToken()
-
- Get the next token or string.
- |
-
back,
- dehexchar,
- end, more,
- next,
- next,
- next,
- nextClean,
- nextString,
- nextTo,
- nextTo,
- nextValue,
- skipTo,
- syntaxError,
- toString
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public HTTPTokener(java.lang.String string)-
string
- A source string.public java.lang.String nextToken() - throws JSONException-
JSONException
- public class JSONArray
-extends java.lang.Object
- get
and opt
- methods for accessing the values by index, and put
methods for
- adding or replacing values. The values can be any of these types:
- Boolean
, JSONArray
, JSONObject
,
- Number
, String
, or the
- JSONObject.NULL object
.
-
- The constructor can convert a JSON text into a Java object. The
- toString
method converts to JSON text.
-
- A get
method returns a value if one can be found, and throws an
- exception if one cannot be found. An opt
method returns a
- default value instead of throwing an exception, and so is useful for
- obtaining optional values.
-
- The generic get()
and opt()
methods return an
- object which you can cast or query for type. There are also typed
- get
and opt
methods that do type checking and type
- coercion for you.
-
- The texts produced by the toString
methods strictly conform to
- JSON syntax rules. The constructors are more forgiving in the texts they will
- accept:
- ,
- (comma)
- may appear just
- before the closing bracket.
- null
value will be inserted when there is ,
-
- (comma)
- elision.
- '
- (single
- quote)
-
- .
- { } [ ] / \ : , #
and if they do not look like numbers and if
- they are not the reserved words true
, false
, or
- null
.
- Constructor and Description | -
---|
JSONArray()
-
- Construct an empty JSONArray.
- |
-
JSONArray(java.util.Collection<java.lang.Object> collection)
-
- Construct a JSONArray from a Collection.
- |
-
JSONArray(JSONTokener x)
-
- Construct a JSONArray from a JSONTokener.
- |
-
JSONArray(java.lang.Object array)
-
- Construct a JSONArray from an array
- |
-
JSONArray(java.lang.String source)
-
- Construct a JSONArray from a source JSON text.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Object |
- get(int index)
-
- Get the object value associated with an index.
- |
-
boolean |
- getBoolean(int index)
-
- Get the boolean value associated with an index.
- |
-
double |
- getDouble(int index)
-
- Get the double value associated with an index.
- |
-
int |
- getInt(int index)
-
- Get the int value associated with an index.
- |
-
JSONArray |
- getJSONArray(int index)
-
- Get the JSONArray associated with an index.
- |
-
JSONObject |
- getJSONObject(int index)
-
- Get the JSONObject associated with an index.
- |
-
long |
- getLong(int index)
-
- Get the long value associated with an index.
- |
-
java.lang.String |
- getString(int index)
-
- Get the string associated with an index.
- |
-
boolean |
- isNull(int index)
-
- Determine if the value is null.
- |
-
java.lang.String |
- join(java.lang.String separator)
-
- Make a string from the contents of this JSONArray.
- |
-
int |
- length()
-
- Get the number of elements in the JSONArray, included nulls.
- |
-
java.lang.Object |
- opt(int index)
-
- Get the optional object value associated with an index.
- |
-
boolean |
- optBoolean(int index)
-
- Get the optional boolean value associated with an index.
- |
-
boolean |
- optBoolean(int index,
- boolean defaultValue)
-
- Get the optional boolean value associated with an index.
- |
-
double |
- optDouble(int index)
-
- Get the optional double value associated with an index.
- |
-
double |
- optDouble(int index,
- double defaultValue)
-
- Get the optional double value associated with an index.
- |
-
int |
- optInt(int index)
-
- Get the optional int value associated with an index.
- |
-
int |
- optInt(int index,
- int defaultValue)
-
- Get the optional int value associated with an index.
- |
-
JSONArray |
- optJSONArray(int index)
-
- Get the optional JSONArray associated with an index.
- |
-
JSONObject |
- optJSONObject(int index)
-
- Get the optional JSONObject associated with an index.
- |
-
long |
- optLong(int index)
-
- Get the optional long value associated with an index.
- |
-
long |
- optLong(int index,
- long defaultValue)
-
- Get the optional long value associated with an index.
- |
-
java.lang.String |
- optString(int index)
-
- Get the optional string value associated with an index.
- |
-
java.lang.String |
- optString(int index,
- java.lang.String defaultValue)
-
- Get the optional string associated with an index.
- |
-
JSONArray |
- put(boolean value)
-
- Append a boolean value.
- |
-
JSONArray |
- put(java.util.Collection<java.lang.Object> value)
-
- Put a value in the JSONArray, where the value will be a JSONArray which
- is produced from a Collection.
-
- |
-
JSONArray |
- put(double value)
-
- Append a double value.
- |
-
JSONArray |
- put(int value)
-
- Append an int value.
- |
-
JSONArray |
- put(int index,
- boolean value)
-
- Put or replace a boolean value in the JSONArray.
- |
-
JSONArray |
- put(int index,
- java.util.Collection<java.lang.Object> value)
-
- Put a value in the JSONArray, where the value will be a JSONArray which
- is produced from a Collection.
-
- |
-
JSONArray |
- put(int index,
- double value)
-
- Put or replace a double value.
- |
-
JSONArray |
- put(int index,
- int value)
-
- Put or replace an int value.
- |
-
JSONArray |
- put(int index,
- long value)
-
- Put or replace a long value.
- |
-
JSONArray |
- put(int index,
- java.util.Map<java.lang.String,java.lang.Object> value)
-
- Put a value in the JSONArray, where the value will be a JSONObject that
- is produced from a Map.
-
- |
-
JSONArray |
- put(int index,
- java.lang.Object value)
-
- Put or replace an object value in the JSONArray.
- |
-
JSONArray |
- put(long value)
-
- Append an long value.
- |
-
JSONArray |
- put(java.util.Map<java.lang.String,java.lang.Object> value)
-
- Put a value in the JSONArray, where the value will be a JSONObject which
- is produced from a Map.
-
- |
-
JSONArray |
- put(java.lang.Object value)
-
- Append an object value.
- |
-
java.lang.Object |
- remove(int index)
-
- Remove an index and close the hole.
- |
-
boolean |
- similar(java.lang.Object other)
-
- Determine if two JSONArrays are similar.
- |
-
JSONObject |
- toJSONObject(JSONArray names)
-
- Produce a JSONObject by combining a JSONArray of names with the values of
- this JSONArray.
-
- |
-
java.lang.String |
- toString()
-
- Make a JSON text of this JSONArray.
- |
-
java.lang.String |
- toString(int indentFactor)
-
- Make a prettyprinted JSON text of this JSONArray.
- |
-
java.io.Writer |
- write(java.io.Writer writer)
-
- Write the contents of the JSONArray as JSON text to a writer.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public JSONArray()-
public JSONArray(JSONTokener x) - throws JSONException-
x
- A JSONTokenerJSONException
- If there is a
- syntax error.
- public JSONArray(java.lang.String source) - throws JSONException-
source
- A string that begins with [
- (left
- bracket)
-
- and ends with ]
-
- (right bracket)
- .
- JSONException
- If there is a
- syntax error.
- public JSONArray(java.util.Collection<java.lang.Object> collection)-
collection
- A Collection.public JSONArray(java.lang.Object array) - throws JSONException-
JSONException
- If not an
- array.
- public java.lang.Object get(int index) - throws JSONException-
index
- The index must be between 0 and length() - 1.JSONException
- If there is no value
- for the index.
- public boolean getBoolean(int index) - throws JSONException-
index
- The index must be between 0 and length() - 1.JSONException
- If there is no value
- for the index or if the value is not
- convertible to boolean.
- public double getDouble(int index) - throws JSONException-
index
- The index must be between 0 and length() - 1.JSONException
- If the key is not
- found or if the value cannot be converted
- to a number.
- public int getInt(int index) - throws JSONException-
index
- The index must be between 0 and length() - 1.JSONException
- If the key is not
- found or if the value is not a number.
- public JSONArray getJSONArray(int index) - throws JSONException-
index
- The index must be between 0 and length() - 1.JSONException
- If there is no value
- for the index. or if the value is not a
- JSONArray
- public JSONObject getJSONObject(int index) - throws JSONException-
index
- subscriptJSONException
- If there is no value
- for the index or if the value is not a
- JSONObject
- public long getLong(int index) - throws JSONException-
index
- The index must be between 0 and length() - 1.JSONException
- If the key is not
- found or if the value cannot be converted
- to a number.
- public java.lang.String getString(int index) - throws JSONException-
index
- The index must be between 0 and length() - 1.JSONException
- If there is no string
- value for the index.
- public boolean isNull(int index)-
index
- The index must be between 0 and length() - 1.public java.lang.String join(java.lang.String separator) - throws JSONException-
separator
string is inserted between each element. Warning:
- This method assumes that the data structure is acyclical.
- separator
- A string that will be inserted between the elements.JSONException
- If the array contains
- an invalid number.
- public int length()-
public java.lang.Object opt(int index)-
index
- The index must be between 0 and length() - 1.public boolean optBoolean(int index)-
index
- The index must be between 0 and length() - 1.public boolean optBoolean(int index, - boolean defaultValue)-
index
- The index must be between 0 and length() - 1.defaultValue
- A boolean default.public double optDouble(int index)-
index
- The index must be between 0 and length() - 1.public double optDouble(int index, - double defaultValue)-
index
- subscriptdefaultValue
- The default value.public int optInt(int index)-
index
- The index must be between 0 and length() - 1.public int optInt(int index, - int defaultValue)-
index
- The index must be between 0 and length() - 1.defaultValue
- The default value.public JSONArray optJSONArray(int index)-
index
- subscriptpublic JSONObject optJSONObject(int index)-
index
- The index must be between 0 and length() - 1.public long optLong(int index)-
index
- The index must be between 0 and length() - 1.public long optLong(int index, - long defaultValue)-
index
- The index must be between 0 and length() - 1.defaultValue
- The default value.public java.lang.String optString(int index)-
index
- The index must be between 0 and length() - 1.public java.lang.String optString(int index, - java.lang.String defaultValue)-
index
- The index must be between 0 and length() - 1.defaultValue
- The default value.public JSONArray put(boolean value)-
value
- A boolean value.public JSONArray put(java.util.Collection<java.lang.Object> value)-
value
- A Collection value.public JSONArray put(double value) - throws JSONException-
value
- A double value.JSONException
- if the value is not
- finite.
- public JSONArray put(int value)-
value
- An int value.public JSONArray put(long value)-
value
- A long value.public JSONArray put(java.util.Map<java.lang.String,java.lang.Object> value)-
value
- A Map value.public JSONArray put(java.lang.Object value)-
value
- An object value. The value should be a Boolean, Double,
- Integer, JSONArray, JSONObject, Long, or String, or the
- JSONObject.NULL object.
- public JSONArray put(int index, - boolean value) - throws JSONException-
index
- The subscript.value
- A boolean value.JSONException
- If the index is
- negative.
- public JSONArray put(int index, - java.util.Collection<java.lang.Object> value) - throws JSONException-
index
- The subscript.value
- A Collection value.JSONException
- If the index is
- negative or if the value is not finite.
- public JSONArray put(int index, - double value) - throws JSONException-
index
- The subscript.value
- A double value.JSONException
- If the index is
- negative or if the value is not finite.
- public JSONArray put(int index, - int value) - throws JSONException-
index
- The subscript.value
- An int value.JSONException
- If the index is
- negative.
- public JSONArray put(int index, - long value) - throws JSONException-
index
- The subscript.value
- A long value.JSONException
- If the index is
- negative.
- public JSONArray put(int index, - java.util.Map<java.lang.String,java.lang.Object> value) - throws JSONException-
index
- The subscript.value
- The Map value.JSONException
- If the index is
- negative or if the the value is an invalid
- number.
- public JSONArray put(int index, - java.lang.Object value) - throws JSONException-
index
- The subscript.value
- The value to put into the array. The value should be a
- Boolean, Double, Integer, JSONArray, JSONObject, Long, or
- String, or the JSONObject.NULL object.
- JSONException
- If the index is
- negative or if the the value is an invalid
- number.
- public java.lang.Object remove(int index)-
index
- The index of the element to be removed.public boolean similar(java.lang.Object other)-
other
- The other JSONArraypublic JSONObject toJSONObject(JSONArray names) - throws JSONException-
names
- A JSONArray containing a list of key strings. These will be
- paired with the values.
- JSONException
- If any of the names
- are null.
- public java.lang.String toString()-
toString
in class java.lang.Object
public java.lang.String toString(int indentFactor) - throws JSONException-
indentFactor
- The number of spaces to add to each level of indentation.[
- (left
- bracket)
-
- and ending with ]
-
- (right bracket)
- .
- JSONException
public java.io.Writer write(java.io.Writer writer) - throws JSONException-
JSONException
public class JSONException
-extends java.lang.RuntimeException
- Constructor and Description | -
---|
JSONException(java.lang.String message)
-
- Constructs a JSONException with an explanatory message.
- |
-
JSONException(java.lang.Throwable cause)
-
- Constructs a new JSONException with the specified cause.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Throwable |
- getCause()
-
- Returns the cause of this exception or null if the cause is
- nonexistent
- or unknown.
-
- |
-
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace,
- getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace,
- setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public JSONException(java.lang.String message)-
message
- Detail about the reason for the exception.public JSONException(java.lang.Throwable cause)-
cause
- The cause.public java.lang.Throwable getCause()-
getCause
in class java.lang.Throwable
public class JSONML
-extends java.lang.Object
- Constructor and Description | -
---|
JSONML()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static JSONArray |
- toJSONArray(java.lang.String string)
-
- Convert a well-formed (but not necessarily valid) XML string into a
- JSONArray using the JsonML transform.
-
- |
-
static JSONArray |
- toJSONArray(XMLTokener x)
-
- Convert a well-formed (but not necessarily valid) XML string into a
- JSONArray using the JsonML transform.
-
- |
-
static JSONObject |
- toJSONObject(java.lang.String string)
-
- Convert a well-formed (but not necessarily valid) XML string into a
- JSONObject using the JsonML transform.
-
- |
-
static JSONObject |
- toJSONObject(XMLTokener x)
-
- Convert a well-formed (but not necessarily valid) XML string into a
- JSONObject using the JsonML transform.
-
- |
-
static java.lang.String |
- toString(JSONArray ja)
-
- Reverse the JSONML transformation, making an XML text from a
- JSONArray.
-
- |
-
static java.lang.String |
- toString(JSONObject jo)
-
- Reverse the JSONML transformation, making an XML text from a
- JSONObject.
-
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static JSONArray toJSONArray(java.lang.String string) - throws JSONException-
<[ [ ]]>
are ignored.
- string
- The source string.JSONException
- public static JSONArray toJSONArray(XMLTokener x) - throws JSONException-
<[ [ ]]>
are ignored.
- x
- An XMLTokener.JSONException
- public static JSONObject toJSONObject(XMLTokener x) - throws JSONException-
<[ [ ]]>
are ignored.
- x
- An XMLTokener of the XML source text.JSONException
- public static JSONObject toJSONObject(java.lang.String string) - throws JSONException-
<[ [ ]]>
are ignored.
- string
- The XML source text.JSONException
- public static java.lang.String toString(JSONArray ja) - throws JSONException-
ja
- A JSONArray.JSONException
- public static java.lang.String toString(JSONObject jo) - throws JSONException-
jo
- A JSONObject.JSONException
- public class JSONObject
-extends java.lang.Object
- get
and opt
methods for accessing
- the values by name, and put
methods for adding or replacing
- values by name. The values can be any of these types: Boolean
,
- JSONArray
, JSONObject
, Number
,
- String
, or the JSONObject.NULL
object. A
- JSONObject constructor can be used to convert an external form JSON text
- into an internal form whose values can be retrieved with the get
- and opt
methods, or to convert values into a
- JSON text using the put
and toString
methods. A
- get
method returns a value if one can be found, and throws an
- exception if one cannot be found. An opt
method returns a
- default value instead of throwing an exception, and so is useful for
- obtaining optional values.
-
- The generic get()
and opt()
methods return an
- object, which you can cast or query for type. There are also typed
- get
and opt
methods that do type checking and type
- coercion for you. The opt methods differ from the get methods in that they do
- not throw. Instead, they return a specified value, such as null.
-
- The put
methods add or replace values in an object. For example,
-
- - myString = new JSONObject().put("JSON", "Hello, World!").toString(); -- - produces the string
{"JSON": "Hello, World"}
.
-
- The texts produced by the toString
methods strictly conform to
- the JSON syntax rules. The constructors are more forgiving in the texts they
- will accept:
- ,
- (comma)
- may appear just
- before the closing brace.
- '
- (single
- quote)
-
- .
- { } [ ] / \ : , #
and if they do not look like numbers and if
- they are not the reserved words true
, false
, or
- null
.
- Modifier and Type | -Field and Description | -
---|---|
static java.lang.Object |
- NULL
-
- It is sometimes more convenient and less ambiguous to have a
-
- NULL object than to use Java's null value.
- |
-
Constructor and Description | -
---|
JSONObject()
-
- Construct an empty JSONObject.
- |
-
JSONObject(JSONObject jo,
- java.lang.String[] names)
-
- Construct a JSONObject from a subset of another JSONObject.
- |
-
JSONObject(JSONTokener x)
-
- Construct a JSONObject from a JSONTokener.
- |
-
JSONObject(java.util.Map<java.lang.String,java.lang.Object> map)
-
- Construct a JSONObject from a Map.
- |
-
JSONObject(java.lang.Object bean)
-
- Construct a JSONObject from an Object using bean getters.
- |
-
JSONObject(java.lang.Object object,
- java.lang.String[] names)
-
- Construct a JSONObject from an Object, using reflection to find the
- public members.
-
- |
-
JSONObject(java.lang.String source)
-
- Construct a JSONObject from a source JSON text string.
- |
-
JSONObject(java.lang.String baseName,
- java.util.Locale locale)
-
- Construct a JSONObject from a ResourceBundle.
- |
-
Modifier and Type | -Method and Description | -
---|---|
JSONObject |
- accumulate(java.lang.String key,
- java.lang.Object value)
-
- Accumulate values under a key.
- |
-
JSONObject |
- append(java.lang.String key,
- java.lang.Object value)
-
- Append values to the array under a key.
- |
-
static java.lang.String |
- doubleToString(double d)
-
- Produce a string from a double.
- |
-
java.lang.Object |
- get(java.lang.String key)
-
- Get the value object associated with a key.
- |
-
boolean |
- getBoolean(java.lang.String key)
-
- Get the boolean value associated with a key.
- |
-
double |
- getDouble(java.lang.String key)
-
- Get the double value associated with a key.
- |
-
int |
- getInt(java.lang.String key)
-
- Get the int value associated with a key.
- |
-
JSONArray |
- getJSONArray(java.lang.String key)
-
- Get the JSONArray value associated with a key.
- |
-
JSONObject |
- getJSONObject(java.lang.String key)
-
- Get the JSONObject value associated with a key.
- |
-
long |
- getLong(java.lang.String key)
-
- Get the long value associated with a key.
- |
-
static java.lang.String[] |
- getNames(JSONObject jo)
-
- Get an array of field names from a JSONObject.
- |
-
static java.lang.String[] |
- getNames(java.lang.Object object)
-
- Get an array of field names from an Object.
- |
-
java.lang.String |
- getString(java.lang.String key)
-
- Get the string associated with a key.
- |
-
boolean |
- has(java.lang.String key)
-
- Determine if the JSONObject contains a specific key.
- |
-
JSONObject |
- increment(java.lang.String key)
-
- Increment a property of a JSONObject.
- |
-
boolean |
- isNull(java.lang.String key)
-
- Determine if the value associated with the key is null or if there is no
- value.
-
- |
-
java.util.Iterator<java.lang.String> |
- keys()
-
- Get an enumeration of the keys of the JSONObject.
- |
-
java.util.Set<java.lang.String> |
- keySet()
-
- Get a set of keys of the JSONObject.
- |
-
int |
- length()
-
- Get the number of keys stored in the JSONObject.
- |
-
JSONArray |
- names()
-
- Produce a JSONArray containing the names of the elements of this
- JSONObject.
-
- |
-
static java.lang.String |
- numberToString(java.lang.Number number)
-
- Produce a string from a Number.
- |
-
java.lang.Object |
- opt(java.lang.String key)
-
- Get an optional value associated with a key.
- |
-
boolean |
- optBoolean(java.lang.String key)
-
- Get an optional boolean associated with a key.
- |
-
boolean |
- optBoolean(java.lang.String key,
- boolean defaultValue)
-
- Get an optional boolean associated with a key.
- |
-
double |
- optDouble(java.lang.String key)
-
- Get an optional double associated with a key, or NaN if there is no such
- key or if its value is not a number.
-
- |
-
double |
- optDouble(java.lang.String key,
- double defaultValue)
-
- Get an optional double associated with a key, or the defaultValue if
- there is no such key or if its value is not a number.
-
- |
-
int |
- optInt(java.lang.String key)
-
- Get an optional int value associated with a key, or zero if there is no
- such key or if the value is not a number.
-
- |
-
int |
- optInt(java.lang.String key,
- int defaultValue)
-
- Get an optional int value associated with a key, or the default if there
- is no such key or if the value is not a number.
-
- |
-
JSONArray |
- optJSONArray(java.lang.String key)
-
- Get an optional JSONArray associated with a key.
- |
-
JSONObject |
- optJSONObject(java.lang.String key)
-
- Get an optional JSONObject associated with a key.
- |
-
long |
- optLong(java.lang.String key)
-
- Get an optional long value associated with a key, or zero if there is no
- such key or if the value is not a number.
-
- |
-
long |
- optLong(java.lang.String key,
- long defaultValue)
-
- Get an optional long value associated with a key, or the default if there
- is no such key or if the value is not a number.
-
- |
-
java.lang.String |
- optString(java.lang.String key)
-
- Get an optional string associated with a key.
- |
-
java.lang.String |
- optString(java.lang.String key,
- java.lang.String defaultValue)
-
- Get an optional string associated with a key.
- |
-
JSONObject |
- put(java.lang.String key,
- boolean value)
-
- Put a key/boolean pair in the JSONObject.
- |
-
JSONObject |
- put(java.lang.String key,
- java.util.Collection<java.lang.Object> value)
-
- Put a key/value pair in the JSONObject, where the value will be a
- JSONArray which is produced from a Collection.
-
- |
-
JSONObject |
- put(java.lang.String key,
- double value)
-
- Put a key/double pair in the JSONObject.
- |
-
JSONObject |
- put(java.lang.String key,
- int value)
-
- Put a key/int pair in the JSONObject.
- |
-
JSONObject |
- put(java.lang.String key,
- long value)
-
- Put a key/long pair in the JSONObject.
- |
-
JSONObject |
- put(java.lang.String key,
- java.util.Map<java.lang.String,java.lang.Object> value)
-
- Put a key/value pair in the JSONObject, where the value will be a
- JSONObject which is produced from a Map.
-
- |
-
JSONObject |
- put(java.lang.String key,
- java.lang.Object value)
-
- Put a key/value pair in the JSONObject.
- |
-
JSONObject |
- putOnce(java.lang.String key,
- java.lang.Object value)
-
- Put a key/value pair in the JSONObject, but only if the key and the value
- are both non-null, and only if there is not already a member with that
- name.
-
- |
-
JSONObject |
- putOpt(java.lang.String key,
- java.lang.Object value)
-
- Put a key/value pair in the JSONObject, but only if the key and the value
- are both non-null.
-
- |
-
static java.lang.String |
- quote(java.lang.String string)
-
- Produce a string in double quotes with backslash sequences in all the
- right places.
-
- |
-
static java.io.Writer |
- quote(java.lang.String string,
- java.io.Writer w) |
-
java.lang.Object |
- remove(java.lang.String key)
-
- Remove a name and its value, if present.
- |
-
boolean |
- similar(java.lang.Object other)
-
- Determine if two JSONObjects are similar.
- |
-
static java.lang.Object |
- stringToValue(java.lang.String string)
-
- Try to convert a string into a number, boolean, or null.
- |
-
static void |
- testValidity(java.lang.Object o)
-
- Throw an exception if the object is a NaN or infinite number.
- |
-
JSONArray |
- toJSONArray(JSONArray names)
-
- Produce a JSONArray containing the values of the members of this
- JSONObject.
-
- |
-
java.lang.String |
- toString()
-
- Make a JSON text of this JSONObject.
- |
-
java.lang.String |
- toString(int indentFactor)
-
- Make a prettyprinted JSON text of this JSONObject.
- |
-
static java.lang.String |
- valueToString(java.lang.Object value)
-
- Make a JSON text of an Object value.
- |
-
static java.lang.Object |
- wrap(java.lang.Object object)
-
- Wrap an object, if necessary.
- |
-
java.io.Writer |
- write(java.io.Writer writer)
-
- Write the contents of the JSONObject as JSON text to a writer.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final java.lang.Object NULL-
NULL
object than to use Java's null
value.
- JSONObject.NULL.equals(null)
returns true
.
- JSONObject.NULL.toString()
returns "null"
.
- public JSONObject()-
public JSONObject(JSONObject jo, - java.lang.String[] names)-
jo
- A JSONObject.names
- An array of strings.JSONException
JSONException
- If a value is
- a non-finite number or if a name is
- duplicated.
- public JSONObject(JSONTokener x) - throws JSONException-
x
- A JSONTokener object containing the source string.JSONException
- If there is a
- syntax error in the source string or a
- duplicated key.
- public JSONObject(java.util.Map<java.lang.String,java.lang.Object> map)-
map
- A map object that can be used to initialize the contents of
- the JSONObject.
- JSONException
public JSONObject(java.lang.Object bean)-
"get"
or
- "is"
followed by an uppercase letter, the method is invoked,
- and a key and the value returned from the getter method are put into the
- new JSONObject.
-
- The key is formed by removing the "get"
or "is"
- prefix. If the second remaining character is not upper case, then the
- first character is converted to lower case.
-
- For example, if an object has a method named "getName"
, and
- if the result of calling object.getName()
is
- "Larry Fine"
, then the JSONObject will contain
- "name": "Larry Fine"
.
- bean
- An object that has getter methods that should be used to make
- a JSONObject.
- public JSONObject(java.lang.Object object, - java.lang.String[] names)-
object
- An object that has fields that should be used to make a
- JSONObject.
- names
- An array of strings, the names of the fields to be obtained
- from the object.
- public JSONObject(java.lang.String source) - throws JSONException-
source
- A string beginning with {
- (left
- brace)
-
- and ending with }
-
- (right brace)
- .
- JSONException
- If there is a
- syntax error in the source string or a
- duplicated key.
- public JSONObject(java.lang.String baseName, - java.util.Locale locale) - throws JSONException-
baseName
- The ResourceBundle base name.locale
- The Locale to load the ResourceBundle for.JSONException
- If any
- JSONExceptions are detected.
- public static java.lang.String doubleToString(double d)-
d
- A double.public static java.lang.String[] getNames(JSONObject jo)-
public static java.lang.String[] getNames(java.lang.Object object)-
public static java.lang.String numberToString(java.lang.Number number) - throws JSONException-
number
- A NumberJSONException
- If n is a
- non-finite number.
- public static java.lang.String quote(java.lang.String string)-
string
- A Stringpublic static java.io.Writer quote(java.lang.String string, - java.io.Writer w) - throws java.io.IOException-
java.io.IOException
public static java.lang.Object stringToValue(java.lang.String string)-
string
- A String.public static void testValidity(java.lang.Object o) - throws JSONException-
o
- The object to test.JSONException
- If o is a non-finite
- number.
- public static java.lang.String valueToString(java.lang.Object value) - throws JSONException-
value
- The value to be serialized.{
- (left
- brace)
-
- and ending with }
- (right
- brace)
-
- .
- JSONException
- If the value is or
- contains an invalid number.
- public static java.lang.Object wrap(java.lang.Object object)-
object
- The object to wrappublic JSONObject accumulate(java.lang.String key, - java.lang.Object value) - throws JSONException-
key
- A key string.value
- An object to be accumulated under the key.JSONException
- If the value is an
- invalid number or if the key is null.
- public JSONObject append(java.lang.String key, - java.lang.Object value) - throws JSONException-
key
- A key string.value
- An object to be accumulated under the key.JSONException
- If the key is null or
- if the current value associated with
- the key is not a JSONArray.
- public java.lang.Object get(java.lang.String key) - throws JSONException-
key
- A key string.JSONException
- if the key is not
- found.
- public boolean getBoolean(java.lang.String key) - throws JSONException-
key
- A key string.JSONException
- if the value is not a
- Boolean or the String "true" or
- "false".
- public double getDouble(java.lang.String key) - throws JSONException-
key
- A key string.JSONException
- if the key is not
- found or if the value is not a Number
- object and cannot be converted to a number.
- public int getInt(java.lang.String key) - throws JSONException-
key
- A key string.JSONException
- if the key is not
- found or if the value cannot be converted
- to an integer.
- public JSONArray getJSONArray(java.lang.String key) - throws JSONException-
key
- A key string.JSONException
- if the key is not
- found or if the value is not a JSONArray.
- public JSONObject getJSONObject(java.lang.String key) - throws JSONException-
key
- A key string.JSONException
- if the key is not
- found or if the value is not a JSONObject.
- public long getLong(java.lang.String key) - throws JSONException-
key
- A key string.JSONException
- if the key is not
- found or if the value cannot be converted
- to a long.
- public java.lang.String getString(java.lang.String key) - throws JSONException-
key
- A key string.JSONException
- if there is no string
- value for the key.
- public boolean has(java.lang.String key)-
key
- A key string.public JSONObject increment(java.lang.String key) - throws JSONException-
key
- A key string.JSONException
- If there is already a
- property with this name that is not an
- Integer, Long, Double, or Float.
- public boolean isNull(java.lang.String key)-
key
- A key string.public java.util.Iterator<java.lang.String> keys()-
public java.util.Set<java.lang.String> keySet()-
public int length()-
public JSONArray names()-
public java.lang.Object opt(java.lang.String key)-
key
- A key string.public boolean optBoolean(java.lang.String key)-
key
- A key string.public boolean optBoolean(java.lang.String key, - boolean defaultValue)-
key
- A key string.defaultValue
- The default.public double optDouble(java.lang.String key)-
key
- A string which is the key.public double optDouble(java.lang.String key, - double defaultValue)-
key
- A key string.defaultValue
- The default.public int optInt(java.lang.String key)-
key
- A key string.public int optInt(java.lang.String key, - int defaultValue)-
key
- A key string.defaultValue
- The default.public JSONArray optJSONArray(java.lang.String key)-
key
- A key string.public JSONObject optJSONObject(java.lang.String key)-
key
- A key string.public long optLong(java.lang.String key)-
key
- A key string.public long optLong(java.lang.String key, - long defaultValue)-
key
- A key string.defaultValue
- The default.public java.lang.String optString(java.lang.String key)-
key
- A key string.public java.lang.String optString(java.lang.String key, - java.lang.String defaultValue)-
key
- A key string.defaultValue
- The default.public JSONObject put(java.lang.String key, - boolean value) - throws JSONException-
key
- A key string.value
- A boolean which is the value.JSONException
- If the key is null.
- public JSONObject put(java.lang.String key, - java.util.Collection<java.lang.Object> value) - throws JSONException-
key
- A key string.value
- A Collection value.JSONException
public JSONObject put(java.lang.String key, - double value) - throws JSONException-
key
- A key string.value
- A double which is the value.JSONException
- If the key is null or
- if the number is invalid.
- public JSONObject put(java.lang.String key, - int value) - throws JSONException-
key
- A key string.value
- An int which is the value.JSONException
- If the key is null.
- public JSONObject put(java.lang.String key, - long value) - throws JSONException-
key
- A key string.value
- A long which is the value.JSONException
- If the key is null.
- public JSONObject put(java.lang.String key, - java.util.Map<java.lang.String,java.lang.Object> value) - throws JSONException-
key
- A key string.value
- A Map value.JSONException
public JSONObject put(java.lang.String key, - java.lang.Object value) - throws JSONException-
key
- A key string.value
- An object which is the value. It should be of one of these
- types: Boolean, Double, Integer, JSONArray, JSONObject, Long,
- String, or the JSONObject.NULL object.
- JSONException
- If the value is
- non-finite number or if the key is null.
- public JSONObject putOnce(java.lang.String key, - java.lang.Object value) - throws JSONException-
key
- stringvalue
- objectJSONException
- if the key is a
- duplicate
- public JSONObject putOpt(java.lang.String key, - java.lang.Object value) - throws JSONException-
key
- A key string.value
- An object which is the value. It should be of one of these
- types: Boolean, Double, Integer, JSONArray, JSONObject, Long,
- String, or the JSONObject.NULL object.
- JSONException
- If the value is a
- non-finite number.
- public java.lang.Object remove(java.lang.String key)-
key
- The name to be removed.public boolean similar(java.lang.Object other)-
other
- The other JSONObjectpublic JSONArray toJSONArray(JSONArray names) - throws JSONException-
names
- A JSONArray containing a list of key strings. This determines
- the sequence of the values in the result.
- JSONException
- If any of the values
- are non-finite numbers.
- public java.lang.String toString()-
toString
in class java.lang.Object
{
- (left
- brace)
-
- and ending with }
- (right
- brace)
-
- .
- public java.lang.String toString(int indentFactor) - throws JSONException-
indentFactor
- The number of spaces to add to each level of indentation.{
- (left
- brace)
-
- and ending with }
- (right
- brace)
-
- .
- JSONException
- If the object
- contains an invalid number.
- public java.io.Writer write(java.io.Writer writer) - throws JSONException-
JSONException
public interface JSONString
- JSONString
interface allows a toJSONString()
- method so that a class can change the behavior of
- JSONObject.toString()
, JSONArray.toString()
,
- and JSONWriter.value(
Object)
. The
- toJSONString
method will be used instead of the default behavior
- of using the Object's toString()
method and quoting the result.
- Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- toJSONString()
-
- The
- toJSONString method allows a class to produce
- its own
- JSON
- serialization.
- |
-
public class JSONStringer -extends JSONWriter-
value
method for appending
- values to the text, and a key
method for adding keys before
- values in objects. There are array
and endArray
- methods that make and bound array values, and object
and
- endObject
methods which make and bound object values. All of
- these methods return the JSONWriter instance, permitting cascade style. For
- example,
-
- - myString = new JSONStringer().object().key("JSON").value("Hello, World!").endObject().toString(); -- - which produces the string - -
- {"JSON":"Hello, World!"} -- - The first method called must be
array
or object
.
- There are no methods for adding commas or colons. JSONStringer adds them for
- you. Objects and arrays can be nested up to 20 levels deep.
-
- This can sometimes be easier than using a JSONObject to build a string.
- mode, writer
- Constructor and Description | -
---|
JSONStringer()
-
- Make a fresh JSONStringer.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- toString()
-
- Return the JSON text.
- |
-
array,
- endArray,
- endObject,
- key,
- object,
- value,
- value,
- value,
- value
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public JSONStringer()-
public java.lang.String toString()-
null
if there was a
- problem in the construction of the JSON text (such as the calls to
- array
were not properly balanced with calls to
- endArray
).
- toString
in class java.lang.Object
public class JSONTokener
-extends java.lang.Object
- Constructor and Description | -
---|
JSONTokener(java.io.InputStream inputStream)
-
- Construct a JSONTokener from an InputStream.
- |
-
JSONTokener(java.io.Reader reader)
-
- Construct a JSONTokener from a Reader.
- |
-
JSONTokener(java.lang.String s)
-
- Construct a JSONTokener from a string.
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- back()
-
- Back up one character.
- |
-
static int |
- dehexchar(char c)
-
- Get the hex value of a character (base16).
- |
-
boolean |
- end()
- |
-
boolean |
- more()
-
- Determine if the source string still contains characters that next()
- can consume.
-
- |
-
char |
- next()
-
- Get the next character in the source string.
- |
-
char |
- next(char c)
-
- Consume the next character, and check that it matches a specified
- character.
-
- |
-
java.lang.String |
- next(int n)
-
- Get the next n characters.
- |
-
char |
- nextClean()
-
- Get the next char in the string, skipping whitespace.
- |
-
java.lang.String |
- nextString(char quote)
-
- Return the characters up to the next close quote character.
- |
-
java.lang.String |
- nextTo(char delimiter)
-
- Get the text up but not including the specified character or the
- end of line, whichever comes first.
-
- |
-
java.lang.String |
- nextTo(java.lang.String delimiters)
-
- Get the text up but not including one of the specified delimiter
- characters or the end of line, whichever comes first.
-
- |
-
java.lang.Object |
- nextValue()
-
- Get the next value.
- |
-
char |
- skipTo(char to)
-
- Skip characters until the next character is the requested
- character.
-
- |
-
JSONException |
- syntaxError(java.lang.String message)
-
- Make a JSONException to signal a syntax error.
- |
-
java.lang.String |
- toString()
-
- Make a printable string of this JSONTokener.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public JSONTokener(java.io.Reader reader)-
reader
- A reader.public JSONTokener(java.io.InputStream inputStream) - throws JSONException-
inputStream
- The source.JSONException
public JSONTokener(java.lang.String s)-
s
- A source string.public static int dehexchar(char c)-
c
- A character between '0' and '9' or between 'A' and 'F' or
- between 'a' and 'f'.
- public void back() - throws JSONException-
JSONException
public boolean end()-
public boolean more() - throws JSONException-
JSONException
public char next() - throws JSONException-
JSONException
public char next(char c) - throws JSONException-
c
- The character to match.JSONException
- if the character does
- not match.
- public java.lang.String next(int n) - throws JSONException-
n
- The number of characters to take.JSONException
- Substring bounds
- error if there are not
- n characters remaining in the source string.
- public char nextClean() - throws JSONException-
JSONException
public java.lang.String nextString(char quote) - throws JSONException-
quote
- The quoting character, either "
-
- (double quote)
- or '
-
- (single quote)
- .
- JSONException
- Unterminated string.
- public java.lang.String nextTo(char delimiter) - throws JSONException-
delimiter
- A delimiter character.JSONException
public java.lang.String nextTo(java.lang.String delimiters) - throws JSONException-
delimiters
- A set of delimiter characters.JSONException
public java.lang.Object nextValue() - throws JSONException-
JSONException
- If syntax error.
- public char skipTo(char to) - throws JSONException-
to
- A character to skip to.JSONException
public JSONException syntaxError(java.lang.String message)-
message
- The error message.public java.lang.String toString()-
toString
in class java.lang.Object
public class JSONWriter
-extends java.lang.Object
- value
method for appending
- values to the text, and a key
method for adding keys before
- values in objects. There are array
and endArray
- methods that make and bound array values, and object
and
- endObject
methods which make and bound object values. All of
- these methods return the JSONWriter instance, permitting a cascade style. For
- example,
-
- - new JSONWriter(myWriter).object().key("JSON").value("Hello, World!").endObject(); -- - which writes - -
- {"JSON":"Hello, World!"} -- - The first method called must be
array
or object
.
- There are no methods for adding commas or colons. JSONWriter adds them for
- you. Objects and arrays can be nested up to 20 levels deep.
-
- This can sometimes be easier than using a JSONObject to build a string.
- Modifier and Type | -Field and Description | -
---|---|
protected char |
- mode
-
- The current mode.
- |
-
protected java.io.Writer |
- writer
-
- The writer that will receive the output.
- |
-
Constructor and Description | -
---|
JSONWriter(java.io.Writer w)
-
- Make a fresh JSONWriter.
- |
-
Modifier and Type | -Method and Description | -
---|---|
JSONWriter
- |
- array()
-
- Begin appending a new array.
- |
-
JSONWriter
- |
- endArray()
-
- End an array.
- |
-
JSONWriter
- |
- endObject()
-
- End an object.
- |
-
JSONWriter
- |
- key(java.lang.String string)
-
- Append a key.
- |
-
JSONWriter
- |
- object()
-
- Begin appending a new object.
- |
-
JSONWriter
- |
- value(boolean b)
-
- Append either the value
- true or the value
- false
- .
- |
-
JSONWriter
- |
- value(double d)
-
- Append a double value.
- |
-
JSONWriter
- |
- value(long l)
-
- Append a long value.
- |
-
JSONWriter
- |
- value(java.lang.Object object)
-
- Append an object value.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
protected char mode-
protected java.io.Writer writer-
public JSONWriter(java.io.Writer w)-
public JSONWriter array() - throws JSONException-
endArray
will be appended to this array. The
- endArray
method must be called to mark the array's end.
- JSONException
- If the
- nesting is too deep, or if the object is
- started in the wrong place (for example as a key or after the
- end of the
- outermost array or object).
- public JSONWriter endArray() - throws JSONException-
array
.
- JSONException
- If
- incorrectly nested.
- public JSONWriter endObject() - throws JSONException-
object
.
- JSONException
- If
- incorrectly nested.
- public JSONWriter key(java.lang.String string) - throws JSONException-
string
- A key string.JSONException
- If the key is
- out of place. For example, keys
- do not belong in arrays or if the key is null.
- public JSONWriter object() - throws JSONException-
endObject
will be appended to this object. The
- endObject
method must be called to mark the object's end.
- JSONException
- If the
- nesting is too deep, or if the object is
- started in the wrong place (for example as a key or after the
- end of the
- outermost array or object).
- public JSONWriter value(boolean b) - throws JSONException-
true
or the value false
- .
- b
- A boolean.JSONException
public JSONWriter value(double d) - throws JSONException-
d
- A double.JSONException
- If the number
- is not finite.
- public JSONWriter value(long l) - throws JSONException-
l
- A long.JSONException
public JSONWriter value(java.lang.Object object) - throws JSONException-
object
- The object to append. It can be null, or a Boolean, Number,
- String, JSONObject, or JSONArray, or an object that implements
- JSONString.
- JSONException
- If the value
- is out of sequence.
- public class Kim
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
int |
- length
-
- The number of bytes in the kim.
- |
-
Constructor and Description | -
---|
Kim(byte[] bytes,
- int length)
-
- Make a kim from a byte array.
- |
-
Kim(byte[] bytes,
- int from,
- int thru)
-
- Make a kim from a portion of a byte array.
- |
-
Kim(Kim kim,
- int from,
- int thru)
-
- Make a new kim from a substring of an existing kim.
- |
-
Kim(java.lang.String string)
-
- Make a kim from a string.
- |
-
Modifier and Type | -Method and Description | -
---|---|
int |
- characterAt(int at)
-
- Returns the character at the specified index.
- |
-
static int |
- characterSize(int character)
-
- Returns the number of bytes needed to contain the character in Kim
- format.
-
- |
-
int |
- copy(byte[] bytes,
- int at)
-
- Copy the contents of this kim to a byte array.
- |
-
boolean |
- equals(java.lang.Object obj)
-
- Two kim objects containing exactly the same bytes in the same order
- are
- equal to each other.
-
- |
-
int |
- get(int at)
-
- Get a byte from a kim.
- |
-
int |
- hashCode()
-
- Returns a hash code value for the kim.
- |
-
java.lang.String |
- toString()
-
- Produce a UTF-16 String from this kim.
- |
-
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public int length-
public Kim(byte[] bytes, - int from, - int thru)-
bytes
- A byte array.from
- The index of the first byte.thru
- The index of the last byte plus one.public Kim(byte[] bytes, - int length)-
bytes
- The byte array.length
- The number of bytes.public Kim(Kim kim, - int from, - int thru)-
kim
- The source of bytes.from
- The point at which to take bytes.thru
- The point at which to stop taking bytes.public Kim(java.lang.String string) - throws JSONException-
string
- The string.JSONException
- if
- surrogate pair mismatch.
- public static int characterSize(int character) - throws JSONException-
character
- a Unicode character between 0 and 0x10FFFF.JSONException
- if
- the character is not representable in a kim.
- public int characterAt(int at) - throws JSONException-
at
- the index of the char value. The first character is at 0.JSONException
- if at
- does not point to a valid character.
- public int copy(byte[] bytes, - int at)-
bytes
- A byte array of sufficient size.at
- The position within the byte array to take the byes.public boolean equals(java.lang.Object obj)-
equals
in class java.lang.Object
obj
- the other kim with which to compare.public int get(int at) - throws JSONException-
at
- The position of the byte. The first byte is at 0.JSONException
- if
- there is no byte at that position.
- public int hashCode()-
hashCode
in class java.lang.Object
public java.lang.String toString() - throws JSONException-
toString
in class java.lang.Object
JSONException
- if
- the kim is not valid.
- public class Property
-extends java.lang.Object
- Constructor and Description | -
---|
Property()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static JSONObject |
- toJSONObject(java.util.Properties properties)
-
- Converts a property file object into a JSONObject.
- |
-
static java.util.Properties |
- toProperties(JSONObject jo)
-
- Converts the JSONObject into a property file object.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static JSONObject toJSONObject(java.util.Properties properties) - throws JSONException-
properties
- java.util.PropertiesJSONException
- public static java.util.Properties toProperties(JSONObject jo) - throws JSONException-
jo
- JSONObjectJSONException
- public class XML
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
static java.lang.Character |
- AMP
-
- The Character '&'.
- |
-
static java.lang.Character |
- APOS
-
- The Character '''.
- |
-
static java.lang.Character |
- BANG
-
- The Character '!'.
- |
-
static java.lang.Character |
- EQ
-
- The Character '='.
- |
-
static java.lang.Character |
- GT
-
- The Character '>'.
- |
-
static java.lang.Character |
- LT
-
- The Character '<'.
- |
-
static java.lang.Character |
- QUEST
-
- The Character '?'.
- |
-
static java.lang.Character |
- QUOT
-
- The Character '"'.
- |
-
static java.lang.Character |
- SLASH
-
- The Character '/'.
- |
-
Constructor and Description | -
---|
XML()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
- escape(java.lang.String string)
-
- Replace special characters with XML escapes:
-
-
- &
- (ampersand)
- is replaced by &
- <
- (less than)
- is replaced by <
- >
- (greater than)
- is replaced by >
- "
- (double quote)
- is replaced by "
-
- |
-
static void |
- noSpace(java.lang.String string)
-
- Throw an exception if the string contains whitespace.
- |
-
static java.lang.Object |
- stringToValue(java.lang.String string)
-
- Try to convert a string into a number, boolean, or null.
- |
-
static JSONObject |
- toJSONObject(java.lang.String string)
-
- Convert a well-formed (but not necessarily valid) XML string into a
- JSONObject.
-
- |
-
static java.lang.String |
- toString(java.lang.Object object)
-
- Convert a JSONObject into a well-formed, element-normal XML string.
-
- |
-
static java.lang.String |
- toString(java.lang.Object object,
- java.lang.String tagName)
-
- Convert a JSONObject into a well-formed, element-normal XML string.
-
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static final java.lang.Character AMP-
public static final java.lang.Character APOS-
public static final java.lang.Character BANG-
public static final java.lang.Character EQ-
public static final java.lang.Character GT-
public static final java.lang.Character LT-
public static final java.lang.Character QUEST-
public static final java.lang.Character QUOT-
public static final java.lang.Character SLASH-
public static java.lang.String escape(java.lang.String string)-
- & (ampersand) is replaced by & - < (less than) is replaced by < - > (greater than) is replaced by > - " (double quote) is replaced by " --
string
- The string to be escaped.public static void noSpace(java.lang.String string) - throws JSONException-
string
- A string.JSONException
public static java.lang.Object stringToValue(java.lang.String string)-
string
- A String.public static JSONObject toJSONObject(java.lang.String string) - throws JSONException-
<[ [ ]]>
are ignored.
- string
- The source string.JSONException
public static java.lang.String toString(java.lang.Object object) - throws JSONException-
object
- A JSONObject.JSONException
public static java.lang.String toString(java.lang.Object object, - java.lang.String tagName) - throws JSONException-
object
- A JSONObject.tagName
- The optional name of the enclosing tag.JSONException
public class XMLTokener -extends JSONTokener-
Modifier and Type | -Field and Description | -
---|---|
static java.util.HashMap<java.lang.String,java.lang.Character>
- |
- entity
-
- The table of entity values.
- |
-
Constructor and Description | -
---|
XMLTokener(java.lang.String s)
-
- Construct an XMLTokener from a string.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- nextCDATA()
-
- Get the text in the CDATA block.
- |
-
java.lang.Object |
- nextContent()
-
- Get the next XML outer token, trimming whitespace.
- |
-
java.lang.Object |
- nextEntity(char ampersand)
-
- Return the next entity.
- |
-
java.lang.Object |
- nextMeta()
-
- Returns the next XML meta token.
- |
-
java.lang.Object |
- nextToken()
-
- Get the next XML Token.
- |
-
boolean |
- skipPast(java.lang.String to)
-
- Skip characters until past the requested string.
- |
-
back, dehexchar,
- end, more,
- next, next,
- next, nextClean,
- nextString,
- nextTo,
- nextTo,
- nextValue,
- skipTo,
- syntaxError,
- toString
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public static final java.util.HashMap<java.lang.String,java.lang.Character> entity-
public XMLTokener(java.lang.String s)-
s
- A source string.public java.lang.String nextCDATA() - throws JSONException-
]]>
.JSONException
-
- If the ]]>
is not found.
- public java.lang.Object nextContent() - throws JSONException-
JSONException
- public java.lang.Object nextEntity(char ampersand) - throws JSONException-
& ' > < "
.
- ampersand
- An ampersand character.JSONException
-
- If missing ';' in XML entity.
- public java.lang.Object nextMeta() - throws JSONException-
< > / = ! ?
) are returned as
- Character, and strings and names are returned as Boolean. We
- don't care
- what the values actually are.
- JSONException
-
- If a string is not properly closed or if the XML
- is badly structured.
- public java.lang.Object nextToken() - throws JSONException-
/ > = ! ?
or it
- may be a string wrapped in single quotes or double quotes, or it may be a
- name.
- JSONException
-
- If the XML is not well formed.
- public boolean skipPast(java.lang.String to) - throws JSONException-
to
- A string to skip past.JSONException
- Interface | -Description | -
---|---|
JSONString | -
- The
- JSONString interface allows a toJSONString()
- method so that a class can change the behavior of
- JSONObject.toString() , JSONArray.toString() ,
- and JSONWriter.value( Object) .
- |
-
Class | -Description | -
---|---|
CDL | -
- This provides static methods to convert comma delimited text into a
- JSONArray, and to covert a JSONArray into comma delimited text.
-
- |
-
Cookie | -
- Convert a web browser cookie specification to a JSONObject and back.
- |
-
CookieList | -
- Convert a web browser cookie list string to a JSONObject and back.
- |
-
HTTP | -
- Convert an HTTP header to a JSONObject and back.
- |
-
HTTPTokener | -
- The HTTPTokener extends the JSONTokener to provide additional methods
- for the parsing of HTTP headers.
-
- |
-
JSONArray | -
- A JSONArray is an ordered sequence of values.
- |
-
JSONML | -
- This provides static methods to convert an XML text into a JSONArray or
- JSONObject, and to covert a JSONArray or JSONObject into an XML text using
- the JsonML transform.
-
- |
-
JSONObject | -
- A JSONObject is an unordered collection of name/value pairs.
- |
-
JSONStringer | -
- JSONStringer provides a quick and convenient way of producing JSON text.
-
- |
-
JSONTokener | -
- A JSONTokener takes a source string and extracts characters and tokens from
- it.
-
- |
-
JSONWriter | -
- JSONWriter provides a quick and convenient way of producing JSON text.
- |
-
Kim | -
- Kim makes immutable eight bit Unicode strings.
- |
-
Property | -
- Converts a Property file data into JSONObject and back.
- |
-
XML | -
- This provides static methods to convert an XML text into a JSONObject,
- and to covert a JSONObject into an XML text.
-
- |
-
XMLTokener | -
- The XMLTokener extends the JSONTokener to provide additional methods
- for the parsing of XML texts.
-
- |
-
Exception | -Description | -
---|---|
JSONException | -
- The JSONException is thrown by the JSON.org classes when things are amiss.
-
- |
-
public class PlotMain
-extends org.bukkit.plugin.java.JavaPlugin
- Modifier and Type | -Field and Description | -
---|---|
static java.lang.String |
- ADMIN_PERMISSION
- |
-
static me.confuser.barapi.BarAPI |
- barAPI
-
- BarAPI object
- |
-
static java.util.HashMap<org.bukkit.Material,java.lang.String>
- |
- booleanFlags
-
- Boolean Flags (material)
- |
-
static org.bukkit.configuration.file.YamlConfiguration |
- config
-
- The main configuration file
- |
-
static java.io.File |
- configFile
-
- settings.properties
- |
-
static java.sql.Connection |
- connection
-
- MySQL Connection
- |
-
static net.milkbowl.vault.economy.Economy |
- economy
-
- Economy Object (vault)
- |
-
static org.bukkit.configuration.file.YamlConfiguration |
- storage
-
- Contains storage options
- |
-
static int |
- storage_ver
-
- Storage version
- |
-
static java.io.File |
- storageFile
-
- storage.properties
- |
-
static boolean |
- useEconomy
-
- Use Economy?
- |
-
static com.sk89q.worldedit.bukkit.WorldEditPlugin |
- worldEdit
-
- WorldEdit object
- |
-
static com.sk89q.worldguard.bukkit.WorldGuardPlugin |
- worldGuard
-
- World Guard Object
- |
-
static WorldGuardListener |
- worldGuardListener
-
- World Guard Listener
- |
-
Constructor and Description | -
---|
PlotMain()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
- addPlotWorld(java.lang.String world,
- PlotWorld plotworld,
- PlotManager manager) |
-
static void |
- Broadcast(C c)
-
- Broadcast publicly
- |
-
static void |
- BroadcastWithPerms(C c)
-
- Broadcast a message to all admins
- |
-
static void |
- checkForExpiredPlots()
-
- Check for expired plots
- |
-
static void |
- configs()
-
- Load configuration files
- |
-
static void |
- createConfiguration(PlotWorld plotworld) |
-
static java.util.HashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> |
- getAllPlotsRaw()
- |
-
static java.sql.Connection |
- getConnection()
-
- Get MySQL Connection
- |
-
org.bukkit.generator.ChunkGenerator |
- getDefaultWorldGenerator(java.lang.String world,
- java.lang.String id)
-
- !!
- |
-
static long |
- getLastPlayed(java.util.UUID uuid)
- |
-
static PlotMain |
- getMain()
-
- Returns the main class.
- |
-
static PlotManager
- |
- getPlotManager(java.lang.String world)
- |
-
static PlotManager
- |
- getPlotManager(org.bukkit.World world)
- |
-
static java.util.Set<Plot>
- |
- getPlots()
-
- Get all plots
- |
-
static java.util.Set<Plot>
- |
- getPlots(org.bukkit.entity.Player player)
- |
-
static java.util.HashMap<PlotId,Plot> |
- getPlots(java.lang.String world)
- |
-
static java.util.HashMap<PlotId,Plot> |
- getPlots(org.bukkit.World world)
- |
-
static java.util.Set<Plot>
- |
- getPlots(org.bukkit.World world,
- org.bukkit.entity.Player player) |
-
static java.util.LinkedHashSet<Plot> |
- getPlotsSorted()
-
- Get a sorted list of plots
- |
-
static java.lang.String[] |
- getPlotWorlds()
-
- get all plot worlds
- |
-
static java.lang.String[] |
- getPlotWorldsString()
- |
-
static UUIDSaver |
- getUUIDSaver()
-
- Get the uuid saver
- |
-
static Plot[] |
- getWorldPlots(org.bukkit.World world)
- |
-
static PlotWorld |
- getWorldSettings(java.lang.String world)
- |
-
static PlotWorld |
- getWorldSettings(org.bukkit.World world)
- |
-
static boolean |
- hasPermission(org.bukkit.entity.Player player,
- java.lang.String perm)
-
- Check a player for a permission
- - - Op has all permissions - - checks for '*' nodes - |
-
static int |
- hasPermissionRange(org.bukkit.entity.Player player,
- java.lang.String stub,
- int range)
-
- Check a range of permissions e.g.
- |
-
static boolean |
- hasPermissions(org.bukkit.entity.Player player,
- java.lang.String[] perms)
-
- Check a player for a permission
- - - Op has all permissions - - checks for '*' nodes - |
-
static boolean |
- isPlotWorld(java.lang.String world)
- |
-
static boolean |
- isPlotWorld(org.bukkit.World world)
- |
-
static void |
- killAllEntities()
-
- Kill all entities on roads
- |
-
static void |
- loadWorld(java.lang.String world,
- org.bukkit.generator.ChunkGenerator generator) |
-
static void |
- loadWorld(org.bukkit.World world)
-
- Adds an external world as a recognized PlotSquared world - The PlotWorld
- class created is based off the configuration in the settings.yml - Do not
- use this method unless the required world is preconfigured in the
- settings.yml
-
- |
-
void |
- onDisable()
-
- On unload
- |
-
void |
- onEnable()
-
- On Load.
- |
-
static void |
- reloadTranslations()
- |
-
static boolean |
- removePlot(java.lang.String world,
- PlotId id,
- boolean callEvent) |
-
static void |
- removePlotWorld(java.lang.String world)
- |
-
static void |
- sendConsoleSenderMessage(C c)
-
- Send a message to the console
- |
-
static void |
- sendConsoleSenderMessage(java.lang.String string)
-
- Send a message to the console.
- |
-
static void |
- setAllPlotsRaw(java.util.HashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> plots) |
-
static void |
- setAllPlotsRaw(java.util.LinkedHashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> plots) |
-
static void |
- setUUIDSaver(UUIDSaver saver)
-
- Set the uuid saver
- |
-
static boolean |
- teleportPlayer(org.bukkit.entity.Player player,
- org.bukkit.Location from,
- Plot plot)
-
- ..
- |
-
static void |
- updatePlot(Plot plot)
-
- Replace the plot object with an updated version
- |
-
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDescription,
- getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource,
- initialize, installDDL, isEnabled, isInitialized, isNaggable, onCommand, onLoad, onTabComplete,
- reloadConfig, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable,
- toString
equals, getName, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final java.lang.String ADMIN_PERMISSION-
public static java.io.File configFile-
public static org.bukkit.configuration.file.YamlConfiguration config-
public static java.io.File storageFile-
public static org.bukkit.configuration.file.YamlConfiguration storage-
public static int storage_ver-
public static java.sql.Connection connection-
public static com.sk89q.worldedit.bukkit.WorldEditPlugin worldEdit-
public static me.confuser.barapi.BarAPI barAPI-
public static com.sk89q.worldguard.bukkit.WorldGuardPlugin worldGuard-
public static WorldGuardListener worldGuardListener-
public static net.milkbowl.vault.economy.Economy economy-
public static boolean useEconomy-
public static java.util.HashMap<org.bukkit.Material,java.lang.String> booleanFlags-
public static void checkForExpiredPlots()-
public static int hasPermissionRange(org.bukkit.entity.Player player, - java.lang.String stub, - int range)-
player
- to checkstub
- to checkrange
- tp checkpublic static boolean hasPermissions(org.bukkit.entity.Player player, - java.lang.String[] perms)-
player
- to checkperms
- to checkpublic static UUIDSaver getUUIDSaver()-
com.intellectualcrafters.plot.uuid.UUIDSaver;
public static void setUUIDSaver(UUIDSaver saver)-
saver
- new saverpublic static boolean hasPermission(org.bukkit.entity.Player player, - java.lang.String perm)-
player
- to checkperm
- to checkpublic static java.util.Set<Plot> getPlots()-
public static java.util.LinkedHashSet<Plot> getPlotsSorted()-
public static java.util.Set<Plot> getPlots(org.bukkit.entity.Player player)-
player
- playerpublic static java.util.Set<Plot> getPlots(org.bukkit.World world, - org.bukkit.entity.Player player)-
world
- plot worldplayer
- plot ownerpublic static java.util.HashMap<PlotId,Plot> getPlots(org.bukkit.World world)-
world
- plot worldpublic static java.lang.String[] getPlotWorlds()-
public static java.lang.String[] getPlotWorldsString()-
public static boolean isPlotWorld(org.bukkit.World world)-
world
- plotworld(?)public static boolean isPlotWorld(java.lang.String world)-
world
- plotworld(?)public static PlotManager getPlotManager(org.bukkit.World world)-
world
- World to get manager forpublic static PlotManager getPlotManager(java.lang.String world)-
world
- worldpublic static PlotWorld getWorldSettings(org.bukkit.World world)-
world
- to searchpublic static PlotWorld getWorldSettings(java.lang.String world)-
world
- to searchpublic static Plot[] getWorldPlots(org.bukkit.World world)-
world
- world to searchpublic static boolean removePlot(java.lang.String world, - PlotId id, - boolean callEvent)-
public static void updatePlot(Plot plot)-
plot
- plot objectpublic static java.sql.Connection getConnection()-
public static void sendConsoleSenderMessage(java.lang.String string)-
string
- messagepublic static boolean teleportPlayer(org.bukkit.entity.Player player, - org.bukkit.Location from, - Plot plot)-
public static void sendConsoleSenderMessage(C c)-
c
- messagepublic static void Broadcast(C c)-
c
- messagepublic static PlotMain getMain()-
public static void BroadcastWithPerms(C c)-
c
- messagepublic static void reloadTranslations() - throws java.io.IOException-
java.io.IOException
public static long getLastPlayed(java.util.UUID uuid)-
public static void configs()-
public static void killAllEntities()-
public static void createConfiguration(PlotWorld plotworld)-
public static void loadWorld(java.lang.String world, - org.bukkit.generator.ChunkGenerator generator)-
public static void loadWorld(org.bukkit.World world)-
world
- to loadpublic static void addPlotWorld(java.lang.String world, - PlotWorld plotworld, - PlotManager manager)-
public static void removePlotWorld(java.lang.String world)-
public static java.util.HashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> getAllPlotsRaw()-
public static void setAllPlotsRaw(java.util.LinkedHashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> plots)-
public static void setAllPlotsRaw(java.util.HashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> plots)-
public org.bukkit.generator.ChunkGenerator getDefaultWorldGenerator(java.lang.String world, - java.lang.String id)-
getDefaultWorldGenerator
in interface org.bukkit.plugin.Plugin
getDefaultWorldGenerator
in class org.bukkit.plugin.java.JavaPlugin
- public void onEnable()-
onEnable
in interface org.bukkit.plugin.Plugin
onEnable
in class org.bukkit.plugin.java.JavaPlugin
public void onDisable()-
onDisable
in interface org.bukkit.plugin.Plugin
onDisable
in class org.bukkit.plugin.java.JavaPlugin
public class PlotAPI
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
static java.lang.String |
- ADMIN_PERMISSION
-
- Admin Permission
- |
-
Constructor and Description | -
---|
PlotAPI(org.bukkit.plugin.java.JavaPlugin plugin)
-
- Constructor.
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- addFlag(AbstractFlag flag)
-
- Register a flag for use in plots
- |
-
void |
- addPlotWorld(java.lang.String world,
- PlotWorld plotWorld,
- PlotManager manager)
-
- Add a plotoworld
- |
-
int |
- getAllowedPlots(org.bukkit.entity.Player player)
-
- Get the allowed plot count for a player
- |
-
java.util.Set<Plot>
- |
- getAllPlots()
-
- Get all plots
- |
-
org.bukkit.Location |
- getBottomLocation(Plot p)
-
- Get Bottom Location
- |
-
C |
- getCaptions()
-
- C class contains all the captions from the translations.yml file.
- |
-
org.bukkit.configuration.file.YamlConfiguration |
- getConfig()
- |
-
FlagManager |
- getFlagManager()
-
- FlagManager class contains methods relating to plot flags
- |
-
AbstractFlag[] |
- getFlags()
-
- get all the currently registered flags
- |
-
org.bukkit.Location |
- getHomeLocation(Plot p)
-
- Get home location
- |
-
org.bukkit.Location[] |
- getLocations(Plot p)
-
- Get plot locations
- |
-
PlotMain |
- getMain()
-
- Get the main class for this plugin
- - - Contains a lot of fields and methods - not very well organized - Only use this if you really need it - |
-
PlayerFunctions |
- getPlayerFunctions()
-
- PlayerFunctions class contains useful methods relating to players - Some
- player/plot methods are here as well
-
- |
-
int |
- getPlayerPlotCount(org.bukkit.World world,
- org.bukkit.entity.Player player)
-
- Get the player plot count
- |
-
java.util.Set<Plot>
- |
- getPlayerPlots(org.bukkit.entity.Player player)
-
- Return all plots for a player
- |
-
java.util.Set<Plot>
- |
- getPlayerPlots(org.bukkit.World world,
- org.bukkit.entity.Player player)
-
- Get a players plots
- |
-
Plot |
- getPlot(org.bukkit.Location l)
-
- Get a plot based on the location
- |
-
Plot |
- getPlot(org.bukkit.entity.Player player)
-
- Get a plot based on the player location
- |
-
Plot |
- getPlot(org.bukkit.World world,
- int x,
- int z)
-
- Get a plot based on the ID
- |
-
PlotHelper |
- getPlotHelper()
-
- PlotHelper class contains useful methods relating to plots.
- |
-
PlotMain |
- getPlotMain()
-
- Get the plotMain class
- |
-
PlotManager |
- getPlotManager(java.lang.String world)
-
- Get the plot manager for a world. - Contains useful low level methods for
- plot merging, clearing, and tessellation
-
- |
-
PlotManager |
- getPlotManager(org.bukkit.World world)
-
- Get the plot manager for a world. - Most of these methods can be accessed
- through the PlotHelper
-
- |
-
Plot[] |
- getPlots(org.bukkit.World world)
-
- Get all plots for the world
- |
-
Plot[] |
- getPlots(org.bukkit.World world,
- org.bukkit.entity.Player plr,
- boolean just_owner)
-
- Get all plots for the player
- |
-
java.lang.String[] |
- getPlotWorlds()
-
- Get all plot worlds
- |
-
SchematicHandler |
- getSchematicHandler()
-
- SchematicHandler class contains methods related to pasting schematics
- |
-
org.bukkit.configuration.file.YamlConfiguration |
- getStorage()
- |
-
org.bukkit.Location |
- getTopLocation(Plot p)
-
- Get Top Location
- |
-
PlotWorld |
- getWorldSettings(java.lang.String world)
-
- Get the settings for a world (settings bundled in PlotWorld class)
- |
-
PlotWorld |
- getWorldSettings(org.bukkit.World world)
-
- Get the settings for a world (settings bundled in PlotWorld class) - You
- will need to downcast for the specific settings a Generator has. e.g.
-
- |
-
boolean |
- hasPlot(org.bukkit.World world,
- org.bukkit.entity.Player player)
-
- Check whether or not a player has a plot
- |
-
boolean |
- isInPlot(org.bukkit.entity.Player player)
-
- Check whether or not a player is in a plot
- |
-
boolean |
- isPlotWorld(org.bukkit.World world)
-
- Get if plot world
- |
-
void |
- registerCommand(SubCommand c)
-
- Register a subcommand
- |
-
void |
- sendConsoleMessage(C c)
-
- Send a message to the console
- |
-
void |
- sendConsoleMessage(java.lang.String msg)
-
- Send a message to the console. - Supports color codes
- |
-
void |
- sendMessage(org.bukkit.entity.Player player,
- C c)
-
- Send a message to a player.
- |
-
void |
- sendMessage(org.bukkit.entity.Player player,
- java.lang.String string)
-
- Send a message to a player. - Supports color codes
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String ADMIN_PERMISSION-
public PlotAPI(org.bukkit.plugin.java.JavaPlugin plugin)-
plugin
- Plugin used to access this methodpublic java.util.Set<Plot> getAllPlots()-
public java.util.Set<Plot> getPlayerPlots(org.bukkit.entity.Player player)-
player
-public void addPlotWorld(java.lang.String world, - PlotWorld plotWorld, - PlotManager manager)-
world
- World NameplotWorld
- Plot World Objectmanager
- World ManagerPlotMain.addPlotWorld(String,
- com.intellectualcrafters.plot.object.PlotWorld,
- com.intellectualcrafters.plot.object.PlotManager)
public org.bukkit.configuration.file.YamlConfiguration getConfig()-
PlotMain.config
- public org.bukkit.configuration.file.YamlConfiguration getStorage()-
PlotMain.storage
- public PlotMain getMain()-
public PlotHelper getPlotHelper()-
public PlayerFunctions getPlayerFunctions()-
public FlagManager getFlagManager()-
public SchematicHandler getSchematicHandler()-
public C getCaptions()-
public PlotManager getPlotManager(org.bukkit.World world)-
world
-public PlotManager getPlotManager(java.lang.String world)-
world
-public PlotWorld getWorldSettings(org.bukkit.World world)-
world
- (to get settings of)public PlotWorld getWorldSettings(java.lang.String world)-
world
- (to get settings of)public void sendMessage(org.bukkit.entity.Player player, - C c)-
player
-c
- (Caption)public void sendMessage(org.bukkit.entity.Player player, - java.lang.String string)-
player
-string
-public void sendConsoleMessage(java.lang.String msg)-
msg
-public void sendConsoleMessage(C c)-
c
- (Caption)public void addFlag(AbstractFlag flag)-
flag
-public AbstractFlag[] getFlags()-
public Plot getPlot(org.bukkit.World world, - int x, - int z)-
world
-x
-z
-public Plot getPlot(org.bukkit.Location l)-
l
-public Plot getPlot(org.bukkit.entity.Player player)-
player
-public boolean hasPlot(org.bukkit.World world, - org.bukkit.entity.Player player)-
player
-public Plot[] getPlots(org.bukkit.World world, - org.bukkit.entity.Player plr, - boolean just_owner)-
plr
- to search forjust_owner
- should we just search for owner? Or with rights?public Plot[] getPlots(org.bukkit.World world)-
world
- to get plots ofpublic java.lang.String[] getPlotWorlds()-
public boolean isPlotWorld(org.bukkit.World world)-
world
- (to check if plot world)public org.bukkit.Location[] getLocations(Plot p)-
p
-public org.bukkit.Location getHomeLocation(Plot p)-
p
-public org.bukkit.Location getBottomLocation(Plot p)-
p
-public org.bukkit.Location getTopLocation(Plot p)-
p
-public boolean isInPlot(org.bukkit.entity.Player player)-
player
-public void registerCommand(SubCommand c)-
c
-public PlotMain getPlotMain()-
public int getPlayerPlotCount(org.bukkit.World world, - org.bukkit.entity.Player player)-
player
-public java.util.Set<Plot> getPlayerPlots(org.bukkit.World world, - org.bukkit.entity.Player player)-
player
-public int getAllowedPlots(org.bukkit.entity.Player player)-
player
-Class | -Description | -
---|---|
PlotAPI | -
- The plotMain api class.
- |
-
public class Auto -extends SubCommand-
SubCommand.CommandCategory
- Modifier and Type | -Field and Description | -
---|---|
static PlotId |
- lastPlot
- |
-
alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Auto()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
static PlotId |
- getNextPlot(PlotId id,
- int step) |
-
boolean |
- isUnowned(org.bukkit.World world,
- PlotId pos1,
- PlotId pos2)
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Ban -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Ban()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Claim -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Claim()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static boolean |
- claimPlot(org.bukkit.entity.Player player,
- Plot plot,
- boolean teleport) |
-
static boolean |
- claimPlot(org.bukkit.entity.Player player,
- Plot plot,
- boolean teleport,
- java.lang.String schematic) |
-
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static boolean claimPlot(org.bukkit.entity.Player player, - Plot plot, - boolean teleport)-
public static boolean claimPlot(org.bukkit.entity.Player player, - Plot plot, - boolean teleport, - java.lang.String schematic)-
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Clear -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Clear()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Clipboard -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Clipboard()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentsEnum Constant and Description | -
---|
BAN
- |
-
CLAIM
- |
-
CLEAR
- |
-
CLIPBOARD
- |
-
COMMENT
- |
-
COPY
- |
-
DATABASE
- |
-
DEBUG
- |
-
DEBUGCLAIMTEST
- |
-
DELETE
- |
-
DENIED
- |
-
DEOP
- |
-
HELPERS
- |
-
HOME
- |
-
INBOX
- |
-
INFO
- |
-
INTERFACE
- |
-
KICK
- |
-
LIST
- |
-
MERGE
- |
-
OP
- |
-
PASTE
- |
-
PURGE
- |
-
SET
- |
-
SETUP
- |
-
SWAP
- |
-
TP
- |
-
TRUSTED
- |
-
UNBAN
- |
-
UNLINK
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- getAlias()
- |
-
java.lang.String |
- getCommand()
- |
-
CommandPermission
- |
- getPermission()
- |
-
static Command |
- valueOf(java.lang.String name)
-
- Returns the enum constant of this type with the specified name.
- |
-
static Command[] |
- values()
-
- Returns an array containing the constants of this enum type, in
- the order they are declared.
-
- |
-
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal,
- toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final Command SWAP-
public static final Command INBOX-
public static final Command DEBUGCLAIMTEST-
public static final Command COMMENT-
public static final Command TRUSTED-
public static final Command PASTE-
public static final Command CLIPBOARD-
public static final Command COPY-
public static final Command KICK-
public static final Command HELPERS-
public static final Command DENIED-
public static final Command CLAIM-
public static final Command MERGE-
public static final Command UNLINK-
public static final Command CLEAR-
public static final Command DELETE-
public static final Command DEBUG-
public static final Command INTERFACE-
public static final Command HOME-
public static final Command INFO-
public static final Command LIST-
public static final Command SET-
public static final Command PURGE-
public static final Command SETUP-
public static final Command OP-
public static final Command DEOP-
public static final Command BAN-
public static final Command UNBAN-
public static final Command DATABASE-
public static final Command TP-
public static Command[] values()-
-for (Command c : Command.values()) - System.out.println(c); --
public static Command valueOf(java.lang.String name)-
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the
- specified name
- java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getCommand()-
public java.lang.String getAlias()-
public CommandPermission getPermission()-
public class CommandPermission
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
java.lang.String |
- permission
- |
-
Constructor and Description | -
---|
CommandPermission(java.lang.String permission)
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- hasPermission(org.bukkit.entity.Player player)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public class Comment -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Comment()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Copy -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Copy()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class DEOP -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
DEOP()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Database -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Database()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
static void |
- insertPlots(SQLManager manager,
- java.util.UUID requester,
- java.sql.Connection c) |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static void insertPlots(SQLManager manager, - java.util.UUID requester, - java.sql.Connection c)-
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Debug -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Debug()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class DebugClaimTest -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
DebugClaimTest()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static boolean |
- claimPlot(org.bukkit.entity.Player player,
- Plot plot,
- boolean teleport) |
-
static boolean |
- claimPlot(org.bukkit.entity.Player player,
- Plot plot,
- boolean teleport,
- java.lang.String schematic) |
-
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static boolean claimPlot(org.bukkit.entity.Player player, - Plot plot, - boolean teleport)-
public static boolean claimPlot(org.bukkit.entity.Player player, - Plot plot, - boolean teleport, - java.lang.String schematic)-
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class DebugLoadTest -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
DebugLoadTest()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class DebugSaveTest -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
DebugSaveTest()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Delete -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Delete()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Denied -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Denied()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Help -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Help()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Helpers -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Helpers()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Home -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Home()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Inbox -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Inbox()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Info -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Info()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player player,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player player, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- player
- executorargs
- argumentspublic class Inventory -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Inventory()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Kick -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Kick()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class MainCommand
-extends java.lang.Object
-implements org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
- Modifier and Type | -Field and Description | -
---|---|
static java.lang.String |
- MAIN_PERMISSION
- |
-
static java.util.ArrayList<SubCommand>
- |
- subCommands
- |
-
Constructor and Description | -
---|
MainCommand()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.util.List<SubCommand>
- |
- getCommands(SubCommand.CommandCategory category,
- org.bukkit.entity.Player player) |
-
static java.util.List<java.lang.String> |
- helpMenu(org.bukkit.entity.Player player,
- SubCommand.CommandCategory category,
- int page) |
-
static boolean |
- no_permission(org.bukkit.entity.Player player,
- java.lang.String permission) |
-
boolean |
- onCommand(org.bukkit.command.CommandSender sender,
- org.bukkit.command.Command cmd,
- java.lang.String commandLabel,
- java.lang.String[] args) |
-
java.util.List<java.lang.String> |
- onTabComplete(org.bukkit.command.CommandSender commandSender,
- org.bukkit.command.Command command,
- java.lang.String s,
- java.lang.String[] strings) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static final java.lang.String MAIN_PERMISSION-
public static java.util.ArrayList<SubCommand> subCommands-
public static boolean no_permission(org.bukkit.entity.Player player, - java.lang.String permission)-
public static java.util.List<SubCommand> getCommands(SubCommand.CommandCategory category, - org.bukkit.entity.Player player)-
public static java.util.List<java.lang.String> helpMenu(org.bukkit.entity.Player player, - SubCommand.CommandCategory category, - int page)-
public boolean onCommand(org.bukkit.command.CommandSender sender, - org.bukkit.command.Command cmd, - java.lang.String commandLabel, - java.lang.String[] args)-
onCommand
in interface org.bukkit.command.CommandExecutor
- public java.util.List<java.lang.String> onTabComplete(org.bukkit.command.CommandSender commandSender, - org.bukkit.command.Command command, - java.lang.String s, - java.lang.String[] strings)-
onTabComplete
in interface org.bukkit.command.TabCompleter
- public class Merge -extends SubCommand-
SubCommand.CommandCategory
- Modifier and Type | -Field and Description | -
---|---|
static java.lang.String[] |
- aliases
- |
-
static java.lang.String[] |
- values
- |
-
alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Merge()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
- direction(float yaw)
- |
-
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static java.lang.String[] values-
public static java.lang.String[] aliases-
public static java.lang.String direction(float yaw)-
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class MusicSubcommand -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
MusicSubcommand()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player player,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player player, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- player
- executorargs
- argumentspublic class OP -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Paste -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Paste()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Purge -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Purge()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Rate -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Rate()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Reload -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Reload()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Schematic -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Schematic()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Set -extends SubCommand-
SubCommand.CommandCategory
- Modifier and Type | -Field and Description | -
---|---|
static java.lang.String[] |
- aliases
- |
-
static java.lang.String[] |
- values
- |
-
alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Set()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static java.lang.String[] values-
public static java.lang.String[] aliases-
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class SetOwner -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
SetOwner()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Setup -extends SubCommand -implements org.bukkit.event.Listener-
SubCommand.CommandCategory
- Modifier and Type | -Field and Description | -
---|---|
static java.util.Map<java.lang.String,com.intellectualcrafters.plot.commands.Setup.SetupObject>
- |
- setupMap
- |
-
alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Setup()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static java.util.Map<java.lang.String,com.intellectualcrafters.plot.commands.Setup.SetupObject> setupMap-
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic static enum SubCommand.CommandCategory -extends java.lang.Enum<SubCommand.CommandCategory>-
Enum Constant and Description | -
---|
ACTIONS
- |
-
CLAIMING
- |
-
DEBUG
- |
-
INFO
- |
-
TELEPORT
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- toString()
- |
-
static SubCommand.CommandCategory
- |
- valueOf(java.lang.String name)
-
- Returns the enum constant of this type with the specified name.
- |
-
static SubCommand.CommandCategory[]
- |
- values()
-
- Returns an array containing the constants of this enum type, in
- the order they are declared.
-
- |
-
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal,
- valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final SubCommand.CommandCategory CLAIMING-
public static final SubCommand.CommandCategory TELEPORT-
public static final SubCommand.CommandCategory ACTIONS-
public static final SubCommand.CommandCategory INFO-
public static final SubCommand.CommandCategory DEBUG-
public static SubCommand.CommandCategory[] values()-
-for (SubCommand.CommandCategory c : SubCommand.CommandCategory.values()) - System.out.println(c); --
public static SubCommand.CommandCategory valueOf(java.lang.String name)-
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
- with the specified name
- java.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()-
toString
in class java.lang.Enum<SubCommand.CommandCategory>
-
public abstract class SubCommand
-extends java.lang.Object
- Modifier and Type | -Class and Description | -
---|---|
static class |
- SubCommand.CommandCategory
- |
-
Modifier and Type | -Field and Description | -
---|---|
java.lang.String |
- alias
-
- Alias
- |
-
SubCommand.CommandCategory
- |
- category
- |
-
java.lang.String |
- cmd
-
- Command
- |
-
java.lang.String |
- description
-
- Simple description
- |
-
boolean |
- isPlayer
- |
-
CommandPermission
- |
- permission
-
- Permission node
- |
-
java.lang.String |
- usage
-
- Command usage
- |
-
Constructor and Description | -
---|
SubCommand(Command command,
- java.lang.String description,
- java.lang.String usage,
- SubCommand.CommandCategory category,
- boolean isPlayer) |
-
SubCommand(java.lang.String cmd,
- java.lang.String permission,
- java.lang.String description,
- java.lang.String usage,
- java.lang.String alias,
- SubCommand.CommandCategory category,
- boolean isPlayer) |
-
Modifier and Type | -Method and Description | -
---|---|
abstract boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
void |
- executeConsole(java.lang.String... args)
- |
-
boolean |
- sendMessage(org.bukkit.entity.Player plr,
- C c,
- java.lang.String... args)
-
- Send a message
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public boolean isPlayer-
public java.lang.String cmd-
public CommandPermission permission-
public java.lang.String description-
public java.lang.String alias-
public java.lang.String usage-
public SubCommand.CommandCategory category-
public SubCommand(java.lang.String cmd, - java.lang.String permission, - java.lang.String description, - java.lang.String usage, - java.lang.String alias, - SubCommand.CommandCategory category, - boolean isPlayer)-
cmd
- Command /plot {cmd} <-- That!permission
- Permission Nodedescription
- Simple descriptionusage
- Usage description: /plot command {args...}alias
- Command aliascategory
- CommandCategory. Pick whichever closests to what you want.
- public SubCommand(Command command, - java.lang.String description, - java.lang.String usage, - SubCommand.CommandCategory category, - boolean isPlayer)-
command
- Command /plot {cmd} <-- That!description
- Simple descriptionusage
- Usage description: /plot command {args...}category
- CommandCategory. Pick whichever closests to what you want.
- public abstract boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
plr
- executorargs
- argumentspublic void executeConsole(java.lang.String... args)-
public boolean sendMessage(org.bukkit.entity.Player plr, - C c, - java.lang.String... args)-
plr
-c
-args
-public class Swap -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Swap()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class TP -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Trusted -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Trusted()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Unban -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Unban()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Unlink -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Unlink()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class Visit -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
Visit()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
java.util.List<Plot> |
- getPlots(java.util.UUID uuid)
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public java.util.List<Plot> getPlots(java.util.UUID uuid)-
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentspublic class list -extends SubCommand-
SubCommand.CommandCategory
- alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
list()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentsClass | -Description | -
---|---|
Auto | -- |
Ban | -
- Created 2014-11-09 for PlotSquared
- |
-
Claim | -- |
Clear | -- |
Clipboard | -- |
CommandPermission | -
- Created by Citymonstret on 2014-08-03.
- |
-
Comment | -- |
Copy | -- |
Database | -
- Created 2014-11-15 for PlotSquared
- |
-
Debug | -- |
DebugClaimTest | -- |
DebugLoadTest | -- |
DebugSaveTest | -- |
Delete | -- |
Denied | -- |
DEOP | -
- Created 2014-11-09 for PlotSquared
- |
-
Help | -- |
Helpers | -- |
Home | -- |
Inbox | -- |
Info | -- |
Inventory | -- |
Kick | -- |
list | -- |
MainCommand | -
- PlotMain command class
- |
-
Merge | -- |
MusicSubcommand | -- |
OP | -
- Created 2014-11-09 for PlotSquared
- |
-
Paste | -- |
plugin | -- |
Purge | -- |
Rate | -- |
Reload | -- |
Schematic | -- |
Set | -- |
SetOwner | -- |
Setup | -
- Created 2014-09-26 for PlotSquared
- |
-
SubCommand | -
- SubCommand class
- |
-
Swap | -
- Created by Citymonstret on 2014-08-01.
- |
-
TP | -- |
Trusted | -- |
Unban | -
- Created 2014-11-09 for PlotSquared
- |
-
Unlink | -
- Created 2014-08-01 for PlotSquared
- |
-
Visit | -- |
Enum | -Description | -
---|---|
Command | -
- Created by Citymonstret on 2014-08-03.
- |
-
SubCommand.CommandCategory | -- |
public class plugin -extends SubCommand-
SubCommand.CommandCategory
- Modifier and Type | -Field and Description | -
---|---|
static java.lang.String |
- downloads
- |
-
static java.lang.String |
- version
- |
-
alias,
- category,
- cmd,
- description,
- isPlayer,
- permission,
- usage
- Constructor and Description | -
---|
plugin()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- execute(org.bukkit.entity.Player plr,
- java.lang.String... args)
-
- Execute.
- |
-
static void |
- setup(org.bukkit.plugin.java.JavaPlugin plugin)
- |
-
executeConsole,
- sendMessage
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static java.lang.String downloads-
public static java.lang.String version-
public static void setup(org.bukkit.plugin.java.JavaPlugin plugin)-
public boolean execute(org.bukkit.entity.Player plr, - java.lang.String... args)-
SubCommand
- execute
in
- class SubCommand
- plr
- executorargs
- argumentsModifier and Type | -Method and Description | -
---|---|
java.lang.String |
- d()
-
- Get the default string
- |
-
java.lang.String |
- s()
-
- Get translated if exists
- |
-
static void |
- saveTranslations()
- |
-
static void |
- setupTranslations()
- |
-
java.lang.String |
- translated()
- |
-
static C
- |
- valueOf(java.lang.String name)
-
- Returns the enum constant of this type with the specified name.
- |
-
static C[]
- |
- values()
-
- Returns an array containing the constants of this enum type, in
- the order they are declared.
-
- |
-
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString,
- valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final C RECORD_PLAY-
public static final C NOTIFY_ENTER-
public static final C NOTIFY_LEAVE-
public static final C SWAP_SYNTAX-
public static final C SWAP_SUCCESS-
public static final C COMMENT_SYNTAX-
public static final C INVALID_INBOX-
public static final C NO_PERM_INBOX-
public static final C COMMENT_REMOVED-
public static final C NOT_CONSOLE-
public static final C IS_CONSOLE-
public static final C CLIPBOARD_SET-
public static final C PASTED-
public static final C PASTE_FAILED-
public static final C NO_CLIPBOARD-
public static final C CLIPBOARD_INFO-
public static final C RATING_NOT_VALID-
public static final C RATING_ALREADY_EXISTS-
public static final C RATING_APPLIED-
public static final C RATING_NOT_YOUR_OWN-
public static final C RATING_NOT_OWNED-
public static final C CANNOT_AFFORD_PLOT-
public static final C CANNOT_AFFORD_MERGE-
public static final C ADDED_BALANCE-
public static final C REMOVED_BALANCE-
public static final C SETUP_INIT-
public static final C SETUP_STEP-
public static final C SETUP_INVALID_ARG-
public static final C SETUP_VALID_ARG-
public static final C SETUP_FINISHED-
public static final C SETUP_WORLD_TAKEN-
public static final C SETUP_MISSING_WORLD-
public static final C SETUP_MISSING_GENERATOR-
public static final C SETUP_INVALID_GENERATOR-
public static final C SCHEMATIC_MISSING_ARG-
public static final C SCHEMATIC_INVALID-
public static final C SCHEMATIC_VALID-
public static final C SCHEMATIC_PASTE_FAILED-
public static final C SCHEMATIC_PASTE_SUCCESS-
public static final C TITLE_ENTERED_PLOT-
public static final C TITLE_ENTERED_PLOT_COLOR-
public static final C TITLE_ENTERED_PLOT_SUB-
public static final C TITLE_ENTERED_PLOT_SUB_COLOR-
public static final C TITLE_LEFT_PLOT-
public static final C TITLE_LEFT_PLOT_COLOR-
public static final C TITLE_LEFT_PLOT_SUB-
public static final C TITLE_LEFT_PLOT_SUB_COLOR-
public static final C PREFIX-
public static final C ENABLED-
public static final C EXAMPLE_MESSAGE-
public static final C RELOADED_CONFIGS-
public static final C RELOAD_FAILED-
public static final C BOSSBAR_CLEARING-
public static final C ALIAS_SET_TO-
public static final C MISSING_ALIAS-
public static final C ALIAS_IS_TAKEN-
public static final C MISSING_POSITION-
public static final C POSITION_SET-
public static final C INVALID_POSITION-
public static final C TIME_FORMAT-
public static final C NO_SCHEMATIC_PERMISSION-
public static final C NO_PERMISSION-
public static final C NO_PLOT_PERMS-
public static final C CANT_CLAIM_MORE_PLOTS-
public static final C YOU_BE_DENIED-
public static final C NO_PERM_MERGE-
public static final C UNLINK_REQUIRED-
public static final C UNLINK_IMPOSSIBLE-
public static final C NO_MERGE_TO_MEGA-
public static final C NOT_VALID_SUBCOMMAND-
public static final C DID_YOU_MEAN-
public static final C NAME_LITTLE-
public static final C NO_COMMANDS-
public static final C SUBCOMMAND_SET_OPTIONS_HEADER-
public static final C INVALID_PLAYER-
public static final C COMMAND_WENT_WRONG-
public static final C PURGE_SYNTAX-
public static final C PURGE_SUCCESS-
public static final C NOT_IN_PLOT-
public static final C NOT_IN_PLOT_WORLD-
public static final C NOT_VALID_WORLD-
public static final C NOT_VALID_PLOT_WORLD-
public static final C NO_PLOTS-
public static final C NOT_VALID_BLOCK_LIST_HEADER-
public static final C BLOCK_LIST_ITEM-
public static final C BLOCK_LIST_SEPARATER-
public static final C NEED_BIOME-
public static final C BIOME_SET_TO-
public static final C TELEPORTED_TO_PLOT-
public static final C SET_BLOCK_ACTION_FINISHED-
public static final C DEUBG_HEADER-
public static final C DEBUG_SECTION-
public static final C DEBUG_LINE-
public static final C NOT_VALID_DATA-
public static final C NOT_VALID_BLOCK-
public static final C NOT_VALID_NUMBER-
public static final C NOT_VALID_PLOT_ID-
public static final C NOT_YOUR_PLOT-
public static final C NO_SUCH_PLOT-
public static final C PLAYER_HAS_NOT_BEEN_ON-
public static final C FOUND_NO_PLOTS-
public static final C CAMERA_STARTED-
public static final C CAMERA_STOPPED-
public static final C NEED_PLOT_NUMBER-
public static final C NEED_BLOCK-
public static final C NEED_PLOT_ID-
public static final C NEED_USER-
public static final C PLOT_INFO_UNCLAIMED-
public static final C PLOT_INFO-
public static final C PLOT_INFO_HELPERS-
public static final C PLOT_INFO_TRUSTED-
public static final C PLOT_INFO_DENIED-
public static final C PLOT_INFO_FLAGS-
public static final C PLOT_INFO_BIOME-
public static final C PLOT_INFO_RATING-
public static final C PLOT_INFO_OWNER-
public static final C PLOT_INFO_ID-
public static final C PLOT_INFO_ALIAS-
public static final C PLOT_INFO_SIZE-
public static final C PLOT_USER_LIST-
public static final C INFO_SYNTAX_CONSOLE-
public static final C GENERATING_FLOOR-
public static final C GENERATING_WALL-
public static final C GENERATING_WALL_FILLING-
public static final C CLEARING_PLOT-
public static final C CLEARING_DONE-
public static final C CLEARING_DONE_PACKETS-
public static final C PLOT_NOT_CLAIMED-
public static final C PLOT_IS_CLAIMED-
public static final C CLAIMED-
public static final C PLOT_LIST_HEADER_PAGED-
public static final C PLOT_LIST_HEADER-
public static final C PLOT_LIST_ITEM-
public static final C PLOT_LIST_ITEM_ORDERED-
public static final C PLOT_LIST_FOOTER-
public static final C LEFT_PLOT-
public static final C WAIT_FOR_TIMER-
public static final C PLOT_CHAT_FORMAT-
public static final C DENIED_REMOVED-
public static final C DENIED_ADDED-
public static final C DENIED_NEED_ARGUMENT-
public static final C WAS_NOT_DENIED-
public static final C NEED_ON_OFF-
public static final C SETTING_UPDATED-
public static final C NEED_KEY-
public static final C NOT_VALID_FLAG-
public static final C NOT_VALID_VALUE-
public static final C FLAG_NOT_IN_PLOT-
public static final C FLAG_NOT_REMOVED-
public static final C FLAG_NOT_ADDED-
public static final C FLAG_REMOVED-
public static final C FLAG_ADDED-
public static final C HELPER_ADDED-
public static final C HELPER_REMOVED-
public static final C HELPER_NEED_ARGUMENT-
public static final C WAS_NOT_ADDED-
public static final C ALREADY_OWNER-
public static final C ALREADY_ADDED-
public static final C TRUSTED_ADDED-
public static final C TRUSTED_REMOVED-
public static final C TRUSTED_NEED_ARGUMENT-
public static final C T_WAS_NOT_ADDED-
public static final C SET_OWNER-
public static final C OWNER_SIGN_LINE_1-
public static final C OWNER_SIGN_LINE_2-
public static final C OWNER_SIGN_LINE_3-
public static final C OWNER_SIGN_LINE_4-
public static final C HELP_HEADER-
public static final C HELP_CATEGORY-
public static final C HELP_INFO-
public static final C HELP_INFO_ITEM-
public static final C HELP_ITEM-
public static final C DIRECTION-
public static final C CUSTOM_STRING-
public static C[] values()-
-for (C c : C.values()) - System.out.println(c); --
public static C valueOf(java.lang.String name)-
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the
- specified name
- java.lang.NullPointerException
- if the argument is nullpublic static void setupTranslations()-
public static void saveTranslations()-
public java.lang.String d()-
public java.lang.String s()-
public java.lang.String translated()-
public abstract static class Configuration.SettingValue
-extends java.lang.Object
- Constructor and Description | -
---|
Configuration.SettingValue(java.lang.String type)
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- getType()
- |
-
java.lang.Object |
- parseObject(java.lang.Object object)
- |
-
abstract java.lang.Object |
- parseString(java.lang.String string)
- |
-
abstract boolean |
- validateValue(java.lang.String string)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public Configuration.SettingValue(java.lang.String type)-
public java.lang.String getType()-
public java.lang.Object parseObject(java.lang.Object object)-
public abstract java.lang.Object parseString(java.lang.String string)-
public abstract boolean validateValue(java.lang.String string)-
public class Configuration
-extends java.lang.Object
- Modifier and Type | -Class and Description | -
---|---|
static class |
- Configuration.SettingValue
-
- Create your own SettingValue object to make the management of
- plotworld
- configuration easier
-
- |
-
Modifier and Type | -Field and Description | -
---|---|
static Configuration.SettingValue
- |
- BIOME
- |
-
static Configuration.SettingValue
- |
- BLOCK
- |
-
static Configuration.SettingValue
- |
- BLOCKLIST
- |
-
static Configuration.SettingValue
- |
- BOOLEAN
- |
-
static Configuration.SettingValue
- |
- DOUBLE
- |
-
static Configuration.SettingValue
- |
- INTEGER
- |
-
static Configuration.SettingValue
- |
- STRING
- |
-
static Configuration.SettingValue
- |
- STRINGLIST
- |
-
Constructor and Description | -
---|
Configuration()
- |
-
public static final Configuration.SettingValue STRING-
public static final Configuration.SettingValue STRINGLIST-
public static final Configuration.SettingValue INTEGER-
public static final Configuration.SettingValue BOOLEAN-
public static final Configuration.SettingValue DOUBLE-
public static final Configuration.SettingValue BIOME-
public static final Configuration.SettingValue BLOCK-
public static final Configuration.SettingValue BLOCKLIST-
public class ConfigurationNode
-extends java.lang.Object
- Constructor and Description | -
---|
ConfigurationNode(java.lang.String constant,
- java.lang.Object default_value,
- java.lang.String description,
- Configuration.SettingValue type,
- boolean required) |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- getConstant()
- |
-
java.lang.Object |
- getDefaultValue()
- |
-
java.lang.String |
- getDescription()
- |
-
Configuration.SettingValue
- |
- getType()
- |
-
java.lang.Object |
- getValue()
- |
-
boolean |
- isValid(java.lang.String string)
- |
-
boolean |
- setValue(java.lang.String string)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public ConfigurationNode(java.lang.String constant, - java.lang.Object default_value, - java.lang.String description, - Configuration.SettingValue type, - boolean required)-
public Configuration.SettingValue getType()-
public boolean isValid(java.lang.String string)-
public boolean setValue(java.lang.String string)-
public java.lang.Object getValue()-
public java.lang.String getConstant()-
public java.lang.Object getDefaultValue()-
public java.lang.String getDescription()-
public static class Settings.DB
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
static java.lang.String |
- DATABASE
-
- MySQL DB
- |
-
static java.lang.String |
- HOST_NAME
-
- MySQL Host name
- |
-
static java.lang.String |
- PASSWORD
-
- MySQL Password
- |
-
static java.lang.String |
- PORT
-
- MySQL Port
- |
-
static java.lang.String |
- PREFIX
-
- MySQL Prefix
- |
-
static java.lang.String |
- SQLITE_DB
-
- SQLite Database name
- |
-
static boolean |
- USE_MONGO
-
- MongoDB enabled?
- |
-
static boolean |
- USE_MYSQL
-
- MySQL Enabled?
- |
-
static boolean |
- USE_SQLITE
-
- SQLite enabled?
- |
-
static java.lang.String |
- USER
-
- MySQL User
- |
-
Constructor and Description | -
---|
Settings.DB()
- |
-
public static boolean USE_MONGO-
public static boolean USE_SQLITE-
public static boolean USE_MYSQL-
public static java.lang.String SQLITE_DB-
public static java.lang.String HOST_NAME-
public static java.lang.String PORT-
public static java.lang.String DATABASE-
public static java.lang.String USER-
public static java.lang.String PASSWORD-
public static java.lang.String PREFIX-
public class Settings
-extends java.lang.Object
- Modifier and Type | -Class and Description | -
---|---|
static class |
- Settings.DB
-
- Database settings
- |
-
Modifier and Type | -Field and Description | -
---|---|
static java.lang.String |
- API_URL
-
- API Location
- |
-
static boolean |
- AUTO_CLEAR
-
- Auto clear enabled
- |
-
static int |
- AUTO_CLEAR_DAYS
-
- Days until a plot gets cleared
- |
-
static boolean |
- CUSTOM_API
-
- Use the custom API
- |
-
static boolean |
- DEBUG
-
- Verbose?
- |
-
static boolean |
- DELETE_PLOTS_ON_BAN
-
- Delete plots on ban?
- |
-
static boolean |
- KILL_ROAD_MOBS
-
- Kill road mobs?
- |
-
static boolean |
- KILL_ROAD_MOBS_DEFAULT
-
- Default kill road mobs: true
- |
-
static int |
- MAX_PLOTS
-
- Max allowed plots
- |
-
static boolean |
- METRICS
-
- metrics
- |
-
static int |
- MOB_CAP
- |
-
static boolean |
- MOB_CAP_ENABLED
- |
-
static boolean |
- MOB_PATHFINDING
-
- mob pathfinding?
- |
-
static boolean |
- MOB_PATHFINDING_DEFAULT
-
- Default mob pathfinding: true
- |
-
static java.lang.String |
- PLOT_SPECIFIC_RESOURCE_PACK
-
- plot specific resource pack
- |
-
static java.lang.String |
- SCHEMATIC_SAVE_PATH
-
- Schematic Save Path
- |
-
static boolean |
- TITLES
- |
-
static boolean |
- WORLDGUARD
-
- WorldGuard region on claimed plots
- |
-
public static boolean MOB_CAP_ENABLED-
public static int MOB_CAP-
public static boolean TITLES-
public static java.lang.String SCHEMATIC_SAVE_PATH-
public static int MAX_PLOTS-
public static boolean WORLDGUARD-
public static boolean METRICS-
public static java.lang.String PLOT_SPECIFIC_RESOURCE_PACK-
public static boolean KILL_ROAD_MOBS-
public static boolean KILL_ROAD_MOBS_DEFAULT-
public static boolean MOB_PATHFINDING-
public static boolean MOB_PATHFINDING_DEFAULT-
public static boolean DELETE_PLOTS_ON_BAN-
public static boolean DEBUG-
public static boolean AUTO_CLEAR-
public static int AUTO_CLEAR_DAYS-
public static java.lang.String API_URL-
public static boolean CUSTOM_API-
Class | -Description | -
---|---|
Configuration | -
- Main Configuration Utility
- |
-
Configuration.SettingValue | -
- Create your own SettingValue object to make the management of plotworld
- configuration easier
-
- |
-
ConfigurationNode | -- |
Settings | -
- Updater and DB settings
- |
-
Settings.DB | -
- Database settings
- |
-
Enum | -Description | -
---|---|
C | -
- Captions class.
- |
-
public abstract class AbstractDB
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
java.util.UUID |
- everyone
- |
-
Constructor and Description | -
---|
AbstractDB()
- |
-
Modifier and Type | -Method and Description | -
---|---|
abstract void |
- createAllSettingsAndHelpers(java.util.ArrayList<Plot> plots) |
-
abstract void |
- createPlot(Plot plot)
-
- Create a plot
- |
-
abstract void |
- createPlots(java.util.ArrayList<Plot> plots)
-
- Create a plot
- |
-
abstract void |
- createPlotSettings(int id,
- Plot plot)
-
- Create plot settings
- |
-
abstract void |
- createTables(java.lang.String database,
- boolean add_constraint)
-
- Create tables
- |
-
abstract void |
- delete(java.lang.String world,
- Plot plot)
-
- Delete a plot
- |
-
abstract java.util.ArrayList<PlotComment> |
- getComments(java.lang.String world,
- Plot plot,
- int tier) |
-
abstract int |
- getId(java.lang.String world,
- PlotId id2) |
-
abstract java.util.LinkedHashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> |
- getPlots()
- |
-
abstract double |
- getRatings(Plot plot) |
-
abstract java.util.HashMap<java.lang.String,java.lang.Object>
- |
- getSettings(int id)
- |
-
abstract void |
- purge(java.lang.String world)
- |
-
abstract void |
- purge(java.lang.String world,
- PlotId id) |
-
abstract void |
- removeComment(java.lang.String world,
- Plot plot,
- PlotComment comment)
- |
-
abstract void |
- removeDenied(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
abstract void |
- removeHelper(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
abstract void |
- removeTrusted(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
abstract void |
- setAlias(java.lang.String world,
- Plot plot,
- java.lang.String alias) |
-
abstract void |
- setComment(java.lang.String world,
- Plot plot,
- PlotComment comment)
- |
-
abstract void |
- setDenied(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
abstract void |
- setFlags(java.lang.String world,
- Plot plot,
- Flag[] flags) |
-
abstract void |
- setHelper(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
abstract void |
- setMerged(java.lang.String world,
- Plot plot,
- boolean[] merged) |
-
abstract void |
- setOwner(Plot plot,
- java.util.UUID uuid)
-
- Set Plot owner
- |
-
abstract void |
- setPosition(java.lang.String world,
- Plot plot,
- java.lang.String position) |
-
abstract void |
- setTrusted(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- public abstract void setOwner(Plot plot, - java.util.UUID uuid)-
plot
-uuid
-public abstract void createAllSettingsAndHelpers(java.util.ArrayList<Plot> plots)-
public abstract void createPlots(java.util.ArrayList<Plot> plots)-
plots
-public abstract void createPlot(Plot plot)-
plot
-public abstract void createTables(java.lang.String database, - boolean add_constraint) - throws java.lang.Exception-
java.sql.SQLException
java.lang.Exception
public abstract void delete(java.lang.String world, - Plot plot)-
plot
-public abstract void createPlotSettings(int id, - Plot plot)-
id
-plot
-public abstract int getId(java.lang.String world, - PlotId id2)-
public abstract java.util.LinkedHashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> getPlots()-
public abstract void setMerged(java.lang.String world, - Plot plot, - boolean[] merged)-
public abstract void setFlags(java.lang.String world, - Plot plot, - Flag[] flags)-
public abstract void setAlias(java.lang.String world, - Plot plot, - java.lang.String alias)-
plot
-alias
-public abstract void purge(java.lang.String world, - PlotId id)-
public abstract void purge(java.lang.String world)-
public abstract void setPosition(java.lang.String world, - Plot plot, - java.lang.String position)-
plot
-position
-public abstract java.util.HashMap<java.lang.String,java.lang.Object> getSettings(int id)-
id
-public abstract void removeHelper(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
plot
-player
-public abstract void removeTrusted(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
plot
-player
-public abstract void setHelper(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
plot
-player
-public abstract void setTrusted(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
plot
-player
-public abstract void removeDenied(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
plot
-player
-public abstract void setDenied(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
plot
-player
-public abstract double getRatings(Plot plot)-
public abstract void removeComment(java.lang.String world, - Plot plot, - PlotComment comment)-
public abstract void setComment(java.lang.String world, - Plot plot, - PlotComment comment)-
public abstract java.util.ArrayList<PlotComment> getComments(java.lang.String world, - Plot plot, - int tier)-
public class DBFunc
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
static AbstractDB |
- dbManager
- |
-
static java.util.UUID |
- everyone
- |
-
Constructor and Description | -
---|
DBFunc()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
- createAllSettingsAndHelpers(java.util.ArrayList<Plot> plots) |
-
static void |
- createPlot(Plot plot)
-
- Create a plot
- |
-
static void |
- createPlots(java.util.ArrayList<Plot> plots)
-
- Create a plot
- |
-
static void |
- createPlotSettings(int id,
- Plot plot)
-
- Create plot settings
- |
-
static void |
- createTables(java.lang.String database,
- boolean add_constraint)
-
- Create tables
- |
-
static void |
- delete(java.lang.String world,
- Plot plot)
-
- Delete a plot
- |
-
static java.util.ArrayList<PlotComment> |
- getCommenst(java.lang.String world,
- Plot plot,
- int tier) |
-
static int |
- getId(java.lang.String world,
- PlotId id2)
-
- Get a plot id
- |
-
static java.util.LinkedHashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> |
- getPlots()
- |
-
static double |
- getRatings(Plot plot) |
-
static java.util.HashMap<java.lang.String,java.lang.Object> |
- getSettings(int id)
- |
-
static void |
- purge(java.lang.String world)
- |
-
static void |
- purge(java.lang.String world,
- PlotId id) |
-
static void |
- removeComment(java.lang.String world,
- Plot plot,
- PlotComment comment)
- |
-
static void |
- removeDenied(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
static void |
- removeHelper(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
static void |
- removeTrusted(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
static void |
- setAlias(java.lang.String world,
- Plot plot,
- java.lang.String alias) |
-
static void |
- setComment(java.lang.String world,
- Plot plot,
- PlotComment comment)
- |
-
static void |
- setDenied(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
static void |
- setFlags(java.lang.String world,
- Plot plot,
- Flag[] flags) |
-
static void |
- setHelper(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
static void |
- setMerged(java.lang.String world,
- Plot plot,
- boolean[] merged) |
-
static void |
- setOwner(Plot plot,
- java.util.UUID uuid)
-
- Set Plot owner
- |
-
static void |
- setPosition(java.lang.String world,
- Plot plot,
- java.lang.String position) |
-
static void |
- setTrusted(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- public static AbstractDB dbManager-
public static java.util.UUID everyone-
public static void setOwner(Plot plot, - java.util.UUID uuid)-
plot
-uuid
-public static void createAllSettingsAndHelpers(java.util.ArrayList<Plot> plots)-
public static void createPlots(java.util.ArrayList<Plot> plots)-
plots
-public static void createPlot(Plot plot)-
plot
-public static void createTables(java.lang.String database, - boolean add_constraint) - throws java.lang.Exception-
java.lang.Exception
public static void delete(java.lang.String world, - Plot plot)-
plot
-public static void createPlotSettings(int id, - Plot plot)-
id
-plot
-public static int getId(java.lang.String world, - PlotId id2)-
plot_id
-public static java.util.LinkedHashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> getPlots()-
public static void setMerged(java.lang.String world, - Plot plot, - boolean[] merged)-
public static void setAlias(java.lang.String world, - Plot plot, - java.lang.String alias)-
plot
-alias
-public static void purge(java.lang.String world, - PlotId id)-
public static void purge(java.lang.String world)-
public static void setPosition(java.lang.String world, - Plot plot, - java.lang.String position)-
plot
-position
-public static java.util.HashMap<java.lang.String,java.lang.Object> getSettings(int id)-
id
-public static void removeComment(java.lang.String world, - Plot plot, - PlotComment comment)-
plot
-comment
-public static void setComment(java.lang.String world, - Plot plot, - PlotComment comment)-
plot
-comment
-public static java.util.ArrayList<PlotComment> getCommenst(java.lang.String world, - Plot plot, - int tier)-
plot
-public static void removeHelper(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
plot
-player
-public static void removeTrusted(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
plot
-player
-public static void setHelper(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
plot
-player
-public static void setTrusted(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
plot
-player
-public static void removeDenied(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
plot
-player
-public static void setDenied(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
plot
-player
-public static double getRatings(Plot plot)-
Modifier and Type | -Field and Description | -
---|---|
protected org.bukkit.plugin.Plugin |
- plugin
-
- Plugin instance, use for plugin.getDataFolder()
- |
-
Modifier | -Constructor and Description | -
---|---|
protected |
- Database(org.bukkit.plugin.Plugin plugin)
-
- Creates a new Database
- |
-
Modifier and Type | -Method and Description | -
---|---|
abstract boolean |
- checkConnection()
-
- Checks if a connection is open with the database
- |
-
abstract boolean |
- closeConnection()
-
- Closes the connection with the database
- |
-
abstract java.sql.Connection |
- getConnection()
-
- Gets the connection with the database
- |
-
abstract java.sql.Connection |
- openConnection()
-
- Opens a connection with the database
- |
-
abstract java.sql.ResultSet |
- querySQL(java.lang.String query)
-
- Executes a SQL Query
- - If the connection is closed, it will be opened - |
-
abstract int |
- updateSQL(java.lang.String query)
-
- Executes an Update SQL Query
- - See Statement.executeUpdate(String) - If the connection is closed, it will be opened - |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
protected org.bukkit.plugin.Plugin plugin-
protected Database(org.bukkit.plugin.Plugin plugin)-
plugin
- Plugin instancepublic abstract java.sql.Connection openConnection() - throws java.sql.SQLException, - java.lang.ClassNotFoundException-
java.sql.SQLException
- if the connection can not be openedjava.lang.ClassNotFoundException
- if the driver cannot be foundpublic abstract boolean checkConnection() - throws java.sql.SQLException-
java.sql.SQLException
- if the connection cannot be checkedpublic abstract java.sql.Connection getConnection()-
public abstract boolean closeConnection() - throws java.sql.SQLException-
java.sql.SQLException
- if the connection cannot be closedpublic abstract java.sql.ResultSet querySQL(java.lang.String query) - throws java.sql.SQLException, - java.lang.ClassNotFoundException-
query
- Query to be runjava.sql.SQLException
- If the query cannot be executedjava.lang.ClassNotFoundException
- If the driver cannot be found; see
- openConnection()
- public abstract int updateSQL(java.lang.String query) - throws java.sql.SQLException, - java.lang.ClassNotFoundException-
Statement.executeUpdate(String)
query
- Query to be runStatement.executeUpdate(String)
java.sql.SQLException
- If the query cannot be executedjava.lang.ClassNotFoundException
- If the driver cannot be found; see
- openConnection()
- public class FlatFileManager
-extends java.lang.Object
- Constructor and Description | -
---|
FlatFileManager()
- |
-
public class MySQL -extends Database-
Constructor and Description | -
---|
MySQL(org.bukkit.plugin.Plugin plugin,
- java.lang.String hostname,
- java.lang.String port,
- java.lang.String database,
- java.lang.String username,
- java.lang.String password)
-
- Creates a new MySQL instance
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- checkConnection()
-
- Checks if a connection is open with the database
- |
-
boolean |
- closeConnection()
-
- Closes the connection with the database
- |
-
java.sql.Connection |
- getConnection()
-
- Gets the connection with the database
- |
-
java.sql.Connection |
- openConnection()
-
- Opens a connection with the database
- |
-
java.sql.ResultSet |
- querySQL(java.lang.String query)
-
- Executes a SQL Query
- - If the connection is closed, it will be opened - |
-
int |
- updateSQL(java.lang.String query)
-
- Executes an Update SQL Query
- - See Statement.executeUpdate(String) - If the connection is closed, it will be opened - |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public MySQL(org.bukkit.plugin.Plugin plugin, - java.lang.String hostname, - java.lang.String port, - java.lang.String database, - java.lang.String username, - java.lang.String password)-
plugin
- Plugin instancehostname
- Name of the hostport
- Port numberdatabase
- Database nameusername
- Usernamepassword
- Passwordpublic java.sql.Connection openConnection() - throws java.sql.SQLException, - java.lang.ClassNotFoundException-
Database
- openConnection
in
- class Database
- java.sql.SQLException
- if the connection can not be openedjava.lang.ClassNotFoundException
- if the driver cannot be foundpublic boolean checkConnection() - throws java.sql.SQLException-
Database
- checkConnection
in
- class Database
- java.sql.SQLException
- if the connection cannot be checkedpublic java.sql.Connection getConnection()-
Database
- getConnection
in
- class Database
- public boolean closeConnection() - throws java.sql.SQLException-
Database
- closeConnection
in
- class Database
- java.sql.SQLException
- if the connection cannot be closedpublic java.sql.ResultSet querySQL(java.lang.String query) - throws java.sql.SQLException, - java.lang.ClassNotFoundException-
Database
- querySQL
in
- class Database
- query
- Query to be runjava.sql.SQLException
- If the query cannot be executedjava.lang.ClassNotFoundException
- If the driver cannot be found; see
- Database.openConnection()
- public int updateSQL(java.lang.String query) - throws java.sql.SQLException, - java.lang.ClassNotFoundException-
Database
- Statement.executeUpdate(String)
updateSQL
in
- class Database
- query
- Query to be runStatement.executeUpdate(String)
java.sql.SQLException
- If the query cannot be executedjava.lang.ClassNotFoundException
- If the driver cannot be found; see
- Database.openConnection()
- public class PlotMeConverter
-extends java.lang.Object
- Constructor and Description | -
---|
PlotMeConverter(PlotMain plugin)
-
- Constructor
- |
-
public class SQLManager -extends AbstractDB-
Modifier and Type | -Field and Description | -
---|---|
java.lang.String |
- CREATE_HELPERS
- |
-
java.lang.String |
- CREATE_PLOT
- |
-
java.lang.String |
- CREATE_PLOTS
- |
-
java.lang.String |
- CREATE_SETTINGS
- |
-
java.lang.String |
- GET_ALL_PLOTS
- |
-
java.lang.String |
- SET_OWNER
- |
-
everyone
- Constructor and Description | -
---|
SQLManager(java.sql.Connection c,
- java.lang.String p)
-
- Constructor
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- createAllSettingsAndHelpers(java.util.ArrayList<Plot> plots) |
-
void |
- createPlot(Plot plot)
-
- Create a plot
- |
-
void |
- createPlots(java.util.ArrayList<Plot> plots)
-
- Create a plot
- |
-
void |
- createPlotSettings(int id,
- Plot plot)
-
- Create plot settings
- |
-
void |
- createTables(java.lang.String database,
- boolean add_constraint)
-
- Create tables
- |
-
void |
- delete(java.lang.String world,
- Plot plot)
-
- Delete a plot
- |
-
java.util.ArrayList<PlotComment> |
- getComments(java.lang.String world,
- Plot plot,
- int tier) |
-
int |
- getId(java.lang.String world,
- PlotId id2) |
-
java.util.LinkedHashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> |
- getPlots()
- |
-
double |
- getRatings(Plot plot) |
-
java.util.HashMap<java.lang.String,java.lang.Object> |
- getSettings(int id)
- |
-
void |
- purge(java.lang.String world)
- |
-
void |
- purge(java.lang.String world,
- PlotId id) |
-
void |
- removeComment(java.lang.String world,
- Plot plot,
- PlotComment comment)
- |
-
void |
- removeDenied(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
void |
- removeHelper(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
void |
- removeTrusted(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
void |
- setAlias(java.lang.String world,
- Plot plot,
- java.lang.String alias) |
-
void |
- setComment(java.lang.String world,
- Plot plot,
- PlotComment comment)
- |
-
void |
- setDenied(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
void |
- setFlags(int id,
- Flag[] flags) |
-
void |
- setFlags(java.lang.String world,
- Plot plot,
- Flag[] flags) |
-
void |
- setHelper(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
void |
- setMerged(java.lang.String world,
- Plot plot,
- boolean[] merged) |
-
void |
- setOwner(Plot plot,
- java.util.UUID uuid)
-
- Set Plot owner
- |
-
void |
- setPosition(java.lang.String world,
- Plot plot,
- java.lang.String position) |
-
void |
- setTrusted(java.lang.String world,
- Plot plot,
- org.bukkit.OfflinePlayer player) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- public final java.lang.String SET_OWNER-
public final java.lang.String GET_ALL_PLOTS-
public final java.lang.String CREATE_PLOTS-
public final java.lang.String CREATE_SETTINGS-
public final java.lang.String CREATE_HELPERS-
public final java.lang.String CREATE_PLOT-
public SQLManager(java.sql.Connection c, - java.lang.String p)-
c
- connectionp
- prefixpublic void setOwner(Plot plot, - java.util.UUID uuid)-
setOwner
in
- class AbstractDB
plot
- Plot Objectuuid
- Owner UUIDpublic void createAllSettingsAndHelpers(java.util.ArrayList<Plot> plots)-
createAllSettingsAndHelpers
in
- class AbstractDB
public void createPlots(java.util.ArrayList<Plot> plots)-
createPlots
in
- class AbstractDB
plots
-public void createPlot(Plot plot)-
createPlot
in
- class AbstractDB
plot
-public void createTables(java.lang.String database, - boolean add_constraint) - throws java.sql.SQLException-
createTables
in
- class AbstractDB
java.sql.SQLException
public void delete(java.lang.String world, - Plot plot)-
delete
in
- class AbstractDB
plot
-public void createPlotSettings(int id, - Plot plot)-
createPlotSettings
in
- class AbstractDB
id
-plot
-public int getId(java.lang.String world, - PlotId id2)-
getId
in
- class AbstractDB
public java.util.LinkedHashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> getPlots()-
getPlots
in
- class AbstractDB
public void setMerged(java.lang.String world, - Plot plot, - boolean[] merged)-
setMerged
in
- class AbstractDB
public void setFlags(java.lang.String world, - Plot plot, - Flag[] flags)-
setFlags
in
- class AbstractDB
public void setFlags(int id, - Flag[] flags)-
public void setAlias(java.lang.String world, - Plot plot, - java.lang.String alias)-
setAlias
in
- class AbstractDB
plot
-alias
-public void purge(java.lang.String world, - PlotId id)-
purge
in
- class AbstractDB
public void purge(java.lang.String world)-
purge
in
- class AbstractDB
public void setPosition(java.lang.String world, - Plot plot, - java.lang.String position)-
setPosition
in
- class AbstractDB
plot
-position
-public java.util.HashMap<java.lang.String,java.lang.Object> getSettings(int id)-
getSettings
in
- class AbstractDB
id
-public void removeComment(java.lang.String world, - Plot plot, - PlotComment comment)-
removeComment
in
- class AbstractDB
public java.util.ArrayList<PlotComment> getComments(java.lang.String world, - Plot plot, - int tier)-
getComments
in
- class AbstractDB
public void setComment(java.lang.String world, - Plot plot, - PlotComment comment)-
setComment
in
- class AbstractDB
public void removeHelper(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
removeHelper
in
- class AbstractDB
plot
-player
-public void removeTrusted(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
removeTrusted
in
- class AbstractDB
plot
-player
-public void setHelper(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
setHelper
in
- class AbstractDB
plot
-player
-public void setTrusted(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
setTrusted
in
- class AbstractDB
plot
-player
-public void removeDenied(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
removeDenied
in
- class AbstractDB
plot
-player
-public void setDenied(java.lang.String world, - Plot plot, - org.bukkit.OfflinePlayer player)-
setDenied
in
- class AbstractDB
plot
-player
-public double getRatings(Plot plot)-
getRatings
in
- class AbstractDB
public class SQLite -extends Database-
Constructor and Description | -
---|
SQLite(org.bukkit.plugin.Plugin plugin,
- java.lang.String dbLocation)
-
- Creates a new SQLite instance
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- checkConnection()
-
- Checks if a connection is open with the database
- |
-
boolean |
- closeConnection()
-
- Closes the connection with the database
- |
-
java.sql.Connection |
- getConnection()
-
- Gets the connection with the database
- |
-
java.sql.Connection |
- openConnection()
-
- Opens a connection with the database
- |
-
java.sql.ResultSet |
- querySQL(java.lang.String query)
-
- Executes a SQL Query
- - If the connection is closed, it will be opened - |
-
int |
- updateSQL(java.lang.String query)
-
- Executes an Update SQL Query
- - See Statement.executeUpdate(String) - If the connection is closed, it will be opened - |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public SQLite(org.bukkit.plugin.Plugin plugin, - java.lang.String dbLocation)-
plugin
- Plugin instancedbLocation
- Location of the Database (Must end in .db)public java.sql.Connection openConnection() - throws java.sql.SQLException, - java.lang.ClassNotFoundException-
Database
- openConnection
in
- class Database
- java.sql.SQLException
- if the connection can not be openedjava.lang.ClassNotFoundException
- if the driver cannot be foundpublic boolean checkConnection() - throws java.sql.SQLException-
Database
- checkConnection
in
- class Database
- java.sql.SQLException
- if the connection cannot be checkedpublic java.sql.Connection getConnection()-
Database
- getConnection
in
- class Database
- public boolean closeConnection() - throws java.sql.SQLException-
Database
- closeConnection
in
- class Database
- java.sql.SQLException
- if the connection cannot be closedpublic java.sql.ResultSet querySQL(java.lang.String query) - throws java.sql.SQLException, - java.lang.ClassNotFoundException-
Database
- querySQL
in
- class Database
- query
- Query to be runjava.sql.SQLException
- If the query cannot be executedjava.lang.ClassNotFoundException
- If the driver cannot be found; see
- Database.openConnection()
- public int updateSQL(java.lang.String query) - throws java.sql.SQLException, - java.lang.ClassNotFoundException-
Database
- Statement.executeUpdate(String)
updateSQL
in
- class Database
- query
- Query to be runStatement.executeUpdate(String)
java.sql.SQLException
- If the query cannot be executedjava.lang.ClassNotFoundException
- If the driver cannot be found; see
- Database.openConnection()
- Class | -Description | -
---|---|
AbstractDB | -- |
Database | -
- Abstract Database class, serves as a base for any connection method (MySQL,
- SQLite, etc.)
-
- |
-
DBFunc | -- |
FlatFileManager | -
- Created by Citymonstret on 2014-09-23.
- |
-
MySQL | -
- Connects to and uses a MySQL database
- |
-
PlotMeConverter | -
- Created 2014-08-17 for PlotSquared
- |
-
SQLite | -
- Connects to and uses a SQLite database
- |
-
SQLManager | -- |
public class PlotTable -extends SQLTable-
Constructor and Description | -
---|
PlotTable()
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- create()
- |
-
getFields,
- toString
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public class SQLField
-extends java.lang.Object
- Constructor and Description | -
---|
SQLField(SQLType type,
- java.lang.Object value) |
-
Modifier and Type | -Method and Description | -
---|---|
SQLType
- |
- getType()
- |
-
java.lang.Object |
- getValue()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public abstract class SQLTable
-extends java.lang.Object
- Constructor and Description | -
---|
SQLTable(java.lang.String name,
- java.lang.String primaryKey,
- SQLField... fields)
- |
-
Modifier and Type | -Method and Description | -
---|---|
abstract void |
- create()
- |
-
SQLField[]
- |
- getFields()
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
Enum Constant and Description | -
---|
BOOL
- |
-
INTEGER
- |
-
VARCHAR
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Object |
- getDefaultValue()
- |
-
java.lang.Class |
- getJavaClass()
- |
-
int |
- getLength()
- |
-
java.lang.String |
- toString()
- |
-
static SQLType
- |
- valueOf(java.lang.String name)
-
- Returns the enum constant of this type with the specified name.
- |
-
static SQLType[]
- |
- values()
-
- Returns an array containing the constants of this enum type, in
- the order they are declared.
-
- |
-
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal,
- valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final SQLType INTEGER-
public static final SQLType VARCHAR-
public static final SQLType BOOL-
public static SQLType[] values()-
-for (SQLType c : SQLType.values()) - System.out.println(c); --
public static SQLType valueOf(java.lang.String name)-
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
- with the specified name
- java.lang.NullPointerException
- if the argument is nullpublic int getLength()-
public java.lang.String toString()-
toString
in class java.lang.Enum<SQLType>
-
public java.lang.Class getJavaClass()-
public java.lang.Object getDefaultValue()-
Class | -Description | -
---|---|
PlotTable | -
- Created by Citymonstret on 2014-10-28.
- |
-
SQLField | -
- Created by Citymonstret on 2014-10-28.
- |
-
SQLTable | -
- Created by Citymonstret on 2014-10-28.
- |
-
Enum | -Description | -
---|---|
SQLType | -
- Created by Citymonstret on 2014-10-28.
- |
-
public class PlayerClaimPlotEvent
-extends org.bukkit.event.player.PlayerEvent
-implements org.bukkit.event.Cancellable
- org.bukkit.event.Event.Result
player
Constructor and Description | -
---|
PlayerClaimPlotEvent(org.bukkit.entity.Player player,
- Plot plot)
-
- PlayerClaimPlotEvent: Called when a plot is claimed
- |
-
Modifier and Type | -Method and Description | -
---|---|
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
Plot |
- getPlot()
-
- Get the plot involved
- |
-
boolean |
- isCancelled()
- |
-
void |
- setCancelled(boolean b)
- |
-
getPlayer
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public PlayerClaimPlotEvent(org.bukkit.entity.Player player, - Plot plot)-
player
-plot
-public static org.bukkit.event.HandlerList getHandlerList()-
public Plot getPlot()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public boolean isCancelled()-
isCancelled
in
- interface org.bukkit.event.Cancellable
public void setCancelled(boolean b)-
setCancelled
in
- interface org.bukkit.event.Cancellable
public class PlayerEnterPlotEvent
-extends org.bukkit.event.player.PlayerEvent
- org.bukkit.event.Event.Result
player
Constructor and Description | -
---|
PlayerEnterPlotEvent(org.bukkit.entity.Player player,
- Plot plot)
-
- PlayerEnterPlotEvent: Called when a player leaves a plot
- |
-
Modifier and Type | -Method and Description | -
---|---|
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
Plot |
- getPlot()
-
- Get the plot involved
- |
-
getPlayer
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public PlayerEnterPlotEvent(org.bukkit.entity.Player player, - Plot plot)-
player
-plot
-public static org.bukkit.event.HandlerList getHandlerList()-
public Plot getPlot()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public class PlayerLeavePlotEvent
-extends org.bukkit.event.player.PlayerEvent
- org.bukkit.event.Event.Result
player
Constructor and Description | -
---|
PlayerLeavePlotEvent(org.bukkit.entity.Player player,
- Plot plot)
-
- PlayerLeavePlotEvent: Called when a player leaves a plot
- |
-
Modifier and Type | -Method and Description | -
---|---|
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
Plot |
- getPlot()
-
- Get the plot involved
- |
-
getPlayer
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public PlayerLeavePlotEvent(org.bukkit.entity.Player player, - Plot plot)-
player
-plot
-public static org.bukkit.event.HandlerList getHandlerList()-
public Plot getPlot()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public class PlayerPlotDeniedEvent
-extends org.bukkit.event.Event
- org.bukkit.event.Event.Result
Constructor and Description | -
---|
PlayerPlotDeniedEvent(org.bukkit.entity.Player initiator,
- Plot plot,
- java.util.UUID player,
- boolean added)
-
- PlayerPlotDeniedEvent: Called when the denied UUID list is modified
- for a
- plot
-
- |
-
Modifier and Type | -Method and Description | -
---|---|
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
org.bukkit.entity.Player |
- getInitiator()
-
- The player initiating the action
- |
-
java.util.UUID |
- getPlayer()
-
- The player added/removed
- |
-
Plot |
- getPlot()
-
- The plot involved
- |
-
boolean |
- wasAdded()
-
- If a user was added
- |
-
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public PlayerPlotDeniedEvent(org.bukkit.entity.Player initiator, - Plot plot, - java.util.UUID player, - boolean added)-
initiator
-plot
-player
-added
-public static org.bukkit.event.HandlerList getHandlerList()-
public boolean wasAdded()-
public java.util.UUID getPlayer()-
public Plot getPlot()-
public org.bukkit.entity.Player getInitiator()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public class PlayerPlotHelperEvent
-extends org.bukkit.event.Event
- org.bukkit.event.Event.Result
Constructor and Description | -
---|
PlayerPlotHelperEvent(org.bukkit.entity.Player initiator,
- Plot plot,
- java.util.UUID player,
- boolean added)
-
- PlayerPlotHelperEvent: Called when a plot helper is added/removed
-
- |
-
Modifier and Type | -Method and Description | -
---|---|
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
org.bukkit.entity.Player |
- getInitiator()
-
- The player initiating the action
- |
-
java.util.UUID |
- getPlayer()
-
- The UUID added/removed
- |
-
Plot |
- getPlot()
-
- The plot involved
- |
-
boolean |
- wasAdded()
-
- If a player was added
- |
-
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public PlayerPlotHelperEvent(org.bukkit.entity.Player initiator, - Plot plot, - java.util.UUID player, - boolean added)-
initiator
-plot
-player
-added
-public static org.bukkit.event.HandlerList getHandlerList()-
public boolean wasAdded()-
public java.util.UUID getPlayer()-
public Plot getPlot()-
public org.bukkit.entity.Player getInitiator()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public class PlayerPlotTrustedEvent
-extends org.bukkit.event.Event
- org.bukkit.event.Event.Result
Constructor and Description | -
---|
PlayerPlotTrustedEvent(org.bukkit.entity.Player initiator,
- Plot plot,
- java.util.UUID player,
- boolean added)
-
- PlayerPlotTrustedEvent: Called when a plot trusted user is
- added/removed
-
- |
-
Modifier and Type | -Method and Description | -
---|---|
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
org.bukkit.entity.Player |
- getInitiator()
-
- The player initiating the action
- |
-
java.util.UUID |
- getPlayer()
-
- The UUID added/removed
- |
-
Plot |
- getPlot()
-
- The plot involved
- |
-
boolean |
- wasAdded()
-
- If a player was added
- |
-
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public PlayerPlotTrustedEvent(org.bukkit.entity.Player initiator, - Plot plot, - java.util.UUID player, - boolean added)-
initiator
-plot
-player
-added
-public static org.bukkit.event.HandlerList getHandlerList()-
public boolean wasAdded()-
public java.util.UUID getPlayer()-
public Plot getPlot()-
public org.bukkit.entity.Player getInitiator()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public class PlayerTeleportToPlotEvent
-extends org.bukkit.event.player.PlayerEvent
-implements org.bukkit.event.Cancellable
- org.bukkit.event.Event.Result
player
Constructor and Description | -
---|
PlayerTeleportToPlotEvent(org.bukkit.entity.Player player,
- org.bukkit.Location from,
- Plot plot)
-
- PlayerTeleportToPlotEvent: Called when a player teleports to a plot
-
- |
-
Modifier and Type | -Method and Description | -
---|---|
org.bukkit.Location |
- getFrom()
-
- Get the from location
- |
-
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
Plot |
- getPlot()
-
- Get the plot involved
- |
-
boolean |
- isCancelled()
- |
-
void |
- setCancelled(boolean cancelled)
- |
-
getPlayer
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public PlayerTeleportToPlotEvent(org.bukkit.entity.Player player, - org.bukkit.Location from, - Plot plot)-
player
-from
-plot
-public static org.bukkit.event.HandlerList getHandlerList()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public org.bukkit.Location getFrom()-
public Plot getPlot()-
public boolean isCancelled()-
isCancelled
in
- interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)-
setCancelled
in
- interface org.bukkit.event.Cancellable
public class PlotClearEvent
-extends org.bukkit.event.Event
-implements org.bukkit.event.Cancellable
- org.bukkit.event.Event.Result
Constructor and Description | -
---|
PlotClearEvent(java.lang.String world,
- PlotId id)
-
- PlotDeleteEvent: Called when a plot is cleared
- |
-
Modifier and Type | -Method and Description | -
---|---|
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
PlotId |
- getPlotId()
-
- Get the PlotId
- |
-
java.lang.String |
- getWorld()
-
- Get the world name
- |
-
boolean |
- isCancelled()
- |
-
void |
- setCancelled(boolean b)
- |
-
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public PlotClearEvent(java.lang.String world, - PlotId id)-
world
-id
-public static org.bukkit.event.HandlerList getHandlerList()-
public PlotId getPlotId()-
public java.lang.String getWorld()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public boolean isCancelled()-
isCancelled
in
- interface org.bukkit.event.Cancellable
public void setCancelled(boolean b)-
setCancelled
in
- interface org.bukkit.event.Cancellable
public class PlotDeleteEvent
-extends org.bukkit.event.Event
-implements org.bukkit.event.Cancellable
- org.bukkit.event.Event.Result
Constructor and Description | -
---|
PlotDeleteEvent(java.lang.String world,
- PlotId id)
-
- PlotDeleteEvent: Called when a plot is deleted
- |
-
Modifier and Type | -Method and Description | -
---|---|
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
PlotId |
- getPlotId()
-
- Get the PlotId
- |
-
java.lang.String |
- getWorld()
-
- Get the world name
- |
-
boolean |
- isCancelled()
- |
-
void |
- setCancelled(boolean b)
- |
-
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public PlotDeleteEvent(java.lang.String world, - PlotId id)-
world
-id
-public static org.bukkit.event.HandlerList getHandlerList()-
public PlotId getPlotId()-
public java.lang.String getWorld()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public boolean isCancelled()-
isCancelled
in
- interface org.bukkit.event.Cancellable
public void setCancelled(boolean b)-
setCancelled
in
- interface org.bukkit.event.Cancellable
public class PlotFlagAddEvent
-extends org.bukkit.event.Event
-implements org.bukkit.event.Cancellable
- org.bukkit.event.Event.Result
Constructor and Description | -
---|
PlotFlagAddEvent(Flag flag,
- Plot plot)
-
- PlotFlagAddEvent: Called when a Flag is added to a plot
- |
-
Modifier and Type | -Method and Description | -
---|---|
Flag |
- getFlag()
-
- Get the flag involved
- |
-
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
Plot |
- getPlot()
-
- Get the plot involved
- |
-
boolean |
- isCancelled()
- |
-
void |
- setCancelled(boolean b)
- |
-
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static org.bukkit.event.HandlerList getHandlerList()-
public Plot getPlot()-
public Flag getFlag()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public boolean isCancelled()-
isCancelled
in
- interface org.bukkit.event.Cancellable
public void setCancelled(boolean b)-
setCancelled
in
- interface org.bukkit.event.Cancellable
public class PlotFlagRemoveEvent
-extends org.bukkit.event.Event
-implements org.bukkit.event.Cancellable
- org.bukkit.event.Event.Result
Constructor and Description | -
---|
PlotFlagRemoveEvent(Flag flag,
- Plot plot)
-
- PlotFlagRemoveEvent: Called when a flag is removed from a plot
- |
-
Modifier and Type | -Method and Description | -
---|---|
Flag |
- getFlag()
-
- Get the flag involved
- |
-
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
Plot |
- getPlot()
-
- Get the plot involved
- |
-
boolean |
- isCancelled()
- |
-
void |
- setCancelled(boolean b)
- |
-
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static org.bukkit.event.HandlerList getHandlerList()-
public Plot getPlot()-
public Flag getFlag()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public boolean isCancelled()-
isCancelled
in
- interface org.bukkit.event.Cancellable
public void setCancelled(boolean b)-
setCancelled
in
- interface org.bukkit.event.Cancellable
public class PlotMergeEvent
-extends org.bukkit.event.Event
-implements org.bukkit.event.Cancellable
- org.bukkit.event.Event.Result
Constructor and Description | -
---|
PlotMergeEvent(org.bukkit.World world,
- Plot plot,
- java.util.ArrayList<PlotId> plots)
-
- PlotMergeEvent: Called when plots are merged
- |
-
Modifier and Type | -Method and Description | -
---|---|
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
Plot |
- getPlot()
-
- Get the main plot
- |
-
java.util.ArrayList<PlotId> |
- getPlots()
-
- Get the plots being added;
- |
-
org.bukkit.World |
- getWorld()
- |
-
boolean |
- isCancelled()
- |
-
void |
- setCancelled(boolean b)
- |
-
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static org.bukkit.event.HandlerList getHandlerList()-
public java.util.ArrayList<PlotId> getPlots()-
public Plot getPlot()-
public org.bukkit.World getWorld()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public boolean isCancelled()-
isCancelled
in
- interface org.bukkit.event.Cancellable
public void setCancelled(boolean b)-
setCancelled
in
- interface org.bukkit.event.Cancellable
public class PlotUnlinkEvent
-extends org.bukkit.event.Event
-implements org.bukkit.event.Cancellable
- org.bukkit.event.Event.Result
Constructor and Description | -
---|
PlotUnlinkEvent(org.bukkit.World world,
- java.util.ArrayList<PlotId> plots)
-
- Called when a mega-plot is unlinked.
- |
-
Modifier and Type | -Method and Description | -
---|---|
static org.bukkit.event.HandlerList |
- getHandlerList()
- |
-
org.bukkit.event.HandlerList |
- getHandlers()
- |
-
java.util.ArrayList<PlotId> |
- getPlots()
-
- Get the plots involved
- |
-
org.bukkit.World |
- getWorld()
- |
-
boolean |
- isCancelled()
- |
-
void |
- setCancelled(boolean b)
- |
-
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public PlotUnlinkEvent(org.bukkit.World world, - java.util.ArrayList<PlotId> plots)-
world
-plots
-public static org.bukkit.event.HandlerList getHandlerList()-
public java.util.ArrayList<PlotId> getPlots()-
public org.bukkit.World getWorld()-
public org.bukkit.event.HandlerList getHandlers()-
getHandlers
in class org.bukkit.event.Event
public boolean isCancelled()-
isCancelled
in
- interface org.bukkit.event.Cancellable
public void setCancelled(boolean b)-
setCancelled
in
- interface org.bukkit.event.Cancellable
Class | -Description | -
---|---|
PlayerClaimPlotEvent | -
- Created by Citymonstret on 2014-08-09.
- |
-
PlayerEnterPlotEvent | -
- Created by Citymonstret on 2014-08-16.
- |
-
PlayerLeavePlotEvent | -
- Created by Citymonstret on 2014-08-16.
- |
-
PlayerPlotDeniedEvent | -
- Created by Citymonstret on 2014-08-16.
- |
-
PlayerPlotHelperEvent | -
- Created by Citymonstret on 2014-08-16.
- |
-
PlayerPlotTrustedEvent | -
- Created by Citymonstret on 2014-08-16.
- |
-
PlayerTeleportToPlotEvent | -
- Called when a player teleports to a plot
- |
-
PlotClearEvent - | -
- Called when a plot is cleared
- |
-
PlotDeleteEvent - | -
- Called when a plot is deleted
- |
-
PlotFlagAddEvent | -
- Called when a Flag is added to a plot
- |
-
PlotFlagRemoveEvent | -
- Called when a flag is removed from a plot
- |
-
PlotMergeEvent - | -
- Created by Citymonstret on 2014-08-09.
- |
-
PlotUnlinkEvent - | -
- Created by Citymonstret on 2014-08-09.
- |
-
public class AbstractFlag
-extends java.lang.Object
- Constructor and Description | -
---|
AbstractFlag(java.lang.String key)
-
- AbstractFlag is a parameter used in creating a new Flag
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- equals(java.lang.Object other)
- |
-
java.lang.String |
- getKey()
-
- AbstractFlag key
- |
-
java.lang.String |
- getValueDesc()
- |
-
java.lang.String |
- parseValue(java.lang.String value)
- |
-
java.lang.String |
- toString()
- |
-
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
- public AbstractFlag(java.lang.String key)-
key
- The key must be alphabetical characters and <= 16 characters
- in length
- public java.lang.String parseValue(java.lang.String value)-
public java.lang.String getValueDesc()-
public java.lang.String getKey()-
public java.lang.String toString()-
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)-
equals
in class java.lang.Object
public class Flag
-extends java.lang.Object
- Constructor and Description | -
---|
Flag(AbstractFlag key,
- java.lang.String value)
-
- Flag object used to store basic information for a Plot.
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- equals(java.lang.Object obj)
- |
-
AbstractFlag |
- getAbstractFlag()
-
- Get the AbstractFlag used in creating the flag
- |
-
java.lang.String |
- getKey()
-
- Get the key for the AbstractFlag
- |
-
java.lang.String |
- getValue()
-
- Get the value
- |
-
int |
- hashCode()
- |
-
java.lang.String |
- toString()
- |
-
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public Flag(AbstractFlag key, - java.lang.String value)-
key
- AbstractFlagvalue
- Value must be alphanumerical (can have spaces) and be <= 48
- characters
- java.lang.IllegalArgumentException
- if you provide inadequate inputs
- public AbstractFlag getAbstractFlag()-
public java.lang.String getKey()-
public java.lang.String getValue()-
public java.lang.String toString()-
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)-
equals
in class java.lang.Object
public int hashCode()-
hashCode
in class java.lang.Object
public class FlagManager
-extends java.lang.Object
- Constructor and Description | -
---|
FlagManager()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static boolean |
- addFlag(AbstractFlag flag)
-
- Register an AbstractFlag with PlotSquared
- |
-
static AbstractFlag |
- getFlag(java.lang.String string)
-
- Get an AbstractFlag by a string Returns null if flag does not exist
-
- |
-
static AbstractFlag |
- getFlag(java.lang.String string,
- boolean create)
-
- Get an AbstractFlag by a string
- |
-
static java.util.List<AbstractFlag> |
- getFlags()
-
- Get a list of registered AbstractFlag objects
- |
-
static java.util.List<AbstractFlag> |
- getFlags(org.bukkit.entity.Player player)
-
- Get a list of registerd AbstragFlag objects based on player
- permissions
-
- |
-
static java.util.List<AbstractFlag> |
- getPlotFlags(Plot plot)
-
- Get the flags for a plot
- |
-
static Flag[] |
- parseFlags(java.util.List<java.lang.String> flagstrings)
- |
-
static boolean |
- removeFlag(AbstractFlag flag)
-
- Remove a registered AbstractFlag
- |
-
static Flag[] |
- removeFlag(Flag[] flags,
- java.lang.String r) |
-
static Flag[] |
- removeFlag(java.util.Set<Flag> flags,
- java.lang.String r) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static boolean addFlag(AbstractFlag flag)-
flag
- Flag to registerpublic static Flag[] removeFlag(java.util.Set<Flag> flags, - java.lang.String r)-
public static java.util.List<AbstractFlag> getFlags()-
public static java.util.List<AbstractFlag> getFlags(org.bukkit.entity.Player player)-
player
- with permissionspublic static AbstractFlag getFlag(java.lang.String string)-
string
- Flag Keypublic static AbstractFlag getFlag(java.lang.String string, - boolean create)-
string
- Flag Keycreate
- If to create the flag if it does not existpublic static boolean removeFlag(AbstractFlag flag)-
flag
- Flag Keypublic static Flag[] parseFlags(java.util.List<java.lang.String> flagstrings)-
public static java.util.List<AbstractFlag> getPlotFlags(Plot plot)-
plot
- Plot to search inClass | -Description | -
---|---|
AbstractFlag | -
- Created 2014-09-23 for PlotSquared
- |
-
Flag | -- |
FlagManager | -
- Flag Manager Utility
- |
-
public class DefaultPlotManager -extends PlotManager-
Constructor and Description | -
---|
DefaultPlotManager()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- clearPlot(org.bukkit.World world,
- Plot plot)
-
- Clearing the plot needs to only consider removing the blocks - This
- implementation has used the SetCuboid function, as it is fast, and uses
- NMS code - It also makes use of the fact that deleting chunks is a lot
- faster than block updates This code is very messy, but you don't need to
- do something quite as complex unless you happen to have 512x512 sized
- plots
-
- |
-
boolean |
- createRoadEast(PlotWorld plotworld,
- Plot plot)
-
- PLOT MERGING
- |
-
boolean |
- createRoadSouth(PlotWorld plotworld,
- Plot plot)
- |
-
boolean |
- createRoadSouthEast(PlotWorld plotworld,
- Plot plot)
- |
-
boolean |
- finishPlotMerge(org.bukkit.World world,
- PlotWorld plotworld,
- java.util.ArrayList<PlotId> plotIds)
-
- Finishing off plot merging by adding in the walls surrounding the
- plot
- (OPTIONAL)(UNFINISHED)
-
- |
-
boolean |
- finishPlotUnlink(org.bukkit.World world,
- PlotWorld plotworld,
- java.util.ArrayList<PlotId> plotIds)
- |
-
org.bukkit.Location |
- getPlotBottomLocAbs(PlotWorld plotworld,
- PlotId plotid)
-
- Get the bottom plot loc (some basic math)
- |
-
PlotId |
- getPlotId(PlotWorld plotworld,
- org.bukkit.Location loc)
-
- Some complex stuff for traversing mega plots (return getPlotIdAbs if
- you
- do not support mega plots)
-
- |
-
PlotId |
- getPlotIdAbs(PlotWorld plotworld,
- org.bukkit.Location loc)
-
- Default implementation of getting a plot at a given location For a
- simplified explanation of the math involved: - Get the current coords -
- shift these numbers down to something relatable for a single plot
- (similar to reducing trigonometric functions down to the first quadrant)
- - e.g.
-
- |
-
org.bukkit.Location |
- getPlotTopLocAbs(PlotWorld plotworld,
- PlotId plotid)
-
- Get the top plot loc (some basic math)
- |
-
org.bukkit.Location |
- getSignLoc(org.bukkit.World world,
- PlotWorld plotworld,
- Plot plot)
-
- Remove sign for a plot
- |
-
boolean |
- isInPlotAbs(PlotWorld plotworld,
- org.bukkit.Location loc,
- PlotId plotid)
-
- Check if a location is inside a specific plot(non-Javadoc) - For this
- implementation, we don't need to do anything fancier than referring to
- getPlotIdAbs(...)
-
- |
-
boolean |
- removeRoadEast(PlotWorld plotworld,
- Plot plot)
- |
-
boolean |
- removeRoadSouth(PlotWorld plotworld,
- Plot plot)
- |
-
boolean |
- removeRoadSouthEast(PlotWorld plotworld,
- Plot plot)
- |
-
boolean |
- setBiome(org.bukkit.World world,
- Plot plot,
- org.bukkit.block.Biome biome)
-
- Set a plot biome
- |
-
boolean |
- setFloor(org.bukkit.World world,
- PlotWorld plotworld,
- PlotId plotid,
- PlotBlock[] blocks)
- |
-
boolean |
- setWall(org.bukkit.World w,
- PlotWorld plotworld,
- PlotId plotid,
- PlotBlock plotblock)
- |
-
boolean |
- setWallFilling(org.bukkit.World w,
- PlotWorld plotworld,
- PlotId plotid,
- PlotBlock plotblock)
- |
-
boolean |
- startPlotMerge(org.bukkit.World world,
- PlotWorld plotworld,
- java.util.ArrayList<PlotId> plotIds)
- |
-
boolean |
- startPlotUnlink(org.bukkit.World world,
- PlotWorld plotworld,
- java.util.ArrayList<PlotId> plotIds)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public PlotId getPlotIdAbs(PlotWorld plotworld, - org.bukkit.Location loc)-
getPlotIdAbs
in
- class PlotManager
public PlotId getPlotId(PlotWorld plotworld, - org.bukkit.Location loc)-
getPlotId
in
- class PlotManager
public boolean isInPlotAbs(PlotWorld plotworld, - org.bukkit.Location loc, - PlotId plotid)-
isInPlotAbs
in
- class PlotManager
public org.bukkit.Location getPlotBottomLocAbs(PlotWorld plotworld, - PlotId plotid)-
getPlotBottomLocAbs
in
- class PlotManager
public org.bukkit.Location getPlotTopLocAbs(PlotWorld plotworld, - PlotId plotid)-
getPlotTopLocAbs
in
- class PlotManager
public boolean clearPlot(org.bukkit.World world, - Plot plot)-
clearPlot
in
- class PlotManager
public org.bukkit.Location getSignLoc(org.bukkit.World world, - PlotWorld plotworld, - Plot plot)-
getSignLoc
in
- class PlotManager
public boolean setFloor(org.bukkit.World world, - PlotWorld plotworld, - PlotId plotid, - PlotBlock[] blocks)-
setFloor
in
- class PlotManager
public boolean setWallFilling(org.bukkit.World w, - PlotWorld plotworld, - PlotId plotid, - PlotBlock plotblock)-
setWallFilling
in
- class PlotManager
public boolean setWall(org.bukkit.World w, - PlotWorld plotworld, - PlotId plotid, - PlotBlock plotblock)-
setWall
in
- class PlotManager
public boolean setBiome(org.bukkit.World world, - Plot plot, - org.bukkit.block.Biome biome)-
setBiome
in
- class PlotManager
public boolean createRoadEast(PlotWorld plotworld, - Plot plot)-
createRoadEast
in
- class PlotManager
public boolean createRoadSouth(PlotWorld plotworld, - Plot plot)-
createRoadSouth
in
- class PlotManager
public boolean createRoadSouthEast(PlotWorld plotworld, - Plot plot)-
createRoadSouthEast
in
- class PlotManager
public boolean removeRoadEast(PlotWorld plotworld, - Plot plot)-
removeRoadEast
in
- class PlotManager
public boolean removeRoadSouth(PlotWorld plotworld, - Plot plot)-
removeRoadSouth
in
- class PlotManager
public boolean removeRoadSouthEast(PlotWorld plotworld, - Plot plot)-
removeRoadSouthEast
in
- class PlotManager
public boolean finishPlotMerge(org.bukkit.World world, - PlotWorld plotworld, - java.util.ArrayList<PlotId> plotIds)-
finishPlotMerge
in
- class PlotManager
public boolean finishPlotUnlink(org.bukkit.World world, - PlotWorld plotworld, - java.util.ArrayList<PlotId> plotIds)-
finishPlotUnlink
in
- class PlotManager
public boolean startPlotMerge(org.bukkit.World world, - PlotWorld plotworld, - java.util.ArrayList<PlotId> plotIds)-
startPlotMerge
in
- class PlotManager
public boolean startPlotUnlink(org.bukkit.World world, - PlotWorld plotworld, - java.util.ArrayList<PlotId> plotIds)-
startPlotUnlink
in
- class PlotManager
public class DefaultPlotWorld -extends PlotWorld-
Modifier and Type | -Field and Description | -
---|---|
PlotBlock
- |
- CLAIMED_WALL_BLOCK
- |
-
static PlotBlock |
- CLAIMED_WALL_BLOCK_DEFAULT
- |
-
PlotBlock[]
- |
- MAIN_BLOCK
-
- Plot main block
- |
-
static PlotBlock[] |
- MAIN_BLOCK_DEFAULT
-
- Default main block: 1
- |
-
int |
- PLOT_HEIGHT
-
- plot height
- |
-
static int |
- PLOT_HEIGHT_DEFAULT
-
- Default plot height: 64
- |
-
int |
- PLOT_WIDTH
-
- plot width
- |
-
static int |
- PLOT_WIDTH_DEFAULT
-
- Default plot width: 32
- |
-
PlotBlock
- |
- ROAD_BLOCK
-
- Road block
- |
-
static PlotBlock |
- ROAD_BLOCK_DEFAULT
-
- Default road block: 155
- |
-
int |
- ROAD_HEIGHT
-
- Road Height
- |
-
static int |
- ROAD_HEIGHT_DEFAULT
-
- Default Road Height: 64
- |
-
PlotBlock
- |
- ROAD_STRIPES
-
- Road stripes
- |
-
static PlotBlock |
- ROAD_STRIPES_DEFAULT
-
- Default road stripes: 35
- |
-
boolean |
- ROAD_STRIPES_ENABLED
-
- enable road stripes
- |
-
static boolean |
- ROAD_STRIPES_ENABLED_DEFAULT
- |
-
int |
- ROAD_WIDTH
-
- Road width
- |
-
static int |
- ROAD_WIDTH_DEFAULT
-
- Default road width: 7
- |
-
PlotBlock[]
- |
- TOP_BLOCK
-
- Top blocks
- |
-
static PlotBlock[] |
- TOP_BLOCK_DEFAULT
-
- Default top blocks: {"2"}
- |
-
PlotBlock
- |
- WALL_BLOCK
-
- Wall block
- |
-
static PlotBlock |
- WALL_BLOCK_DEFAULT
-
- Default wall block: 44
- |
-
PlotBlock
- |
- WALL_FILLING
-
- Wall filling
- |
-
static PlotBlock |
- WALL_FILLING_DEFAULT
-
- Default wall filling: 1
- |
-
int |
- WALL_HEIGHT
-
- Wall height
- |
-
static int |
- WALL_HEIGHT_DEFAULT
-
- Default Wall Height: 64
- |
-
AUTO_MERGE,
- AUTO_MERGE_DEFAULT,
- BLOCKS, DEFAULT_FLAGS,
- DEFAULT_FLAGS_DEFAULT,
- MERGE_PRICE,
- MERGE_PRICE_DEFAULT,
- MOB_SPAWNING,
- MOB_SPAWNING_DEFAULT,
- PLOT_BIOME,
- PLOT_BIOME_DEFAULT,
- PLOT_CHAT,
- PLOT_CHAT_DEFAULT,
- PLOT_PRICE,
- PLOT_PRICE_DEFAULT,
- PVE, PVE_DEFAULT,
- PVP, PVP_DEFAULT,
- SCHEMATIC_CLAIM_SPECIFY,
- SCHEMATIC_CLAIM_SPECIFY_DEFAULT,
- SCHEMATIC_FILE,
- SCHEMATIC_FILE_DEFAULT,
- SCHEMATIC_ON_CLAIM,
- SCHEMATIC_ON_CLAIM_DEFAULT,
- SCHEMATICS,
- SCHEMATICS_DEFAULT,
- SELL_PRICE,
- SELL_PRICE_DEFAULT,
- SPAWN_BREEDING,
- SPAWN_BREEDING_DEFAULT,
- SPAWN_CUSTOM,
- SPAWN_CUSTOM_DEFAULT,
- SPAWN_EGGS,
- SPAWN_EGGS_DEFAULT,
- USE_ECONOMY,
- USE_ECONOMY_DEFAULT,
- worldname
- Constructor and Description | -
---|
DefaultPlotWorld(java.lang.String worldname)
- |
-
Modifier and Type | -Method and Description | -
---|---|
ConfigurationNode[] |
- getSettingNodes()
-
- CONFIG NODE | DEFAULT VALUE | DESCRIPTION | CONFIGURATION TYPE | REQUIRED
- FOR INITIAL SETUP
-
- Set the last boolean to false if you do not require a specific config
- node to be set while using the setup command - this may be useful if a
- config value can be changed at a later date, and has no impact on the
- actual world generation
-
- |
-
void |
- loadConfiguration(org.bukkit.configuration.ConfigurationSection config)
-
- This method is called when a world loads.
- |
-
loadDefaultConfiguration,
- saveConfiguration
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- public static int ROAD_HEIGHT_DEFAULT-
public static int PLOT_HEIGHT_DEFAULT-
public static int WALL_HEIGHT_DEFAULT-
public static int PLOT_WIDTH_DEFAULT-
public static int ROAD_WIDTH_DEFAULT-
public static PlotBlock[] MAIN_BLOCK_DEFAULT-
public static PlotBlock[] TOP_BLOCK_DEFAULT-
public static PlotBlock WALL_BLOCK_DEFAULT-
public static PlotBlock CLAIMED_WALL_BLOCK_DEFAULT-
public static PlotBlock WALL_FILLING_DEFAULT-
public static PlotBlock ROAD_STRIPES_DEFAULT-
public static boolean ROAD_STRIPES_ENABLED_DEFAULT-
public static PlotBlock ROAD_BLOCK_DEFAULT-
public int ROAD_HEIGHT-
public int PLOT_HEIGHT-
public int WALL_HEIGHT-
public int PLOT_WIDTH-
public int ROAD_WIDTH-
public PlotBlock[] MAIN_BLOCK-
public PlotBlock[] TOP_BLOCK-
public PlotBlock WALL_BLOCK-
public PlotBlock CLAIMED_WALL_BLOCK-
public PlotBlock WALL_FILLING-
public PlotBlock ROAD_STRIPES-
public boolean ROAD_STRIPES_ENABLED-
public PlotBlock ROAD_BLOCK-
public DefaultPlotWorld(java.lang.String worldname)-
public ConfigurationNode[] getSettingNodes()-
getSettingNodes
in
- class PlotWorld
- public void loadConfiguration(org.bukkit.configuration.ConfigurationSection config)-
loadConfiguration
in
- class PlotWorld
- public class WorldGenerator -extends PlotGenerator-
org.bukkit.generator.ChunkGenerator.BiomeGrid
Constructor and Description | -
---|
WorldGenerator(java.lang.String world)
-
- Initialize variables, and create plotworld object used in
- calculations
-
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- canSpawn(org.bukkit.World world,
- int x,
- int z)
-
- Allow spawning everywhere
- |
-
short[][] |
- generateExtBlockSections(org.bukkit.World world,
- java.util.Random random,
- int cx,
- int cz,
- org.bukkit.generator.ChunkGenerator.BiomeGrid biomes)
-
- This part is a fucking mess. - Refer to a proper tutorial if you
- would
- like to learn how to make a world generator
-
- |
-
java.util.List<org.bukkit.generator.BlockPopulator>
- |
- getDefaultPopulators(org.bukkit.World world)
-
- Return the block populator
- |
-
org.bukkit.Location |
- getFixedSpawnLocation(org.bukkit.World world,
- java.util.Random random)
-
- Return the default spawn location for this world
- |
-
PlotWorld |
- getNewPlotWorld(java.lang.String world)
-
- Get a new plotworld class For square plots you can use the
- DefaultPlotWorld class which comes with PlotSquared
-
- |
-
PlotManager |
- getPlotManager()
-
- Return the plot manager for this type of generator, or create one For
- square plots you may as well use the default plot manager which comes
- with PlotSquared
-
- |
-
long |
- nextLong()
- |
-
int |
- random(int n)
- |
-
void |
- setCuboidRegion(int x1,
- int x2,
- int y1,
- int y2,
- int z1,
- int z2,
- PlotBlock block)
-
- Cuboid based plot generation is quick, as it requires no calculations
- inside the loop - You don't have to use this this method, but you may
- find it useful.
-
- |
-
long |
- xorShift64(long a)
- |
-
generate, generateBlockSections
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public WorldGenerator(java.lang.String world)-
public PlotManager getPlotManager()-
getPlotManager
in
- class PlotGenerator
- public boolean canSpawn(org.bukkit.World world, - int x, - int z)-
canSpawn
in
- class org.bukkit.generator.ChunkGenerator
public PlotWorld getNewPlotWorld(java.lang.String world)-
getNewPlotWorld
in
- class PlotGenerator
- public final long nextLong()-
public final long xorShift64(long a)-
public final int random(int n)-
public void setCuboidRegion(int x1, - int x2, - int y1, - int y2, - int z1, - int z2, - PlotBlock block)-
public java.util.List<org.bukkit.generator.BlockPopulator> getDefaultPopulators(org.bukkit.World world)-
getDefaultPopulators
in class org.bukkit.generator.ChunkGenerator
- public org.bukkit.Location getFixedSpawnLocation(org.bukkit.World world, - java.util.Random random)-
getFixedSpawnLocation
in class org.bukkit.generator.ChunkGenerator
- public short[][] generateExtBlockSections(org.bukkit.World world, - java.util.Random random, - int cx, - int cz, - org.bukkit.generator.ChunkGenerator.BiomeGrid biomes)-
generateExtBlockSections
in class org.bukkit.generator.ChunkGenerator
- public class XPopulator
-extends org.bukkit.generator.BlockPopulator
- Constructor and Description | -
---|
XPopulator(PlotWorld pw)
- |
-
Modifier and Type | -Method and Description | -
---|---|
short[] |
- getBlock(java.lang.String block)
- |
-
long |
- nextLong()
- |
-
void |
- populate(org.bukkit.World w,
- java.util.Random r,
- org.bukkit.Chunk c) |
-
int |
- random(int n)
- |
-
void |
- setCuboidRegion(int x1,
- int x2,
- int y1,
- int y2,
- int z1,
- int z2,
- PlotBlock block,
- org.bukkit.World w) |
-
long |
- xorShift64(long a)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public final long nextLong()-
public final long xorShift64(long a)-
public final int random(int n)-
public void setCuboidRegion(int x1, - int x2, - int y1, - int y2, - int z1, - int z2, - PlotBlock block, - org.bukkit.World w)-
public short[] getBlock(java.lang.String block)-
public void populate(org.bukkit.World w, - java.util.Random r, - org.bukkit.Chunk c)-
populate
in class org.bukkit.generator.BlockPopulator
- Class | -Description | -
---|---|
DefaultPlotManager | -- |
DefaultPlotWorld | -- |
WorldGenerator | -- |
XPopulator | -- |
public class EntityListener
-extends java.lang.Object
-implements org.bukkit.event.Listener
- Modifier and Type | -Field and Description | -
---|---|
static java.util.HashMap<java.lang.String,java.util.HashMap<Plot,java.util.HashSet<java.lang.Integer>>>
- |
- entityMap
- |
-
Constructor and Description | -
---|
EntityListener()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
- addEntity(org.bukkit.entity.Entity entity,
- Plot plot)
- |
-
static void |
- onChunkDespawn(org.bukkit.event.world.ChunkUnloadEvent e)
- |
-
static void |
- onChunkLoad(org.bukkit.event.world.ChunkLoadEvent e)
- |
-
static void |
- onCreatureSpawn(org.bukkit.event.entity.CreatureSpawnEvent e)
- |
-
static void |
- onEntityDeath(org.bukkit.event.entity.EntityDeathEvent e)
- |
-
static void |
- onPlayerInteract(org.bukkit.event.player.PlayerInteractEvent e)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static java.util.HashMap<java.lang.String,java.util.HashMap<Plot,java.util.HashSet<java.lang.Integer>>> entityMap-
public static void onPlayerInteract(org.bukkit.event.player.PlayerInteractEvent e)-
public static void onCreatureSpawn(org.bukkit.event.entity.CreatureSpawnEvent e)-
public static void onChunkLoad(org.bukkit.event.world.ChunkLoadEvent e)-
public static void addEntity(org.bukkit.entity.Entity entity, - Plot plot)-
public static void onEntityDeath(org.bukkit.event.entity.EntityDeathEvent e)-
public static void onChunkDespawn(org.bukkit.event.world.ChunkUnloadEvent e)-
public class ForceFieldListener
-extends java.lang.Object
-implements org.bukkit.event.Listener
- Constructor and Description | -
---|
ForceFieldListener(org.bukkit.plugin.java.JavaPlugin plugin)
- |
-
Modifier and Type | -Method and Description | -
---|---|
org.bukkit.util.Vector |
- calculateVelocity(org.bukkit.entity.Player p,
- org.bukkit.entity.Player e) |
-
void |
- onPlotEntry(org.bukkit.event.player.PlayerMoveEvent event)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public class PlayerEvents -extends PlotListener -implements org.bukkit.event.Listener-
Constructor and Description | -
---|
PlayerEvents()
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- BlockCreate(org.bukkit.event.block.BlockPlaceEvent event)
- |
-
static void |
- BlockDestroy(org.bukkit.event.block.BlockBreakEvent event)
- |
-
static void |
- MobSpawn(org.bukkit.event.entity.CreatureSpawnEvent event)
- |
-
static void |
- onBD(org.bukkit.event.block.BlockDamageEvent e)
- |
-
static void |
- onBF(org.bukkit.event.block.BlockFormEvent e)
- |
-
static void |
- onBigBoom(org.bukkit.event.entity.EntityExplodeEvent event)
- |
-
static void |
- onBlockIgnite(org.bukkit.event.block.BlockIgniteEvent e)
- |
-
static void |
- onBlockPistonExtend(org.bukkit.event.block.BlockPistonExtendEvent e)
- |
-
static void |
- onBlockPistonRetract(org.bukkit.event.block.BlockPistonRetractEvent e)
- |
-
static void |
- onBS(org.bukkit.event.block.BlockSpreadEvent e)
- |
-
static void |
- onBucketEmpty(org.bukkit.event.player.PlayerBucketEmptyEvent e)
- |
-
static void |
- onBucketFill(org.bukkit.event.player.PlayerBucketFillEvent e)
- |
-
static void |
- onChange(org.bukkit.event.block.BlockFromToEvent e)
- |
-
void |
- onChangeWorld(org.bukkit.event.player.PlayerChangedWorldEvent event)
- |
-
static void |
- onChat(org.bukkit.event.player.AsyncPlayerChatEvent event)
- |
-
static void |
- onEntityBlockForm(org.bukkit.event.block.EntityBlockFormEvent event)
- |
-
static void |
- onEntityDamageByEntityEvent(org.bukkit.event.entity.EntityDamageByEntityEvent e)
- |
-
static void |
- onFade(org.bukkit.event.block.BlockFadeEvent e)
- |
-
static void |
- onGrow(org.bukkit.event.block.BlockGrowEvent e)
- |
-
static void |
- onHangingBreakByEntity(org.bukkit.event.hanging.HangingBreakByEntityEvent e)
- |
-
static void |
- onHangingPlace(org.bukkit.event.hanging.HangingPlaceEvent e)
- |
-
static void |
- onInteract(org.bukkit.event.player.PlayerInteractEvent event)
- |
-
static void |
- onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
- |
-
static void |
- onJoin(org.bukkit.event.player.PlayerJoinEvent event)
- |
-
static void |
- onLeave(org.bukkit.event.player.PlayerQuitEvent event)
- |
-
static void |
- onPeskyMobsChangeTheWorldLikeWTFEvent(org.bukkit.event.entity.EntityChangeBlockEvent event)
- |
-
static void |
- onPlayerEggThrow(org.bukkit.event.player.PlayerEggThrowEvent e)
- |
-
static void |
- onPlayerInteractEntity(org.bukkit.event.player.PlayerInteractEntityEvent e)
- |
-
static void |
- onStructureGrow(org.bukkit.event.world.StructureGrowEvent e)
- |
-
static void |
- onTeleport(org.bukkit.event.player.PlayerTeleportEvent event)
- |
-
static void |
- onWorldLoad(org.bukkit.event.world.WorldLoadEvent event)
- |
-
static void |
- PlayerMove(org.bukkit.event.player.PlayerMoveEvent event)
- |
-
blockChange,
- booleanFlag,
- enteredPlot,
- getCurrentPlot,
- getFlagValue,
- getName,
- getPlot,
- getPlotWorld,
- getUUID,
- isInPlot,
- isInPlot,
- isPlotWorld,
- isPlotWorld,
- leftPlot,
- plotEntry,
- plotExit,
- textures
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static void onWorldLoad(org.bukkit.event.world.WorldLoadEvent event)-
public static void onJoin(org.bukkit.event.player.PlayerJoinEvent event)-
public static void PlayerMove(org.bukkit.event.player.PlayerMoveEvent event)-
public static void onChat(org.bukkit.event.player.AsyncPlayerChatEvent event)-
public static void BlockDestroy(org.bukkit.event.block.BlockBreakEvent event)-
public static void onBigBoom(org.bukkit.event.entity.EntityExplodeEvent event)-
public static void onPeskyMobsChangeTheWorldLikeWTFEvent(org.bukkit.event.entity.EntityChangeBlockEvent event)-
public static void onEntityBlockForm(org.bukkit.event.block.EntityBlockFormEvent event)-
public static void onBS(org.bukkit.event.block.BlockSpreadEvent e)-
public static void onBF(org.bukkit.event.block.BlockFormEvent e)-
public static void onBD(org.bukkit.event.block.BlockDamageEvent e)-
public static void onFade(org.bukkit.event.block.BlockFadeEvent e)-
public static void onChange(org.bukkit.event.block.BlockFromToEvent e)-
public static void onGrow(org.bukkit.event.block.BlockGrowEvent e)-
public static void onBlockPistonExtend(org.bukkit.event.block.BlockPistonExtendEvent e)-
public static void onBlockPistonRetract(org.bukkit.event.block.BlockPistonRetractEvent e)-
public static void onStructureGrow(org.bukkit.event.world.StructureGrowEvent e)-
public static void onInteract(org.bukkit.event.player.PlayerInteractEvent event)-
public static void MobSpawn(org.bukkit.event.entity.CreatureSpawnEvent event)-
public static void onBlockIgnite(org.bukkit.event.block.BlockIgniteEvent e)-
public static void onTeleport(org.bukkit.event.player.PlayerTeleportEvent event)-
public static void onBucketEmpty(org.bukkit.event.player.PlayerBucketEmptyEvent e)-
public static void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)-
public static void onLeave(org.bukkit.event.player.PlayerQuitEvent event)-
public static void onBucketFill(org.bukkit.event.player.PlayerBucketFillEvent e)-
public static void onHangingPlace(org.bukkit.event.hanging.HangingPlaceEvent e)-
public static void onHangingBreakByEntity(org.bukkit.event.hanging.HangingBreakByEntityEvent e)-
public static void onPlayerInteractEntity(org.bukkit.event.player.PlayerInteractEntityEvent e)-
public static void onEntityDamageByEntityEvent(org.bukkit.event.entity.EntityDamageByEntityEvent e)-
public static void onPlayerEggThrow(org.bukkit.event.player.PlayerEggThrowEvent e)-
public void onChangeWorld(org.bukkit.event.player.PlayerChangedWorldEvent event)-
public void BlockCreate(org.bukkit.event.block.BlockPlaceEvent event)-
public class PlotListener
-extends java.lang.Object
- Constructor and Description | -
---|
PlotListener()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
- blockChange(org.bukkit.block.Block block,
- org.bukkit.event.Cancellable event) |
-
static boolean |
- booleanFlag(Plot plot,
- java.lang.String flag) |
-
static boolean |
- enteredPlot(org.bukkit.Location l1,
- org.bukkit.Location l2) |
-
static Plot |
- getCurrentPlot(org.bukkit.Location loc)
- |
-
static boolean |
- getFlagValue(java.lang.String value)
- |
-
static java.lang.String |
- getName(java.util.UUID uuid)
- |
-
static Plot |
- getPlot(org.bukkit.entity.Player player)
- |
-
static PlotWorld |
- getPlotWorld(org.bukkit.World world)
- |
-
static java.util.UUID |
- getUUID(java.lang.String name)
- |
-
static boolean |
- isInPlot(org.bukkit.Location loc)
- |
-
static boolean |
- isInPlot(org.bukkit.entity.Player player)
- |
-
static boolean |
- isPlotWorld(org.bukkit.Location l)
- |
-
static boolean |
- isPlotWorld(org.bukkit.World world)
- |
-
static boolean |
- leftPlot(org.bukkit.Location l1,
- org.bukkit.Location l2) |
-
static void |
- plotEntry(org.bukkit.entity.Player player,
- Plot plot)
- |
-
static void |
- plotExit(org.bukkit.entity.Player player,
- Plot plot)
- |
-
static void |
- textures(org.bukkit.entity.Player p)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static void textures(org.bukkit.entity.Player p)-
public static boolean isInPlot(org.bukkit.entity.Player player)-
public static Plot getPlot(org.bukkit.entity.Player player)-
public static boolean isPlotWorld(org.bukkit.World world)-
public static PlotWorld getPlotWorld(org.bukkit.World world)-
public static java.lang.String getName(java.util.UUID uuid)-
public static java.util.UUID getUUID(java.lang.String name)-
public static void blockChange(org.bukkit.block.Block block, - org.bukkit.event.Cancellable event)-
public static boolean enteredPlot(org.bukkit.Location l1, - org.bukkit.Location l2)-
public static boolean leftPlot(org.bukkit.Location l1, - org.bukkit.Location l2)-
public static boolean isPlotWorld(org.bukkit.Location l)-
public static boolean isInPlot(org.bukkit.Location loc)-
public static Plot getCurrentPlot(org.bukkit.Location loc)-
public static boolean booleanFlag(Plot plot, - java.lang.String flag)-
public static void plotEntry(org.bukkit.entity.Player player, - Plot plot)-
public static void plotExit(org.bukkit.entity.Player player, - Plot plot)-
public static boolean getFlagValue(java.lang.String value)-
public static class PlotPlusListener.Interval
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
int |
- amount
- |
-
int |
- count
- |
-
int |
- interval
- |
-
int |
- max
- |
-
Constructor and Description | -
---|
PlotPlusListener.Interval(int interval,
- int amount,
- int max) |
-
public static class PlotPlusListener.RecordMeta
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
static java.util.List<PlotPlusListener.RecordMeta>
- |
- metaList
- |
-
Constructor and Description | -
---|
PlotPlusListener.RecordMeta(java.lang.String name,
- org.bukkit.Material material) |
-
Modifier and Type | -Method and Description | -
---|---|
org.bukkit.Material |
- getMaterial()
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public static java.util.List<PlotPlusListener.RecordMeta> metaList-
public class PlotPlusListener -extends PlotListener -implements org.bukkit.event.Listener-
Modifier and Type | -Class and Description | -
---|---|
static class |
- PlotPlusListener.Interval
- |
-
static class |
- PlotPlusListener.RecordMeta
-
- Created by Citymonstret on 2014-10-22.
- |
-
Constructor and Description | -
---|
PlotPlusListener()
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- onDamage(org.bukkit.event.entity.EntityDamageEvent event)
- |
-
void |
- onInteract(org.bukkit.event.block.BlockDamageEvent event)
- |
-
void |
- onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
- |
-
void |
- onItemDrop(org.bukkit.event.player.PlayerDropItemEvent event)
- |
-
void |
- onItemPickup(org.bukkit.event.player.PlayerPickupItemEvent event)
- |
-
void |
- onPlayerQuit(org.bukkit.event.player.PlayerQuitEvent event)
- |
-
void |
- onPlotEnter(PlayerEnterPlotEvent event)
- |
-
void |
- onPlotLeave(PlayerLeavePlotEvent event)
- |
-
static void |
- startRunnable(org.bukkit.plugin.java.JavaPlugin plugin)
- |
-
blockChange,
- booleanFlag,
- enteredPlot,
- getCurrentPlot,
- getFlagValue,
- getName,
- getPlot,
- getPlotWorld,
- getUUID,
- isInPlot,
- isInPlot,
- isPlotWorld,
- isPlotWorld,
- leftPlot,
- plotEntry,
- plotExit,
- textures
- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static void startRunnable(org.bukkit.plugin.java.JavaPlugin plugin)-
public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)-
public void onInteract(org.bukkit.event.block.BlockDamageEvent event)-
public void onDamage(org.bukkit.event.entity.EntityDamageEvent event)-
public void onItemPickup(org.bukkit.event.player.PlayerPickupItemEvent event)-
public void onItemDrop(org.bukkit.event.player.PlayerDropItemEvent event)-
public void onPlotEnter(PlayerEnterPlotEvent event)-
public void onPlayerQuit(org.bukkit.event.player.PlayerQuitEvent event)-
public void onPlotLeave(PlayerLeavePlotEvent event)-
public class WorldEditListener
-extends java.lang.Object
-implements org.bukkit.event.Listener
- Modifier and Type | -Field and Description | -
---|---|
java.util.Set<java.lang.String> |
- blockedcmds
- |
-
java.util.Set<java.lang.String> |
- restrictedcmds
- |
-
Constructor and Description | -
---|
WorldEditListener()
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- onDelete(PlotDeleteEvent e)
- |
-
void |
- onInteract(org.bukkit.event.player.PlayerInteractEvent e)
- |
-
void |
- onPlayerCommand(org.bukkit.event.player.PlayerCommandPreprocessEvent e)
- |
-
void |
- onPlayerJoin(org.bukkit.event.player.PlayerJoinEvent e)
- |
-
void |
- onPlayerMove(org.bukkit.event.player.PlayerMoveEvent e)
- |
-
void |
- onPortal(org.bukkit.event.player.PlayerPortalEvent e)
- |
-
void |
- onTeleport(org.bukkit.event.player.PlayerTeleportEvent e)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public final java.util.Set<java.lang.String> blockedcmds-
public final java.util.Set<java.lang.String> restrictedcmds-
public void onDelete(PlotDeleteEvent e)-
public void onInteract(org.bukkit.event.player.PlayerInteractEvent e)-
public void onPlayerCommand(org.bukkit.event.player.PlayerCommandPreprocessEvent e)-
public void onPlayerJoin(org.bukkit.event.player.PlayerJoinEvent e)-
public void onPlayerMove(org.bukkit.event.player.PlayerMoveEvent e)-
public void onPortal(org.bukkit.event.player.PlayerPortalEvent e)-
public void onTeleport(org.bukkit.event.player.PlayerTeleportEvent e)-
public class WorldGuardListener
-extends java.lang.Object
-implements org.bukkit.event.Listener
- Modifier and Type | -Field and Description | -
---|---|
java.util.ArrayList<com.sk89q.worldguard.protection.flags.Flag<?>>
- |
- flags
- |
-
java.util.ArrayList<java.lang.String> |
- str_flags
- |
-
Constructor and Description | -
---|
WorldGuardListener(PlotMain plugin)
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- addFlag(org.bukkit.entity.Player requester,
- org.bukkit.World world,
- Plot plot,
- java.lang.String key,
- java.lang.String value) |
-
void |
- changeOwner(org.bukkit.entity.Player requester,
- java.util.UUID owner,
- org.bukkit.World world,
- Plot plot)
- |
-
void |
- onMerge(PlotMergeEvent event)
- |
-
void |
- onPlotClaim(PlayerClaimPlotEvent event)
- |
-
void |
- onPlotDelete(PlotDeleteEvent event)
- |
-
void |
- onUnlink(PlotUnlinkEvent event)
- |
-
void |
- removeFlag(org.bukkit.entity.Player requester,
- org.bukkit.World world,
- Plot plot,
- java.lang.String key) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public java.util.ArrayList<java.lang.String> str_flags-
public java.util.ArrayList<com.sk89q.worldguard.protection.flags.Flag<?>> flags-
public WorldGuardListener(PlotMain plugin)-
public void changeOwner(org.bukkit.entity.Player requester, - java.util.UUID owner, - org.bukkit.World world, - Plot plot)-
public void removeFlag(org.bukkit.entity.Player requester, - org.bukkit.World world, - Plot plot, - java.lang.String key)-
public void addFlag(org.bukkit.entity.Player requester, - org.bukkit.World world, - Plot plot, - java.lang.String key, - java.lang.String value)-
public void onMerge(PlotMergeEvent event)-
public void onUnlink(PlotUnlinkEvent event)-
public void onPlotClaim(PlayerClaimPlotEvent event)-
public void onPlotDelete(PlotDeleteEvent event)-
Class | -Description | -
---|---|
EntityListener | -- |
ForceFieldListener | -
- Created by Citymonstret on 2014-10-24.
- |
-
PlayerEvents - | -
- Player Events involving plots
- |
-
PlotListener - | -
- Created by Citymonstret on 2014-10-21.
- |
-
PlotPlusListener | -
- Created by Citymonstret on 2014-10-30.
- |
-
PlotPlusListener.Interval | -- |
PlotPlusListener.RecordMeta - | -
- Created by Citymonstret on 2014-10-22.
- |
-
WorldEditListener | -- |
WorldGuardListener | -
- Created by Citymonstret on 2014-09-24.
- |
-
public class BlockWrapper
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
byte |
- data
- |
-
int |
- id
- |
-
int |
- x
- |
-
int |
- y
- |
-
int |
- z
- |
-
Constructor and Description | -
---|
BlockWrapper(int x,
- int y,
- int z,
- short id,
- byte data)
-
- Constructor
- |
-
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
- |
-
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
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.Object
java.lang.CloneNotSupportedException
public 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.Object
public int hashCode()-
hashCode
in class java.lang.Object
public class PlotBlock
-extends java.lang.Object
- public class PlotComment
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
java.lang.String |
- comment
- |
-
java.lang.String |
- senderName
- |
-
int |
- tier
- |
-
Constructor and Description | -
---|
PlotComment(java.lang.String comment,
- java.lang.String senderName,
- int tier) |
-
public abstract class PlotGenerator
-extends org.bukkit.generator.ChunkGenerator
- org.bukkit.generator.ChunkGenerator.BiomeGrid
Constructor and Description | -
---|
PlotGenerator(java.lang.String world)
- |
-
Modifier and Type | -Method and Description | -
---|---|
abstract PlotWorld |
- getNewPlotWorld(java.lang.String world)
- |
-
abstract PlotManager
- |
- getPlotManager()
- |
-
canSpawn, generate, generateBlockSections, generateExtBlockSections,
- getDefaultPopulators, getFixedSpawnLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public PlotGenerator(java.lang.String world)-
public abstract PlotWorld getNewPlotWorld(java.lang.String world)-
public abstract PlotManager getPlotManager()-
public enum PlotHomePosition -extends java.lang.Enum<PlotHomePosition>-
Enum Constant and Description | -
---|
CENTER
- |
-
DEFAULT
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- isMatching(java.lang.String string)
- |
-
static PlotHomePosition
- |
- valueOf(java.lang.String name)
-
- Returns the enum constant of this type with the specified name.
-
- |
-
static PlotHomePosition[]
- |
- values()
-
- Returns an array containing the constants of this enum type, in
- the order they are declared.
-
- |
-
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal,
- toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final PlotHomePosition CENTER-
public static final PlotHomePosition DEFAULT-
public static PlotHomePosition[] values()-
-for (PlotHomePosition c : PlotHomePosition.values()) - System.out.println(c); --
public static PlotHomePosition valueOf(java.lang.String name)-
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no
- constant with the specified name
- java.lang.NullPointerException
- if the argument is nullpublic boolean isMatching(java.lang.String string)-
public class PlotId
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
java.lang.Integer |
- x
-
- x value
- |
-
java.lang.Integer |
- y
-
- y value
- |
-
Constructor and Description | -
---|
PlotId(int x,
- int y)
-
- PlotId class (PlotId x,y values do not correspond to Block
- locations)
-
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- equals(java.lang.Object obj)
- |
-
static PlotId |
- fromString(java.lang.String string)
-
- Get a Plot Id based on a string
- |
-
int |
- hashCode()
- |
-
java.lang.String |
- toString()
- |
-
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public java.lang.Integer x-
public java.lang.Integer y-
public PlotId(int x, - int y)-
x
- The plot x coordinatey
- The plot y coordinatepublic static PlotId fromString(java.lang.String string)-
string
- to create id frompublic boolean equals(java.lang.Object obj)-
equals
in class java.lang.Object
public java.lang.String toString()-
toString
in class java.lang.Object
public int hashCode()-
hashCode
in class java.lang.Object
public abstract class PlotManager
-extends java.lang.Object
- Constructor and Description | -
---|
PlotManager()
- |
-
Modifier and Type | -Method and Description | -
---|---|
abstract boolean |
- clearPlot(org.bukkit.World world,
- Plot plot)
- |
-
abstract boolean |
- createRoadEast(PlotWorld plotworld,
- Plot plot)
- |
-
abstract boolean |
- createRoadSouth(PlotWorld plotworld,
- Plot plot)
- |
-
abstract boolean |
- createRoadSouthEast(PlotWorld plotworld,
- Plot plot)
- |
-
abstract boolean |
- finishPlotMerge(org.bukkit.World world,
- PlotWorld plotworld,
- java.util.ArrayList<PlotId> plotIds)
- |
-
abstract boolean |
- finishPlotUnlink(org.bukkit.World world,
- PlotWorld plotworld,
- java.util.ArrayList<PlotId> plotIds)
- |
-
abstract org.bukkit.Location |
- getPlotBottomLocAbs(PlotWorld plotworld,
- PlotId plotid)
- |
-
abstract PlotId |
- getPlotId(PlotWorld plotworld,
- org.bukkit.Location loc) |
-
abstract PlotId |
- getPlotIdAbs(PlotWorld plotworld,
- org.bukkit.Location loc) |
-
abstract org.bukkit.Location |
- getPlotTopLocAbs(PlotWorld plotworld,
- PlotId plotid)
- |
-
abstract org.bukkit.Location |
- getSignLoc(org.bukkit.World world,
- PlotWorld plotworld,
- Plot plot)
- |
-
abstract boolean |
- isInPlotAbs(PlotWorld plotworld,
- org.bukkit.Location loc,
- PlotId plotid)
- |
-
abstract boolean |
- removeRoadEast(PlotWorld plotworld,
- Plot plot)
- |
-
abstract boolean |
- removeRoadSouth(PlotWorld plotworld,
- Plot plot)
- |
-
abstract boolean |
- removeRoadSouthEast(PlotWorld plotworld,
- Plot plot)
- |
-
abstract boolean |
- setBiome(org.bukkit.World world,
- Plot plot,
- org.bukkit.block.Biome biome) |
-
abstract boolean |
- setFloor(org.bukkit.World world,
- PlotWorld plotworld,
- PlotId plotid,
- PlotBlock[] block)
- |
-
abstract boolean |
- setWall(org.bukkit.World world,
- PlotWorld plotworld,
- PlotId plotid,
- PlotBlock block)
- |
-
abstract boolean |
- setWallFilling(org.bukkit.World world,
- PlotWorld plotworld,
- PlotId plotid,
- PlotBlock block)
- |
-
abstract boolean |
- startPlotMerge(org.bukkit.World world,
- PlotWorld plotworld,
- java.util.ArrayList<PlotId> plotIds)
- |
-
abstract boolean |
- startPlotUnlink(org.bukkit.World world,
- PlotWorld plotworld,
- java.util.ArrayList<PlotId> plotIds)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public abstract PlotId getPlotIdAbs(PlotWorld plotworld, - org.bukkit.Location loc)-
public abstract boolean isInPlotAbs(PlotWorld plotworld, - org.bukkit.Location loc, - PlotId plotid)-
public abstract org.bukkit.Location getPlotBottomLocAbs(PlotWorld plotworld, - PlotId plotid)-
public abstract org.bukkit.Location getPlotTopLocAbs(PlotWorld plotworld, - PlotId plotid)-
public abstract boolean clearPlot(org.bukkit.World world, - Plot plot)-
public abstract org.bukkit.Location getSignLoc(org.bukkit.World world, - PlotWorld plotworld, - Plot plot)-
public abstract boolean setWallFilling(org.bukkit.World world, - PlotWorld plotworld, - PlotId plotid, - PlotBlock block)-
public abstract boolean setWall(org.bukkit.World world, - PlotWorld plotworld, - PlotId plotid, - PlotBlock block)-
public abstract boolean setFloor(org.bukkit.World world, - PlotWorld plotworld, - PlotId plotid, - PlotBlock[] block)-
public abstract boolean setBiome(org.bukkit.World world, - Plot plot, - org.bukkit.block.Biome biome)-
public abstract boolean createRoadSouthEast(PlotWorld plotworld, - Plot plot)-
public abstract boolean removeRoadSouthEast(PlotWorld plotworld, - Plot plot)-
public abstract boolean startPlotMerge(org.bukkit.World world, - PlotWorld plotworld, - java.util.ArrayList<PlotId> plotIds)-
public abstract boolean startPlotUnlink(org.bukkit.World world, - PlotWorld plotworld, - java.util.ArrayList<PlotId> plotIds)-
public abstract boolean finishPlotMerge(org.bukkit.World world, - PlotWorld plotworld, - java.util.ArrayList<PlotId> plotIds)-
public class PlotSelection
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
static java.util.HashMap<java.lang.String,PlotSelection>
- |
- currentSelection
- |
-
Constructor and Description | -
---|
PlotSelection(int width,
- org.bukkit.World world,
- Plot plot)
- |
-
Modifier and Type | -Method and Description | -
---|---|
PlotBlock[] |
- getBlocks()
- |
-
Plot |
- getPlot()
- |
-
int |
- getWidth()
- |
-
void |
- paste(org.bukkit.World world,
- Plot plot)
- |
-
static boolean |
- swap(org.bukkit.World world,
- PlotId id1,
- PlotId id2)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static java.util.HashMap<java.lang.String,PlotSelection> currentSelection-
public PlotSelection(int width, - org.bukkit.World world, - Plot plot)-
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)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
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)-
public abstract class PlotWorld
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
boolean |
- AUTO_MERGE
- |
-
static boolean |
- AUTO_MERGE_DEFAULT
- |
-
static java.util.ArrayList<org.bukkit.Material> |
- BLOCKS
- |
-
java.util.List<java.lang.String> |
- DEFAULT_FLAGS
- |
-
static java.util.List<java.lang.String> |
- DEFAULT_FLAGS_DEFAULT
- |
-
double |
- MERGE_PRICE
- |
-
static double |
- MERGE_PRICE_DEFAULT
- |
-
boolean |
- MOB_SPAWNING
- |
-
static boolean |
- MOB_SPAWNING_DEFAULT
- |
-
org.bukkit.block.Biome |
- PLOT_BIOME
- |
-
static org.bukkit.block.Biome |
- PLOT_BIOME_DEFAULT
- |
-
boolean |
- PLOT_CHAT
- |
-
static boolean |
- PLOT_CHAT_DEFAULT
- |
-
double |
- PLOT_PRICE
- |
-
static double |
- PLOT_PRICE_DEFAULT
- |
-
boolean |
- PVE
- |
-
static boolean |
- PVE_DEFAULT
- |
-
boolean |
- PVP
- |
-
static boolean |
- PVP_DEFAULT
- |
-
boolean |
- SCHEMATIC_CLAIM_SPECIFY
- |
-
static boolean |
- SCHEMATIC_CLAIM_SPECIFY_DEFAULT
- |
-
java.lang.String |
- SCHEMATIC_FILE
- |
-
static java.lang.String |
- SCHEMATIC_FILE_DEFAULT
- |
-
boolean |
- SCHEMATIC_ON_CLAIM
- |
-
static boolean |
- SCHEMATIC_ON_CLAIM_DEFAULT
- |
-
java.util.List<java.lang.String> |
- SCHEMATICS
- |
-
static java.util.List<java.lang.String> |
- SCHEMATICS_DEFAULT
- |
-
double |
- SELL_PRICE
- |
-
static double |
- SELL_PRICE_DEFAULT
- |
-
boolean |
- SPAWN_BREEDING
- |
-
static boolean |
- SPAWN_BREEDING_DEFAULT
- |
-
boolean |
- SPAWN_CUSTOM
- |
-
static boolean |
- SPAWN_CUSTOM_DEFAULT
- |
-
boolean |
- SPAWN_EGGS
- |
-
static boolean |
- SPAWN_EGGS_DEFAULT
- |
-
boolean |
- USE_ECONOMY
- |
-
static boolean |
- USE_ECONOMY_DEFAULT
- |
-
java.lang.String |
- worldname
- |
-
Constructor and Description | -
---|
PlotWorld(java.lang.String worldname)
- |
-
Modifier and Type | -Method and Description | -
---|---|
abstract ConfigurationNode[] |
- getSettingNodes()
-
- Used for the /plot setup command Return null if you do not want to
- support this feature
-
- |
-
abstract void |
- loadConfiguration(org.bukkit.configuration.ConfigurationSection config)
- |
-
void |
- loadDefaultConfiguration(org.bukkit.configuration.ConfigurationSection config)
-
- When a world is created, the following method will be called for each
- |
-
void |
- saveConfiguration(org.bukkit.configuration.ConfigurationSection config)
-
- Saving core plotworld settings
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- public static java.util.ArrayList<org.bukkit.Material> BLOCKS-
public static boolean AUTO_MERGE_DEFAULT-
public static boolean MOB_SPAWNING_DEFAULT-
public static org.bukkit.block.Biome PLOT_BIOME_DEFAULT-
public static boolean PLOT_CHAT_DEFAULT-
public static boolean SCHEMATIC_CLAIM_SPECIFY_DEFAULT-
public static boolean SCHEMATIC_ON_CLAIM_DEFAULT-
public static java.lang.String SCHEMATIC_FILE_DEFAULT-
public static java.util.List<java.lang.String> SCHEMATICS_DEFAULT-
public static java.util.List<java.lang.String> DEFAULT_FLAGS_DEFAULT-
public static boolean USE_ECONOMY_DEFAULT-
public static double PLOT_PRICE_DEFAULT-
public static double MERGE_PRICE_DEFAULT-
public static double SELL_PRICE_DEFAULT-
public static boolean PVP_DEFAULT-
public static boolean PVE_DEFAULT-
public static boolean SPAWN_EGGS_DEFAULT-
public static boolean SPAWN_CUSTOM_DEFAULT-
public static boolean SPAWN_BREEDING_DEFAULT-
public boolean AUTO_MERGE-
public boolean MOB_SPAWNING-
public org.bukkit.block.Biome PLOT_BIOME-
public boolean PLOT_CHAT-
public boolean SCHEMATIC_CLAIM_SPECIFY-
public boolean SCHEMATIC_ON_CLAIM-
public java.lang.String SCHEMATIC_FILE-
public java.util.List<java.lang.String> SCHEMATICS-
public java.util.List<java.lang.String> DEFAULT_FLAGS-
public boolean USE_ECONOMY-
public double PLOT_PRICE-
public double MERGE_PRICE-
public double SELL_PRICE-
public boolean PVP-
public boolean PVE-
public boolean SPAWN_EGGS-
public boolean SPAWN_CUSTOM-
public boolean SPAWN_BREEDING-
public java.lang.String worldname-
public PlotWorld(java.lang.String worldname)-
public void loadDefaultConfiguration(org.bukkit.configuration.ConfigurationSection config)-
config
-public abstract void loadConfiguration(org.bukkit.configuration.ConfigurationSection config)-
public void saveConfiguration(org.bukkit.configuration.ConfigurationSection config)-
config
-public abstract ConfigurationNode[] getSettingNodes()-
public class StringWrapper
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
java.lang.String |
- value
- |
-
Constructor and Description | -
---|
StringWrapper(java.lang.String value)
-
- Constructor
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- equals(java.lang.Object obj)
-
- Check if a wrapped string equals another one
- |
-
int |
- hashCode()
-
- Get the hash value
- |
-
java.lang.String |
- toString()
-
- Get the string value
- |
-
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public StringWrapper(java.lang.String value)-
value
- to wrappublic boolean equals(java.lang.Object obj)-
equals
in class java.lang.Object
obj
- to comparepublic java.lang.String toString()-
toString
in class java.lang.Object
public int hashCode()-
hashCode
in class java.lang.Object
public class Title
-extends java.lang.Object
- Constructor and Description | -
---|
Title(java.lang.String title)
-
- Create a new 1.8 title
- |
-
Title(java.lang.String title,
- java.lang.String subtitle)
-
- Create a new 1.8 title
- |
-
Title(java.lang.String title,
- java.lang.String subtitle,
- int fadeInTime,
- int stayTime,
- int fadeOutTime)
-
- Create a new 1.8 title
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- broadcast()
-
- Broadcast the title to all players
- |
-
void |
- clearTitle(org.bukkit.entity.Player player)
-
- Clear the title
- |
-
void |
- resetTitle(org.bukkit.entity.Player player)
-
- Reset the title settings
- |
-
void |
- send(org.bukkit.entity.Player player)
-
- Send the title to a player
- |
-
void |
- setFadeInTime(int time)
-
- Set title fade in time
- |
-
void |
- setFadeOutTime(int time)
-
- Set title fade out time
- |
-
void |
- setStayTime(int time)
-
- Set title stay time
- |
-
void |
- setSubtitleColor(org.bukkit.ChatColor color)
-
- Set the subtitle color
- |
-
void |
- setTimingsToSeconds()
-
- Set timings to seconds
- |
-
void |
- setTimingsToTicks()
-
- Set timings to ticks
- |
-
void |
- setTitleColor(org.bukkit.ChatColor color)
-
- Set the title color
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public Title(java.lang.String title)-
title
- Titlepublic Title(java.lang.String title, - java.lang.String subtitle)-
title
- Title textsubtitle
- Subtitle textpublic Title(java.lang.String title, - java.lang.String subtitle, - int fadeInTime, - int stayTime, - int fadeOutTime)-
title
- Title textsubtitle
- Subtitle textfadeInTime
- Fade in timestayTime
- Stay on screen timefadeOutTime
- Fade out timepublic void setTitleColor(org.bukkit.ChatColor color)-
color
- Chat colorpublic void setSubtitleColor(org.bukkit.ChatColor color)-
color
- Chat colorpublic void setFadeInTime(int time)-
time
- Timepublic void setFadeOutTime(int time)-
time
- Timepublic void setStayTime(int time)-
time
- Timepublic void setTimingsToTicks()-
public void setTimingsToSeconds()-
public void send(org.bukkit.entity.Player player)-
player
- Playerpublic void broadcast()-
public void clearTitle(org.bukkit.entity.Player player)-
player
- Playerpublic void resetTitle(org.bukkit.entity.Player player)-
player
- PlayerClass | -Description | -
---|---|
BlockWrapper | -
- Wrapper class for blocks, using
- pure data rather than the object.
-
- |
-
Plot | -
- The plot class
- |
-
PlotBlock | -- |
PlotComment | -- |
PlotGenerator | -- |
PlotId | -- |
PlotManager | -- |
PlotSelection | -
- Created 2014-10-12 for PlotSquared
- |
-
PlotSettings | -
- plot settings
- |
-
PlotWorld | -- |
StringWrapper | -- |
Title | -
- Minecraft 1.8 Title
- |
-
Enum | -Description | -
---|---|
PlotHomePosition | -
- Created by Citymonstret on 2014-08-05.
- |
-
Class | -Description | -
---|---|
PlotMain | -
- PlotMain class.
- |
-
public class ConsoleColors
-extends java.lang.Object
- Constructor and Description | -
---|
ConsoleColors()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static
- com.intellectualcrafters.plot.util.ConsoleColors.ConsoleColor |
- chatColor(org.bukkit.ChatColor color)
- |
-
static java.lang.String |
- fromChatColor(org.bukkit.ChatColor color)
- |
-
static java.lang.String |
- fromString(java.lang.String input)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static java.lang.String fromString(java.lang.String input)-
public static java.lang.String fromChatColor(org.bukkit.ChatColor color)-
public static com.intellectualcrafters.plot.util.ConsoleColors.ConsoleColor chatColor(org.bukkit.ChatColor color)-
protected class LSetCube.LCycler
-extends java.lang.Object
- Constructor and Description | -
---|
LSetCube.LCycler(LSetCube cube)
- |
-
Modifier and Type | -Method and Description | -
---|---|
org.bukkit.Location |
- getNext()
- |
-
boolean |
- hasNext()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public class LSetCube
-extends java.lang.Object
- Modifier and Type | -Class and Description | -
---|---|
protected class |
- LSetCube.LCycler
- |
-
Constructor and Description | -
---|
LSetCube(org.bukkit.Location l1,
- int size)
-
- Secondary constructor
- |
-
LSetCube(org.bukkit.Location l1,
- org.bukkit.Location l2)
-
- Constructor
- |
-
Modifier and Type | -Method and Description | -
---|---|
LSetCube.LCycler
- |
- getCycler()
-
- Creates a LCycler for the cube.
- |
-
org.bukkit.Location |
- maxLoc()
-
- Returns the absolute max. of the cube
- |
-
org.bukkit.Location |
- minLoc()
-
- Returns the absolute min. of the cube
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public LSetCube(org.bukkit.Location l1, - org.bukkit.Location l2)-
l1
-l2
-public LSetCube(org.bukkit.Location l1, - int size)-
l1
-size
-public org.bukkit.Location minLoc()-
public org.bukkit.Location maxLoc()-
public LSetCube.LCycler getCycler()-
public class Lag
-extends java.lang.Object
-implements java.lang.Runnable
- Modifier and Type | -Field and Description | -
---|---|
static long |
- LT
-
- something :_:
- |
-
static long[] |
- T
-
- Ticks
- |
-
static int |
- TC
-
- Tick count
- |
-
Constructor and Description | -
---|
Lag()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static long |
- getElapsed(int tI)
-
- Get number of ticks since
- |
-
static double |
- getFullPercentage()
-
- Get TPS percentage (of 20)
- |
-
static double |
- getPercentage()
-
- Get lag percentage
- |
-
static double |
- getTPS()
-
- Get the server TPS
- |
-
static double |
- getTPS(int ticks)
-
- Return the tick per second (measured in $ticks)
- |
-
void |
- run()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static int TC-
public static long[] T-
public static long LT-
public static double getTPS()-
public static double getTPS(int ticks)-
ticks
- Tickspublic static long getElapsed(int tI)-
tI
- Ticks <public static double getPercentage()-
public static double getFullPercentage()-
public void run()-
run
in interface java.lang.Runnable
public static enum Logger.LogLevel -extends java.lang.Enum<Logger.LogLevel>-
Enum Constant and Description | -
---|
DANGER
- |
-
GENERAL
- |
-
WARNING
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- toString()
- |
-
static Logger.LogLevel |
- valueOf(java.lang.String name)
-
- Returns the enum constant of this type with the specified name.
- |
-
static Logger.LogLevel[] |
- values()
-
- Returns an array containing the constants of this enum type, in
- the order they are declared.
-
- |
-
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal,
- valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final Logger.LogLevel GENERAL-
public static final Logger.LogLevel WARNING-
public static final Logger.LogLevel DANGER-
public static Logger.LogLevel[] values()-
-for (Logger.LogLevel c : Logger.LogLevel.values()) - System.out.println(c); --
public static Logger.LogLevel valueOf(java.lang.String name)-
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
- with the specified name
- java.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()-
toString
in class java.lang.Enum<Logger.LogLevel>
-
public class Logger
-extends java.lang.Object
- Modifier and Type | -Class and Description | -
---|---|
static class |
- Logger.LogLevel
- |
-
Constructor and Description | -
---|
Logger()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
- add(Logger.LogLevel level,
- java.lang.String string) |
-
static void |
- setup(java.io.File file)
- |
-
static void |
- write()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static void setup(java.io.File file)-
public static void write() - throws java.io.IOException-
java.io.IOException
public static void add(Logger.LogLevel level, - java.lang.String string)-
public static class Metrics.Graph
-extends java.lang.Object
- Modifier and Type | -Method and Description | -
---|---|
void |
- addPlotter(Metrics.Plotter plotter)
-
- Add a plotter to the graph, which will be used to plot entries
-
- |
-
boolean |
- equals(java.lang.Object object)
- |
-
java.lang.String |
- getName()
-
- Gets the graph's name
- |
-
java.util.Set<Metrics.Plotter>
- |
- getPlotters()
-
- Gets an unmodifiable set of the plotter objects in the
- graph
-
- |
-
int |
- hashCode()
- |
-
protected void |
- onOptOut()
-
- Called when the server owner decides to opt-out of BukkitMetrics
- while the server is running.
-
- |
-
void |
- removePlotter(Metrics.Plotter plotter)
-
- Remove a plotter from the graph
- |
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
- public java.lang.String getName()-
public void addPlotter(Metrics.Plotter plotter)-
plotter
- the plotter to add to the graphpublic void removePlotter(Metrics.Plotter plotter)-
plotter
- the plotter to remove from the graphpublic java.util.Set<Metrics.Plotter> getPlotters()-
Set
of the plotter objectspublic int hashCode()-
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)-
equals
in class java.lang.Object
protected void onOptOut()-
public abstract static class Metrics.Plotter
-extends java.lang.Object
- Constructor and Description | -
---|
Metrics.Plotter()
-
- Construct a plotter with the default plot name
- |
-
Metrics.Plotter(java.lang.String name)
-
- Construct a plotter with a specific plot name
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- equals(java.lang.Object object)
- |
-
java.lang.String |
- getColumnName()
-
- Get the column name for the plotted point
- |
-
abstract int |
- getValue()
-
- Get the current value for the plotted point.
- |
-
int |
- hashCode()
- |
-
void |
- reset()
-
- Called after the website graphs have been updated
- |
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
public Metrics.Plotter()-
public Metrics.Plotter(java.lang.String name)-
name
- the name of the plotter to use, which will show up on the
- website
- public abstract int getValue()-
public java.lang.String getColumnName()-
public void reset()-
public int hashCode()-
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)-
equals
in class java.lang.Object
public class Metrics
-extends java.lang.Object
- Modifier and Type | -Class and Description | -
---|---|
static class |
- Metrics.Graph
-
- Represents a custom graph on the website
- |
-
static class |
- Metrics.Plotter
-
- Interface used to collect custom data for a plugin
- |
-
Constructor and Description | -
---|
Metrics(org.bukkit.plugin.Plugin plugin)
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- addGraph(Metrics.Graph graph)
-
- Add a Graph object to BukkitMetrics that represents data for the
- plugin
- that should be sent to the backend
-
- |
-
Metrics.Graph |
- createGraph(java.lang.String name)
-
- Construct and create a Graph that can be used to separate specific
- plotters to their own graphs on the metrics website.
-
- |
-
void |
- disable()
-
- Disables metrics for the server by setting "opt-out" to true in the
- config file and canceling the metrics task.
-
- |
-
void |
- enable()
-
- Enables metrics for the server by setting "opt-out" to false in the
- config file and starting the metrics task.
-
- |
-
java.io.File |
- getConfigFile()
-
- Gets the File object of the config file that should be used to store
- data
- such as the GUID and opt-out status
-
- |
-
static byte[] |
- gzip(java.lang.String input)
-
- GZip compress a string of bytes
- |
-
boolean |
- isOptOut()
-
- Has the server owner denied plugin metrics?
- |
-
boolean |
- start()
-
- Start measuring statistics.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public Metrics(org.bukkit.plugin.Plugin plugin) - throws java.io.IOException-
java.io.IOException
public static byte[] gzip(java.lang.String input)-
input
-public Metrics.Graph createGraph(java.lang.String name)-
name
- The name of the graphpublic void addGraph(Metrics.Graph graph)-
graph
- The name of the graphpublic boolean start()-
public boolean isOptOut()-
public void enable() - throws java.io.IOException-
java.io.IOException
public void disable() - throws java.io.IOException-
java.io.IOException
public java.io.File getConfigFile()-
public class PWE
-extends java.lang.Object
- Constructor and Description | -
---|
PWE()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static boolean |
- noMask(com.sk89q.worldedit.LocalSession s)
- |
-
static void |
- removeMask(org.bukkit.entity.Player p)
- |
-
static void |
- removeMask(org.bukkit.entity.Player p,
- com.sk89q.worldedit.LocalSession s) |
-
static void |
- setMask(org.bukkit.entity.Player p,
- org.bukkit.Location l) |
-
static void |
- setNoMask(org.bukkit.entity.Player p)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static void setMask(org.bukkit.entity.Player p, - org.bukkit.Location l)-
public static boolean noMask(com.sk89q.worldedit.LocalSession s)-
public static void setNoMask(org.bukkit.entity.Player p)-
public static void removeMask(org.bukkit.entity.Player p, - com.sk89q.worldedit.LocalSession s)-
public static void removeMask(org.bukkit.entity.Player p)-
public class PlayerFunctions
-extends java.lang.Object
- Constructor and Description | -
---|
PlayerFunctions()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static int |
- getAllowedPlots(org.bukkit.entity.Player p)
-
- Get the maximum number of plots a player is allowed
- |
-
static Plot |
- getBottomPlot(org.bukkit.World world,
- Plot plot)
- |
-
static Plot |
- getCurrentPlot(org.bukkit.entity.Player player)
-
- Returns the plot a player is currently in.
- |
-
static java.util.ArrayList<PlotId> |
- getMaxPlotSelectionIds(org.bukkit.World world,
- PlotId pos1,
- PlotId pos2)
- |
-
static int |
- getPlayerPlotCount(org.bukkit.World world,
- org.bukkit.entity.Player plr)
-
- Get the number of plots for a player
- |
-
static java.util.Set<Plot> |
- getPlayerPlots(org.bukkit.World world,
- org.bukkit.entity.Player plr)
-
- Get the plots for a player
- |
-
static PlotId |
- getPlot(org.bukkit.Location loc)
-
- Returns the plot id at a location (mega plots are considered)
- |
-
static PlotId |
- getPlotAbs(org.bukkit.Location loc)
-
- Returns the plot at a location (mega plots are not considered, all
- plots
- are treated as small plots)
-
- |
-
static java.util.Set<Plot> |
- getPlots()
-
- Deprecated.
- |
-
static java.util.ArrayList<PlotId> |
- getPlotSelectionIds(org.bukkit.World world,
- PlotId pos1,
- PlotId pos2)
- |
-
static Plot |
- getTopPlot(org.bukkit.World world,
- Plot plot)
- |
-
static boolean |
- hasExpired(Plot plot)
- |
-
static boolean |
- isInPlot(org.bukkit.entity.Player player)
- |
-
static boolean |
- sendMessage(org.bukkit.entity.Player plr,
- C c,
- java.lang.String... args)
-
- Send a message to the player
- |
-
static boolean |
- sendMessage(org.bukkit.entity.Player plr,
- java.lang.String msg)
-
- Send a message to the player
- |
-
static void |
- sendMessageWrapped(org.bukkit.entity.Player plr,
- java.lang.String msg)
-
- \\previous\\
- |
-
static void |
- set(Plot plot)
-
- Deprecated.
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static boolean isInPlot(org.bukkit.entity.Player player)-
player
- playerpublic static boolean hasExpired(Plot plot)-
plot
- plotpublic static java.util.ArrayList<PlotId> getPlotSelectionIds(org.bukkit.World world, - PlotId pos1, - PlotId pos2)-
public static java.util.ArrayList<PlotId> getMaxPlotSelectionIds(org.bukkit.World world, - PlotId pos1, - PlotId pos2)-
public static PlotId getPlotAbs(org.bukkit.Location loc)-
loc
-public static PlotId getPlot(org.bukkit.Location loc)-
loc
-public static Plot getCurrentPlot(org.bukkit.entity.Player player)-
player
-@Deprecated -public static void set(Plot plot)-
plot
-public static java.util.Set<Plot> getPlayerPlots(org.bukkit.World world, - org.bukkit.entity.Player plr)-
plr
-public static int getPlayerPlotCount(org.bukkit.World world, - org.bukkit.entity.Player plr)-
plr
-public static int getAllowedPlots(org.bukkit.entity.Player p)-
p
-@Deprecated -public static java.util.Set<Plot> getPlots()-
public static void sendMessageWrapped(org.bukkit.entity.Player plr, - java.lang.String msg)-
plr
-msg
- Was used to wrap the chat client length (Packets out--)public static boolean sendMessage(org.bukkit.entity.Player plr, - java.lang.String msg)-
plr
- Player to recieve messagemsg
- Message to sendpublic static boolean sendMessage(org.bukkit.entity.Player plr, - C c, - java.lang.String... args)-
plr
- Player to recieve messagec
- Caption to sendpublic class PlotHelper
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
static boolean |
- canSetFast
- |
-
static java.util.HashMap<Plot,java.lang.Integer> |
- runners
- |
-
static java.util.ArrayList<java.lang.String> |
- runners_p
- |
-
Constructor and Description | -
---|
PlotHelper()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
- adjustWall(org.bukkit.entity.Player player,
- Plot plot,
- PlotBlock block)
-
- Adjusts a plot wall
- |
-
static void |
- adjustWallFilling(org.bukkit.entity.Player requester,
- Plot plot,
- PlotBlock block) |
-
static void |
- autoMerge(org.bukkit.World world,
- Plot plot,
- org.bukkit.entity.Player player) |
-
static void |
- clear(org.bukkit.entity.Player requester,
- Plot plot)
-
- Clear a plot
- |
-
static void |
- clear(org.bukkit.World world,
- Plot plot) |
-
static void |
- clearAllEntities(org.bukkit.World world,
- Plot plot,
- boolean tile) |
-
static java.lang.String |
- createId(int x,
- int z) |
-
static boolean |
- createPlot(org.bukkit.entity.Player player,
- Plot plot) |
-
static short[] |
- getBlock(java.lang.String block)
- |
-
static Plot |
- getCurrentPlot(org.bukkit.Location loc)
-
- Returns the plot at a given location
- |
-
static int |
- getEntities(org.bukkit.World world)
- |
-
static int |
- getHeighestBlock(org.bukkit.World world,
- int x,
- int z) |
-
static int |
- getLoadedChunks(org.bukkit.World world)
- |
-
static java.lang.String |
- getPlayerName(java.util.UUID uuid)
- |
-
static Plot |
- getPlot(org.bukkit.World world,
- PlotId id)
-
- Fetches the plot from the main class
- |
-
static org.bukkit.Location |
- getPlotBottomLoc(org.bukkit.World world,
- PlotId id)
-
- Gets the bottom loc of a plot (if mega, returns bottom loc of that mega
- plot)
- - If you would like each plot treated as a small plot use
- getPlotBottomLocAbs(...)
-
- |
-
static org.bukkit.Location |
- getPlotBottomLocAbs(org.bukkit.World world,
- PlotId id)
-
- Gets the bottom plot location of a plot (all plots are treated as small
- plots)
- - To get the top loc of a mega plot use getPlotBottomLoc(...)
-
- |
-
static org.bukkit.Location |
- getPlotHome(org.bukkit.World w,
- Plot plot) |
-
static org.bukkit.Location |
- getPlotHome(org.bukkit.World w,
- PlotId plotid) |
-
static PlotId |
- getPlotIdRelative(PlotId id,
- int direction)
-
- direction 0 = north, 1 = south, etc:
- |
-
static org.bukkit.Location |
- getPlotTopLoc(org.bukkit.World world,
- PlotId id)
-
- Gets the top loc of a plot (if mega, returns top loc of that mega plot)
- - If you would like each plot treated as a small plot use
- getPlotTopLocAbs(...)
-
- |
-
static org.bukkit.Location |
- getPlotTopLocAbs(org.bukkit.World world,
- PlotId id)
-
- Gets the top plot location of a plot (all plots are treated as small
- plots)
- - To get the top loc of a mega plot use getPlotTopLoc(...)
-
- |
-
static int |
- getPlotWidth(org.bukkit.World world,
- PlotId id)
-
- Obtains the width of a plot (x width)
- |
-
static java.lang.String |
- getStringSized(int max,
- java.lang.String string) |
-
static int |
- getTileEntities(org.bukkit.World world)
- |
-
static double |
- getWorldFolderSize(org.bukkit.World world)
- |
-
static void |
- mergePlot(org.bukkit.World world,
- Plot lesserPlot,
- Plot greaterPlot)
-
- Merges 2 plots Removes the road inbetween
- - - Assumes the first plot parameter is lower - - Assumes neither are a Mega-plot - - Assumes plots are directly next to each other - - Saves to DB - |
-
static boolean |
- mergePlots(org.bukkit.entity.Player plr,
- org.bukkit.World world,
- java.util.ArrayList<PlotId> plotIds)
-
- Merges all plots in the arraylist (with cost)
- |
-
static boolean |
- mergePlots(org.bukkit.World world,
- java.util.ArrayList<PlotId> plotIds)
-
- Completely merges a set of plots
- - (There are no checks to make sure you supply the correct - arguments) - - Misuse of this method can result in unusable plots - - the set of plots must belong to one owner and be rectangular - - the plot array must be sorted in ascending order - - Road will be removed where required - - changes will be saved to DB |
-
static long |
- nextLong()
- |
-
static int |
- random(int n)
- |
-
static void |
- refreshPlotChunks(org.bukkit.World world,
- Plot plot) |
-
static void |
- removeSign(org.bukkit.World world,
- Plot p) |
-
static void |
- setBiome(org.bukkit.World world,
- Plot plot,
- org.bukkit.block.Biome b) |
-
static boolean |
- setBlock(org.bukkit.block.Block block,
- PlotBlock plotblock)
-
- Set a block quickly, attempts to use NMS if possible
- |
-
static void |
- setCuboid(org.bukkit.World world,
- org.bukkit.Location pos1,
- org.bukkit.Location pos2,
- PlotBlock[] blocks) |
-
static void |
- setFloor(org.bukkit.entity.Player requester,
- Plot plot,
- PlotBlock[] blocks) |
-
static void |
- setSign(org.bukkit.entity.Player player,
- Plot p) |
-
static void |
- setSign(org.bukkit.World world,
- java.lang.String name,
- Plot p) |
-
static void |
- setSimpleCuboid(org.bukkit.World world,
- org.bukkit.Location pos1,
- org.bukkit.Location pos2,
- PlotBlock newblock) |
-
static int |
- square(int x)
- |
-
static long |
- xorShift64(long a)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static boolean canSetFast-
public static java.util.ArrayList<java.lang.String> runners_p-
public static java.util.HashMap<Plot,java.lang.Integer> runners-
public static PlotId getPlotIdRelative(PlotId id, - int direction)-
id
-direction
-public static boolean mergePlots(org.bukkit.entity.Player plr, - org.bukkit.World world, - java.util.ArrayList<PlotId> plotIds)-
plr
-world
-plotIds
-public static boolean mergePlots(org.bukkit.World world, - java.util.ArrayList<PlotId> plotIds)-
world
-plotIds
-public static void mergePlot(org.bukkit.World world, - Plot lesserPlot, - Plot greaterPlot)-
world
-lesserPlot
-greaterPlot
-public static final long nextLong()-
public static final long xorShift64(long a)-
public static final int random(int n)-
public static void removeSign(org.bukkit.World world, - Plot p)-
public static void setSign(org.bukkit.entity.Player player, - Plot p)-
public static void setSign(org.bukkit.World world, - java.lang.String name, - Plot p)-
public static java.lang.String getPlayerName(java.util.UUID uuid)-
public static java.lang.String getStringSized(int max, - java.lang.String string)-
public static boolean setBlock(org.bukkit.block.Block block, - PlotBlock plotblock)-
block
-plotblock
-public static void adjustWall(org.bukkit.entity.Player player, - Plot plot, - PlotBlock block)-
player
-plot
-block
-public static void autoMerge(org.bukkit.World world, - Plot plot, - org.bukkit.entity.Player player)-
public static boolean createPlot(org.bukkit.entity.Player player, - Plot plot)-
public static int getLoadedChunks(org.bukkit.World world)-
public static int getEntities(org.bukkit.World world)-
public static int getTileEntities(org.bukkit.World world)-
public static double getWorldFolderSize(org.bukkit.World world)-
public static java.lang.String createId(int x, - int z)-
public static void adjustWallFilling(org.bukkit.entity.Player requester, - Plot plot, - PlotBlock block)-
public static void setFloor(org.bukkit.entity.Player requester, - Plot plot, - PlotBlock[] blocks)-
public static int square(int x)-
public static short[] getBlock(java.lang.String block)-
public static void clearAllEntities(org.bukkit.World world, - Plot plot, - boolean tile)-
public static void clear(org.bukkit.World world, - Plot plot)-
public static void clear(org.bukkit.entity.Player requester, - Plot plot)-
requester
-plot
-public static void setCuboid(org.bukkit.World world, - org.bukkit.Location pos1, - org.bukkit.Location pos2, - PlotBlock[] blocks)-
public static void setSimpleCuboid(org.bukkit.World world, - org.bukkit.Location pos1, - org.bukkit.Location pos2, - PlotBlock newblock)-
public static void setBiome(org.bukkit.World world, - Plot plot, - org.bukkit.block.Biome b)-
public static int getHeighestBlock(org.bukkit.World world, - int x, - int z)-
public static org.bukkit.Location getPlotHome(org.bukkit.World w, - PlotId plotid)-
public static org.bukkit.Location getPlotHome(org.bukkit.World w, - Plot plot)-
public static void refreshPlotChunks(org.bukkit.World world, - Plot plot)-
public static org.bukkit.Location getPlotTopLocAbs(org.bukkit.World world, - PlotId id)-
world
-id
-public static org.bukkit.Location getPlotBottomLocAbs(org.bukkit.World world, - PlotId id)-
world
-id
-public static int getPlotWidth(org.bukkit.World world, - PlotId id)-
world
-id
-public static org.bukkit.Location getPlotTopLoc(org.bukkit.World world, - PlotId id)-
world
-id
-public static org.bukkit.Location getPlotBottomLoc(org.bukkit.World world, - PlotId id)-
world
-id
-public static Plot getPlot(org.bukkit.World world, - PlotId id)-
world
-id
-public static Plot getCurrentPlot(org.bukkit.Location loc)-
loc
-public static enum PlotSquaredException.PlotError -extends java.lang.Enum<PlotSquaredException.PlotError>-
Enum Constant and Description | -
---|
MISSING_DEPENDENCY
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- getHeader()
- |
-
java.lang.String |
- toString()
- |
-
static PlotSquaredException.PlotError
- |
- valueOf(java.lang.String name)
-
- Returns the enum constant of this type with the specified name.
-
- |
-
static PlotSquaredException.PlotError[]
- |
- values()
-
- Returns an array containing the constants of this enum type, in
- the order they are declared.
-
- |
-
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal,
- valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final PlotSquaredException.PlotError MISSING_DEPENDENCY-
public static PlotSquaredException.PlotError[] values()-
-for (PlotSquaredException.PlotError c : PlotSquaredException.PlotError.values()) - System.out.println(c); --
public static PlotSquaredException.PlotError valueOf(java.lang.String name)-
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no
- constant with the specified name
- java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getHeader()-
public java.lang.String toString()-
toString
in class java.lang.Enum<PlotSquaredException.PlotError>
-
public class PlotSquaredException
-extends java.lang.RuntimeException
- Modifier and Type | -Class and Description | -
---|---|
static class |
- PlotSquaredException.PlotError
- |
-
Constructor and Description | -
---|
PlotSquaredException(PlotSquaredException.PlotError error,
- java.lang.String details) |
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage,
- getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace,
- printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public PlotSquaredException(PlotSquaredException.PlotError error, - java.lang.String details)-
public class RUtils
-extends java.lang.Object
- Constructor and Description | -
---|
RUtils()
- |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
- compareDirections(org.bukkit.Location l1,
- org.bukkit.Location l2) |
-
void |
- forceTexture(org.bukkit.entity.Player p)
-
- Force textures on the client
- |
-
static java.lang.String |
- formatTime(double sec)
-
- Get formatted time
- |
-
com.intellectualcrafters.plot.util.RUtils.Direction |
- getDirection(org.bukkit.Location l)
- |
-
static long |
- getFreeRam()
-
- Get the total free ram
- |
-
static long |
- getRamPercentage()
-
- Percentage of used ram
- |
-
static long |
- getTotalRam()
-
- Get the total allocated ram
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static long getTotalRam()-
public static long getFreeRam()-
public static long getRamPercentage()-
public static java.lang.String formatTime(double sec)-
sec
- secondspublic void forceTexture(org.bukkit.entity.Player p)-
p
- texture to forcepublic com.intellectualcrafters.plot.util.RUtils.Direction getDirection(org.bukkit.Location l)-
public boolean compareDirections(org.bukkit.Location l1, - org.bukkit.Location l2)-
public static class ReflectionUtils.RefClass
-extends java.lang.Object
- Modifier and Type | -Method and Description | -
---|---|
ReflectionUtils.RefConstructor
- |
- findConstructor(int number)
-
- find constructor by number of arguments
- |
-
ReflectionUtils.RefField
- |
- findField(java.lang.Class type)
-
- find field by type
- |
-
ReflectionUtils.RefField
- |
- findField(ReflectionUtils.RefClass type)
-
- find field by type
- |
-
ReflectionUtils.RefMethod
- |
- findMethod(java.lang.Object... types)
-
- find method by type parameters
- |
-
ReflectionUtils.RefMethod
- |
- findMethodByName(java.lang.String... names)
-
- find method by name
- |
-
ReflectionUtils.RefMethod
- |
- findMethodByReturnType(java.lang.Class type)
-
- find method by return value
- |
-
ReflectionUtils.RefMethod
- |
- findMethodByReturnType(ReflectionUtils.RefClass type)
-
- find method by return value
- |
-
ReflectionUtils.RefConstructor
- |
- getConstructor(java.lang.Object... types)
-
- get existing constructor by types
- |
-
ReflectionUtils.RefField
- |
- getField(java.lang.String name)
-
- get field by name
- |
-
ReflectionUtils.RefMethod
- |
- getMethod(java.lang.String name,
- java.lang.Object... types)
-
- get existing method by name and types
- |
-
java.lang.Class<?> |
- getRealClass()
-
- get passed class
- |
-
boolean |
- isInstance(java.lang.Object object)
-
- see
- Class.isInstance(Object) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public java.lang.Class<?> getRealClass()-
public boolean isInstance(java.lang.Object object)-
Class.isInstance(Object)
object
- the object to checkpublic ReflectionUtils.RefMethod getMethod(java.lang.String name, - java.lang.Object... types) - throws java.lang.NoSuchMethodException-
name
- nametypes
- method parameters. can be Class or RefClassjava.lang.RuntimeException
- if method not foundjava.lang.NoSuchMethodException
public ReflectionUtils.RefConstructor getConstructor(java.lang.Object... types)-
types
- parameters. can be Class or RefClassjava.lang.RuntimeException
- if constructor not foundpublic ReflectionUtils.RefMethod findMethod(java.lang.Object... types)-
types
- parameters. can be Class or RefClassjava.lang.RuntimeException
- if method not foundpublic ReflectionUtils.RefMethod findMethodByName(java.lang.String... names)-
names
- possible names of methodjava.lang.RuntimeException
- if method not foundpublic ReflectionUtils.RefMethod findMethodByReturnType(ReflectionUtils.RefClass type)-
type
- type of returned valuejava.lang.RuntimeException
- if method not foundpublic ReflectionUtils.RefMethod findMethodByReturnType(java.lang.Class type)-
type
- type of returned valuejava.lang.RuntimeException
- if method not foundpublic ReflectionUtils.RefConstructor findConstructor(int number)-
number
- number of argumentsjava.lang.RuntimeException
- if constructor not foundpublic ReflectionUtils.RefField getField(java.lang.String name)-
name
- field namejava.lang.RuntimeException
- if field not foundpublic ReflectionUtils.RefField findField(ReflectionUtils.RefClass type)-
type
- field typejava.lang.RuntimeException
- if field not foundpublic ReflectionUtils.RefField findField(java.lang.Class type)-
type
- field typejava.lang.RuntimeException
- if field not foundpublic static class ReflectionUtils.RefConstructor
-extends java.lang.Object
- Modifier and Type | -Method and Description | -
---|---|
java.lang.Object |
- create(java.lang.Object... params)
-
- create new instance with constructor
- |
-
java.lang.reflect.Constructor |
- getRealConstructor()
- |
-
ReflectionUtils.RefClass
- |
- getRefClass()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public java.lang.reflect.Constructor getRealConstructor()-
public ReflectionUtils.RefClass getRefClass()-
public java.lang.Object create(java.lang.Object... params)-
params
- parameters for constructorjava.lang.RuntimeException
- if something went wrongpublic class ReflectionUtils.RefField.RefExecutor
-extends java.lang.Object
- Constructor and Description | -
---|
ReflectionUtils.RefField.RefExecutor(java.lang.Object e)
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Object |
- get()
-
- get field value for applied object
- |
-
void |
- set(java.lang.Object param)
-
- set field value for applied object
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static class ReflectionUtils.RefField
-extends java.lang.Object
- Modifier and Type | -Class and Description | -
---|---|
class |
- ReflectionUtils.RefField.RefExecutor
- |
-
Modifier and Type | -Method and Description | -
---|---|
ReflectionUtils.RefClass
- |
- getFieldRefClass()
- |
-
java.lang.reflect.Field |
- getRealField()
- |
-
ReflectionUtils.RefClass
- |
- getRefClass()
- |
-
ReflectionUtils.RefField.RefExecutor
- |
- of(java.lang.Object e)
-
- apply fiend for object
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public java.lang.reflect.Field getRealField()-
public ReflectionUtils.RefClass getRefClass()-
public ReflectionUtils.RefClass getFieldRefClass()-
public ReflectionUtils.RefField.RefExecutor of(java.lang.Object e)-
e
- applied objectpublic class ReflectionUtils.RefMethod.RefExecutor
-extends java.lang.Object
- Constructor and Description | -
---|
ReflectionUtils.RefMethod.RefExecutor(java.lang.Object e)
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Object |
- call(java.lang.Object... params)
-
- apply method for selected object
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static class ReflectionUtils.RefMethod
-extends java.lang.Object
- Modifier and Type | -Class and Description | -
---|---|
class |
- ReflectionUtils.RefMethod.RefExecutor
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.Object |
- call(java.lang.Object... params)
-
- call static method
- |
-
java.lang.reflect.Method |
- getRealMethod()
- |
-
ReflectionUtils.RefClass
- |
- getRefClass()
- |
-
ReflectionUtils.RefClass
- |
- getReturnRefClass()
- |
-
ReflectionUtils.RefMethod.RefExecutor
- |
- of(java.lang.Object e)
-
- apply method to object
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public java.lang.reflect.Method getRealMethod()-
public ReflectionUtils.RefClass getRefClass()-
public ReflectionUtils.RefClass getReturnRefClass()-
public ReflectionUtils.RefMethod.RefExecutor of(java.lang.Object e)-
e
- object to which the method is appliedpublic java.lang.Object call(java.lang.Object... params)-
params
- sent parameterspublic class ReflectionUtils
-extends java.lang.Object
- Modifier and Type | -Class and Description | -
---|---|
static class |
- ReflectionUtils.RefClass
-
- RefClass - utility to simplify work with reflections.
- |
-
static class |
- ReflectionUtils.RefConstructor
-
- Constructor wrapper
- |
-
static class |
- ReflectionUtils.RefField
- |
-
static class |
- ReflectionUtils.RefMethod
-
- Method wrapper
- |
-
Constructor and Description | -
---|
ReflectionUtils()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static ReflectionUtils.RefClass
- |
- getRefClass(java.lang.Class clazz)
-
- get RefClass object by real class
- |
-
static ReflectionUtils.RefClass
- |
- getRefClass(java.lang.String... classes)
-
- Get class for name.
- |
-
static boolean |
- isForge()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static boolean isForge()-
public static ReflectionUtils.RefClass getRefClass(java.lang.String... classes)-
classes
- possible class pathsjava.lang.RuntimeException
- if no class foundpublic static ReflectionUtils.RefClass getRefClass(java.lang.Class clazz)-
clazz
- classpublic static class SchematicHandler.DataCollection
-extends java.lang.Object
- Constructor and Description | -
---|
SchematicHandler.DataCollection(short block,
- byte data) |
-
public static class SchematicHandler.Dimension
-extends java.lang.Object
- Constructor and Description | -
---|
SchematicHandler.Dimension(int x,
- int y,
- int z) |
-
Modifier and Type | -Method and Description | -
---|---|
int |
- getX()
- |
-
int |
- getY()
- |
-
int |
- getZ()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static class SchematicHandler.Schematic
-extends java.lang.Object
- Constructor and Description | -
---|
SchematicHandler.Schematic(SchematicHandler.DataCollection[] blockCollection,
- SchematicHandler.Dimension schematicDimension,
- java.io.File file) |
-
Modifier and Type | -Method and Description | -
---|---|
SchematicHandler.DataCollection[]
- |
- getBlockCollection()
- |
-
java.io.File |
- getFile()
- |
-
SchematicHandler.Dimension
- |
- getSchematicDimension()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public SchematicHandler.Schematic(SchematicHandler.DataCollection[] blockCollection, - SchematicHandler.Dimension schematicDimension, - java.io.File file)-
public java.io.File getFile()-
public SchematicHandler.Dimension getSchematicDimension()-
public SchematicHandler.DataCollection[] getBlockCollection()-
public class SchematicHandler
-extends java.lang.Object
- Modifier and Type | -Class and Description | -
---|---|
static class |
- SchematicHandler.DataCollection
-
- Schematic Data Collection
- |
-
static class |
- SchematicHandler.Dimension
-
- Schematic Dimensions
- |
-
static class |
- SchematicHandler.Schematic
-
- Schematic Class
- |
-
Constructor and Description | -
---|
SchematicHandler()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static CompoundTag |
- getCompoundTag(org.bukkit.World world,
- PlotId id)
-
- Gets the schematic of a plot
- |
-
static SchematicHandler.Schematic
- |
- getSchematic(java.lang.String name)
-
- Get a schematic
- |
-
static boolean |
- paste(org.bukkit.Location location,
- SchematicHandler.Schematic schematic,
- Plot plot,
- int x_offset,
- int z_offset)
-
- Paste a schematic
- |
-
static boolean |
- pastePart(org.bukkit.World world,
- SchematicHandler.DataCollection[] blocks,
- org.bukkit.Location l1,
- int x_offset,
- int z_offset,
- int i1,
- int i2,
- int WIDTH,
- int LENGTH) |
-
static boolean |
- save(CompoundTag tag,
- java.lang.String path)
-
- Saves a schematic to a file path
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static boolean paste(org.bukkit.Location location, - SchematicHandler.Schematic schematic, - Plot plot, - int x_offset, - int z_offset)-
location
- originschematic
- schematic to pasteplot
- plot to paste inpublic static SchematicHandler.Schematic getSchematic(java.lang.String name)-
name
- to checkpublic static boolean save(CompoundTag tag, - java.lang.String path)-
tag
- to savepath
- to save inpublic static CompoundTag getCompoundTag(org.bukkit.World world, - PlotId id)-
world
- to checkid
- plotpublic static boolean pastePart(org.bukkit.World world, - SchematicHandler.DataCollection[] blocks, - org.bukkit.Location l1, - int x_offset, - int z_offset, - int i1, - int i2, - int WIDTH, - int LENGTH)-
public class SetBlockFast
-extends java.lang.Object
- Constructor and Description | -
---|
SetBlockFast()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static boolean |
- set(org.bukkit.World world,
- int x,
- int y,
- int z,
- int blockId,
- byte data) |
-
static void |
- update(org.bukkit.entity.Player player)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public SetBlockFast() - throws java.lang.NoSuchMethodException-
java.lang.NoSuchMethodException
public static boolean set(org.bukkit.World world, - int x, - int y, - int z, - int blockId, - byte data) - throws java.lang.NoSuchMethodException-
java.lang.NoSuchMethodException
public static void update(org.bukkit.entity.Player player)-
public class StringComparison
-extends java.lang.Object
- Constructor and Description | -
---|
StringComparison(java.lang.String input,
- java.lang.Object[] objects)
-
- Constructor
- |
-
Modifier and Type | -Method and Description | -
---|---|
static double |
- compare(java.lang.String s1,
- java.lang.String s2)
-
- Compare two strings
- |
-
java.lang.String |
- getBestMatch()
-
- Get the best match value
- |
-
java.lang.Object[] |
- getBestMatchAdvanced()
-
- Will return both the match number, and the actual match string
- |
-
java.lang.Object |
- getMatchObject()
-
- Get the object
- |
-
static java.lang.String[] |
- sLetterPair(java.lang.String s)
-
- Get an array containing letter pairs
- |
-
static java.util.ArrayList |
- wLetterPair(java.lang.String s)
-
- Create an ArrayList containing pairs of letters
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public StringComparison(java.lang.String input, - java.lang.Object[] objects)-
input
- Input Base Valueobjects
- Objects to comparepublic static double compare(java.lang.String s1, - java.lang.String s2)-
s1
- String Bases2
- Objectpublic static java.util.ArrayList wLetterPair(java.lang.String s)-
s
- string to splitpublic static java.lang.String[] sLetterPair(java.lang.String s)-
s
- string to splitpublic java.lang.Object getMatchObject()-
public java.lang.String getBestMatch()-
public java.lang.Object[] getBestMatchAdvanced()-
public class UUIDHandler
-extends java.lang.Object
- Constructor and Description | -
---|
UUIDHandler()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
- add(StringWrapper name,
- java.util.UUID uuid)
-
- Add a set to the cache
- |
-
static java.lang.String |
- getName(java.util.UUID uuid)
- |
-
static java.util.UUID |
- getUUID(java.lang.String name)
- |
-
static com.google.common.collect.BiMap<StringWrapper,java.util.UUID>
- |
- getUuidMap()
-
- Get the map containing all names/uuids
- |
-
static void |
- handleSaving()
-
- Handle saving of uuids
- |
-
static boolean |
- nameExists(StringWrapper name)
-
- Check if a name is cached
- |
-
static boolean |
- uuidExists(java.util.UUID uuid)
-
- Check if a uuid is cached
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public static com.google.common.collect.BiMap<StringWrapper,java.util.UUID> getUuidMap()-
public static boolean uuidExists(java.util.UUID uuid)-
uuid
- to checkpublic static boolean nameExists(StringWrapper name)-
name
- to checkpublic static void add(StringWrapper name, - java.util.UUID uuid)-
name
- to cacheuuid
- to cachepublic static java.util.UUID getUUID(java.lang.String name)-
name
- to use as keypublic static java.lang.String getName(java.util.UUID uuid)-
uuid
- to use as keypublic static void handleSaving()-
UUIDSaver.globalSave(com.google.common.collect.BiMap)
- Class | -Description | -
---|---|
ConsoleColors | -- |
Lag | -
- TPS and Lag Checker.
- |
-
Logger | -
- Logging of errors and debug messages.
- |
-
LSetCube | -
- Cube utilities
- |
-
Metrics | -- |
Metrics.Graph | -
- Represents a custom graph on the website
- |
-
Metrics.Plotter | -
- Interface used to collect custom data for a plugin
- |
-
PlayerFunctions | -
- Functions involving players, plots and locations.
- |
-
PlotHelper | -
- plot functions
- |
-
PWE | -- |
ReflectionUtils | -- |
ReflectionUtils.RefClass | -
- RefClass - utility to simplify work with reflections.
- |
-
ReflectionUtils.RefConstructor | -
- Constructor wrapper
- |
-
ReflectionUtils.RefField | -- |
ReflectionUtils.RefMethod | -
- Method wrapper
- |
-
RUtils | -
- Random utilities
- |
-
SchematicHandler - | -
- Schematic Handler
- |
-
SchematicHandler.DataCollection | -
- Schematic Data Collection
- |
-
SchematicHandler.Dimension | -
- Schematic Dimensions
- |
-
SchematicHandler.Schematic | -
- Schematic Class
- |
-
SetBlockFast | -
- SetBlockFast class
- - Used to do fast world editing - |
-
StringComparison - | -
- String comparison library
- |
-
UUIDHandler | -
- This class can be used to efficiently translate UUIDs and names back and
- forth.
-
- |
-
Enum | -Description | -
---|---|
Logger.LogLevel | -- |
PlotSquaredException.PlotError | -- |
Exception | -Description | -
---|---|
PlotSquaredException | -
- Created by Citymonstret on 2014-09-29.
- |
-
public class NameFetcher
-extends java.lang.Object
-implements java.util.concurrent.Callable<java.util.Map<java.util.UUID,java.lang.String>>
- Constructor and Description | -
---|
NameFetcher(java.util.List<java.util.UUID> uuids)
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.util.Map<java.util.UUID,java.lang.String>
- |
- call()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public class PlotUUIDSaver -extends UUIDSaver-
Constructor and Description | -
---|
PlotUUIDSaver()
- |
-
Modifier and Type | -Method and Description | -
---|---|
UUIDSet |
- get(java.lang.String name)
- |
-
UUIDSet |
- get(java.util.UUID uuid)
- |
-
void |
- globalPopulate()
- |
-
void |
- globalSave(com.google.common.collect.BiMap<StringWrapper,java.util.UUID> map)
- |
-
java.lang.String |
- mojangName(java.util.UUID uuid)
- |
-
java.util.UUID |
- mojangUUID(java.lang.String name)
- |
-
void |
- save(UUIDSet set)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public void globalPopulate()-
globalPopulate
in
- class UUIDSaver
- public void globalSave(com.google.common.collect.BiMap<StringWrapper,java.util.UUID> map)-
globalSave
in
- class UUIDSaver
- public java.util.UUID mojangUUID(java.lang.String name) - throws java.lang.Exception-
mojangUUID
in
- class UUIDSaver
- java.lang.Exception
public java.lang.String mojangName(java.util.UUID uuid) - throws java.lang.Exception-
mojangName
in
- class UUIDSaver
- java.lang.Exception
public UUIDSet get(java.lang.String name)- -
public class UUIDFetcher
-extends java.lang.Object
-implements java.util.concurrent.Callable<java.util.Map<java.lang.String,java.util.UUID>>
- Constructor and Description | -
---|
UUIDFetcher(java.util.List<java.lang.String> names)
- |
-
UUIDFetcher(java.util.List<java.lang.String> names,
- boolean rateLimiting) |
-
Modifier and Type | -Method and Description | -
---|---|
java.util.Map<java.lang.String,java.util.UUID>
- |
- call()
- |
-
static java.util.UUID |
- fromBytes(byte[] array)
- |
-
static java.util.UUID |
- getUUID(java.lang.String id)
- |
-
static java.util.UUID |
- getUUIDOf(java.lang.String name)
- |
-
static byte[] |
- toBytes(java.util.UUID uuid)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public UUIDFetcher(java.util.List<java.lang.String> names, - boolean rateLimiting)-
public UUIDFetcher(java.util.List<java.lang.String> names)-
public java.util.Map<java.lang.String,java.util.UUID> call() - throws java.lang.Exception-
call
in interface java.util.concurrent.Callable<java.util.Map<java.lang.String,java.util.UUID>>
- java.lang.Exception
public static java.util.UUID getUUID(java.lang.String id)-
public static byte[] toBytes(java.util.UUID uuid)-
public static java.util.UUID fromBytes(byte[] array)-
public static java.util.UUID getUUIDOf(java.lang.String name) - throws java.lang.Exception-
java.lang.Exception
public abstract class UUIDSaver
-extends java.lang.Object
- Constructor and Description | -
---|
UUIDSaver()
- |
-
Modifier and Type | -Method and Description | -
---|---|
abstract UUIDSet |
- get(java.lang.String name)
- |
-
abstract UUIDSet |
- get(java.util.UUID uuid)
- |
-
abstract void |
- globalPopulate()
- |
-
abstract void |
- globalSave(com.google.common.collect.BiMap<StringWrapper,java.util.UUID> biMap)
- |
-
abstract java.lang.String |
- mojangName(java.util.UUID uuid)
- |
-
abstract java.util.UUID |
- mojangUUID(java.lang.String name)
- |
-
abstract void |
- save(UUIDSet set)
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public abstract void globalPopulate()-
public abstract void globalSave(com.google.common.collect.BiMap<StringWrapper,java.util.UUID> biMap)-
public abstract void save(UUIDSet set)-
public abstract UUIDSet get(java.lang.String name)-
public abstract UUIDSet get(java.util.UUID uuid)-
public abstract java.util.UUID mojangUUID(java.lang.String name) - throws java.lang.Exception-
java.lang.Exception
public abstract java.lang.String mojangName(java.util.UUID uuid) - throws java.lang.Exception-
java.lang.Exception
public class UUIDSet
-extends java.lang.Object
- Constructor and Description | -
---|
UUIDSet(java.lang.String name,
- java.util.UUID uuid) |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- getName()
- |
-
java.util.UUID |
- getUUID()
- |
-
java.lang.String |
- toString()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
Class | -Description | -
---|---|
NameFetcher | -- |
PlotUUIDSaver | -
- Created by Citymonstret on 2014-10-13.
- |
-
UUIDFetcher | -- |
UUIDSaver | -
- Created by Citymonstret on 2014-10-13.
- |
-
UUIDSet | -
- Created by Citymonstret on 2014-10-13.
- |
-
@Retention(value=RUNTIME)
-@Target(value=FIELD)
-public @interface Translation
- Modifier and Type | -Optional Element and Description | -
---|---|
java.lang.String |
- creationDescription
- |
-
java.lang.String |
- description
- |
-
public class TranslationAsset
-extends java.lang.Object
- Constructor and Description | -
---|
TranslationAsset(TranslationObject trans,
- java.lang.String translated,
- TranslationLanguage lang)
- |
-
Modifier and Type | -Method and Description | -
---|---|
TranslationLanguage
- |
- getLang()
- |
-
TranslationObject
- |
- getObject()
- |
-
java.lang.String |
- getTranslated()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public TranslationAsset(TranslationObject trans, - java.lang.String translated, - TranslationLanguage lang)-
public TranslationObject getObject()-
public java.lang.String getTranslated()-
public TranslationLanguage getLang()-
public abstract class TranslationFile
-extends java.lang.Object
- Constructor and Description | -
---|
TranslationFile()
- |
-
Modifier and Type | -Method and Description | -
---|---|
abstract void |
- add(java.lang.String key,
- java.lang.String value)
-
- Add a value
- |
-
abstract TranslationLanguage
- |
- getLanguage()
-
- A method used to get the language of the file
- |
-
abstract TranslationFile
- |
- read()
-
- Read from the file
- |
-
abstract void |
- saveFile()
-
- Save the file
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public abstract TranslationLanguage getLanguage()-
public abstract void saveFile()-
public abstract TranslationFile read()-
public abstract void add(java.lang.String key, - java.lang.String value)-
key
- namevalue
- valuepublic class TranslationLanguage
-extends java.lang.Object
- Modifier and Type | -Field and Description | -
---|---|
static TranslationLanguage
- |
- englishAmerican
- |
-
static TranslationLanguage
- |
- englishBritish
- |
-
static TranslationLanguage
- |
- russianRussian
- |
-
static TranslationLanguage
- |
- swedishSwedish
- |
-
Constructor and Description | -
---|
TranslationLanguage(java.lang.String friendlyName,
- java.lang.String countryCode,
- java.lang.String languageCode) |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- getCountryCode()
- |
-
java.lang.String |
- getLanguageCode()
- |
-
java.lang.String |
- getName()
- |
-
java.lang.String |
- toString()
- |
-
static TranslationLanguage[]
- |
- values()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
- wait
public static final TranslationLanguage englishAmerican-
public static final TranslationLanguage englishBritish-
public static final TranslationLanguage swedishSwedish-
public static final TranslationLanguage russianRussian-
public TranslationLanguage(java.lang.String friendlyName, - java.lang.String countryCode, - java.lang.String languageCode)-
public java.lang.String getName()-
public java.lang.String getCountryCode()-
public java.lang.String getLanguageCode()-
public java.lang.String toString()-
toString
in class java.lang.Object
public static TranslationLanguage[] values()-
public class TranslationManager
-extends java.lang.Object
- Constructor and Description | -
---|
TranslationManager()
-
- Constructor
- |
-
TranslationManager(TranslationObject[] translationObjects)
-
- Constructor
- |
-
Modifier and Type | -Method and Description | -
---|---|
TranslationManager
- |
- addTranslation(java.lang.String key,
- TranslationAsset a)
- |
-
TranslationManager
- |
- addTranslation(TranslationObject t,
- TranslationAsset a)
- |
-
TranslationManager
- |
- addTranslationObject(TranslationObject t)
-
- Add an object
- |
-
TranslationManager
- |
- debug(java.io.PrintStream out)
- |
-
TranslationObject |
- getDefault(java.lang.String key)
- |
-
java.lang.String |
- getDescription(java.lang.String key)
- |
-
TranslationAsset |
- getTranslated(java.lang.String key,
- java.lang.String language) |
-
TranslationAsset |
- getTranslated(java.lang.String key,
- TranslationLanguage language)
- |
-
TranslationAsset |
- getTranslated(TranslationObject t,
- TranslationLanguage l)
- |
-
java.lang.String |
- getTranslation(java.lang.String key,
- TranslationLanguage l)
- |
-
TranslationManager
- |
- instance()
-
- Don't use this!
- |
-
TranslationManager
- |
- removeTranslationObject(TranslationObject t)
-
- Remove an object
- |
-
TranslationManager
- |
- saveAll(TranslationFile file)
- |
-
TranslationManager
- |
- saveFile(TranslationFile file)
- |
-
static void |
- scan(java.lang.Class c,
- TranslationManager manager)
- |
-
static java.util.List<TranslationObject>
- |
- transformEnum(java.lang.Object[] os)
- |
-
java.util.List<TranslationObject>
- |
- translations()
-
- Get the translation objects
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public TranslationManager()-
public TranslationManager(TranslationObject[] translationObjects)-
translationObjects
- pre-initpublic TranslationManager instance()-
public java.util.List<TranslationObject> translations()-
public TranslationManager addTranslationObject(TranslationObject t)-
t
- objectpublic TranslationManager removeTranslationObject(TranslationObject t)-
t
- objectpublic java.lang.String getDescription(java.lang.String key)-
public TranslationManager addTranslation(TranslationObject t, - TranslationAsset a)-
public TranslationManager addTranslation(java.lang.String key, - TranslationAsset a)-
public TranslationAsset getTranslated(java.lang.String key, - java.lang.String language)-
public TranslationAsset getTranslated(java.lang.String key, - TranslationLanguage language)-
public TranslationAsset getTranslated(TranslationObject t, - TranslationLanguage l)-
public java.lang.String getTranslation(java.lang.String key, - TranslationLanguage l)-
public TranslationObject getDefault(java.lang.String key)-
public TranslationManager saveAll(TranslationFile file)-
public static java.util.List<TranslationObject> transformEnum(java.lang.Object[] os)-
public static void scan(java.lang.Class c, - TranslationManager manager) - throws java.lang.IllegalAccessException-
java.lang.IllegalAccessException
public TranslationManager debug(java.io.PrintStream out)-
public TranslationManager saveFile(TranslationFile file)-
public class TranslationObject
-extends java.lang.Object
- Constructor and Description | -
---|
TranslationObject(java.lang.String key,
- java.lang.String defaultValue,
- java.lang.String description,
- java.lang.String creationDescription) |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
- getCreationDescription()
- |
-
java.lang.String |
- getDefaultValue()
- |
-
java.lang.String |
- getDescription()
- |
-
java.lang.String |
- getKey()
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public TranslationObject(java.lang.String key, - java.lang.String defaultValue, - java.lang.String description, - java.lang.String creationDescription)-
public java.lang.String getKey()-
public java.lang.String getDefaultValue()-
public java.lang.String getDescription()-
public java.lang.String getCreationDescription()-
public class YamlTranslationFile -extends TranslationFile-
Constructor and Description | -
---|
YamlTranslationFile(java.io.File path,
- TranslationLanguage language,
- java.lang.String name,
- TranslationManager manager)
-
- Constructor
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- add(java.lang.String key,
- java.lang.String value)
-
- Add a translation
- |
-
YamlTranslationFile
- |
- fancyHeader(java.lang.String... header)
-
- Set a fancy header
- |
-
TranslationLanguage
- |
- getLanguage()
-
- Get the translation language
- |
-
org.yaml.snakeyaml.Yaml |
- getYaml()
-
- Get the YAML object
- |
-
YamlTranslationFile
- |
- header(java.lang.String... header)
-
- Set the header
- |
-
YamlTranslationFile
- |
- read()
-
- Read the file
- |
-
void |
- reload()
-
- Reload
- |
-
void |
- saveFile()
-
- Save the file
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait,
- wait
public YamlTranslationFile(java.io.File path, - TranslationLanguage language, - java.lang.String name, - TranslationManager manager)-
path
- save pathlanguage
- translation languagename
- project namepublic void reload()-
public YamlTranslationFile header(java.lang.String... header)-
header
- Comment headerpublic YamlTranslationFile fancyHeader(java.lang.String... header)-
header
- Comment headerpublic void add(java.lang.String key, - java.lang.String value)-
add
in
- class TranslationFile
- key
- translation namevalue
- translation valuepublic TranslationLanguage getLanguage()-
getLanguage
in
- class TranslationFile
- public void saveFile()-
saveFile
in
- class TranslationFile
- public org.yaml.snakeyaml.Yaml getYaml()-
public YamlTranslationFile read()-
read
in
- class TranslationFile
- public class BukkitTranslation
-extends java.lang.Object
- Constructor and Description | -
---|
BukkitTranslation()
- |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
- addMaterials(TranslationManager manager)
-
- Add material names to the translation list
- Will default to a somewhat friendly name
-
- |
-
static java.lang.String |
- convert(TranslationAsset asset)
-
- Get the converted string
- |
-
TranslationLanguage
- |
- getDefaultLanguage()
-
- The default translation language
- |
-
static java.io.File |
- getParent(org.bukkit.plugin.java.JavaPlugin plugin)
-
- Get the universal parent based on the plugin data folder
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
- wait, wait
public static java.lang.String convert(TranslationAsset asset)-
asset
- assetpublic static java.io.File getParent(org.bukkit.plugin.java.JavaPlugin plugin)-
plugin
- to checkpublic TranslationLanguage getDefaultLanguage()-
public static void addMaterials(TranslationManager manager)-
public class TranslationPlugin
-extends org.bukkit.plugin.java.JavaPlugin
- Constructor and Description | -
---|
TranslationPlugin()
- |
-
Modifier and Type | -Method and Description | -
---|---|
void |
- onDisable()
- |
-
void |
- onEnable()
- |
-
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses,
- getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger,
- getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer,
- getTextResource, initialize, installDDL, isEnabled, isInitialized, isNaggable,
- onCommand, onLoad, onTabComplete, reloadConfig, removeDDL, saveConfig,
- saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
equals, getName, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public void onEnable()-
onEnable
in
- interface org.bukkit.plugin.Plugin
onEnable
in
- class org.bukkit.plugin.java.JavaPlugin
public void onDisable()-
onDisable
in
- interface org.bukkit.plugin.Plugin
onDisable
in class org.bukkit.plugin.java.JavaPlugin
- Class | -Description | -
---|---|
BukkitTranslation | -- |
TranslationPlugin | -- |
Class | -Description | -
---|---|
TranslationAsset | -
- Asset
- |
-
TranslationFile | -
- Abstract TranslationFile
- |
-
TranslationLanguage - | -- |
TranslationManager - | -
- Translation Manager Main class
- |
-
TranslationObject - | -- |
YamlTranslationFile - | -
- The YAML implementation of TranslationFile
- Relies heavily on SnakeYAML
-
- |
-
Annotation Type | -Description | -
---|---|
Translation | -
- Translation annotation
- |
-
Modifier and Type | -Constant Field | -Value | -
---|---|---|
-
- public static final int |
- TYPE_BYTE
- |
- 1 |
-
-
- public static final int |
- TYPE_BYTE_ARRAY
- |
- 7 |
-
-
- public static final int |
- TYPE_COMPOUND
- |
- 10 |
-
-
- public static final int |
- TYPE_DOUBLE
- |
- 6 |
-
-
- public static final int |
- TYPE_END
- |
- 0 |
-
-
- public static final int |
- TYPE_FLOAT
- |
- 5 |
-
-
- public static final int |
- TYPE_INT
- |
- 3 |
-
-
- public static final int |
- TYPE_INT_ARRAY
- |
- 11 |
-
-
- public static final int |
- TYPE_LIST
- |
- 9 |
-
-
- public static final int |
- TYPE_LONG
- |
- 4 |
-
-
- public static final int |
- TYPE_SHORT
- |
- 2 |
-
-
- public static final int |
- TYPE_STRING
- |
- 8 |
-
Modifier and Type | -Constant Field | -Value | -
---|---|---|
-
- public static final java.lang.String |
- CRLF |
- "\r\n" |
-
Modifier and Type | -Constant Field | -Value | -
---|---|---|
-
- public static final java.lang.String |
- ADMIN_PERMISSION
- |
- "plots.admin" |
-
Modifier and Type | -Constant Field | -Value | -
---|---|---|
-
- public static final java.lang.String |
- ADMIN_PERMISSION
- |
- "plots.admin" |
-
Modifier and Type | -Constant Field | -Value | -
---|---|---|
-
- public static final java.lang.String |
- MAIN_PERMISSION
- |
- "plots.use" |
-
Method and Description | -
---|
com.intellectualcrafters.plot.util.PlayerFunctions.getPlots() - | -
com.intellectualcrafters.plot.util.PlayerFunctions.set(Plot) - | -
The Overview page is the front page of this API document and provides - a list of all packages with a summary for each. This page can also contain an overall description of the - set of packages.
-Each package has a page that contains a list of its classes and interfaces, with a summary for each. This - page can contain six categories:
-Each class, interface, nested class and nested interface has its own separate page. Each of these pages - has three sections consisting of a class/interface description, summary tables, and detailed member - descriptions:
-Each summary entry contains the first sentence from the detailed description for that item. The summary - entries are alphabetical, while the detailed descriptions are in the order they appear in the source - code. This preserves the logical groupings established by the programmer.
-Each annotation type has its own separate page with the following sections:
-Each enum has its own separate page with the following sections:
-There is a Class Hierarchy page for all packages, plus a hierarchy for
- each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are
- organized by inheritance structure starting with java.lang.Object
. The interfaces do not
- inherit from java.lang.Object
.
The Deprecated API page lists all of the API that have been - deprecated. A deprecated API is not recommended for use, generally due to improvements, and a - replacement API is usually given. Deprecated APIs may be removed in future implementations.
-The Index contains an alphabetic list of all classes, interfaces, - constructors, methods, and fields.
-These links take you to the next or previous class, interface, package, or related page.
-These links show and hide the HTML frames. All pages are available with or without frames.
-The All Classes link shows all classes and interfaces except - non-static nested types.
-Each serializable or externalizable class has a description of its serialization fields and methods. This - information is of interest to re-implementors, not to developers using the API. While there is no link - in the navigation bar, you can get to this information by going to any serialized class and clicking - "Serialized Form" in the "See also" section of the class description.
-The Constant Field Values page lists the static final fields and their - values.
-JSONString
interface allows a toJSONString()
- method so that a class can change the behavior of
- JSONObject.toString()
, JSONArray.toString()
,
- and JSONWriter.value(
Object)
.
- TAG_List
tag.TAG_Long
tag.Tag
- object.
- NBTInputStream
, which will source its data
- from the specified input stream.
- Tag
objects to an underlying OutputStream
.
- NBTOutputStream
, which will write data to the
- specified underlying output stream.
- NULL
object than to use Java's null
value.
- ByteTag
.ByteArrayTag
.
- DoubleTag
.FloatTag
.IntTag
.IntArrayTag
.
- LongTag
.ShortTag
.StringTag
.TAG_Short
tag.TAG_String
tag.TAG_Byte_Array
tag.TAG_Byte
tag.toJSONString
method allows a class to produce its own
- JSON
- serialization.
- %
hh sequences to single characters, and
- convert plus to space.
- Statement.executeUpdate(String)
true
or the value false
- .
- TAG_Compound
tag.TAG_Double
tag.TAG_End
tag.TAG_Float
tag.Tag
- class.
- int[]
named with the given key.int[]
named with the given index.TagList
named with the given key.TagList
named with the given index.TAG_Int_Array
tag.TAG_Int
tag.Class.isInstance(Object)
- - diff --git a/doc/overview-summary.html b/doc/overview-summary.html deleted file mode 100644 index 4a6309816..000000000 --- a/doc/overview-summary.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - -
Package | -Description | -
---|---|
com.intellectualcrafters.jnbt - | -- |
com.intellectualcrafters.json - | -- |
com.intellectualcrafters.plot - | -- |
com.intellectualcrafters.plot.api - | -- |
com.intellectualcrafters.plot.commands - | -- |
com.intellectualcrafters.plot.config - | -- |
com.intellectualcrafters.plot.database - | -- |
com.intellectualcrafters.plot.database.sqlobjects - | -- |
com.intellectualcrafters.plot.events - | -- |
com.intellectualcrafters.plot.flag - | -- |
com.intellectualcrafters.plot.generator - | -- |
com.intellectualcrafters.plot.listeners - | -- |
com.intellectualcrafters.plot.object - | -- |
com.intellectualcrafters.plot.util - | -- |
com.intellectualcrafters.plot.uuid - | -- |
com.intellectualsites.translation - | -- |
com.intellectualsites.translation.bukkit - | -- |
Class | -Description | -
---|---|
Test1 | -- |
java.lang.Throwable cause-