Package com.earth2me.essentials
Class Warps
java.lang.Object
com.earth2me.essentials.Warps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Gets the number of warpsgetLastOwner
(String warp) Gets Lastowner UUIDgetList()
Gets a list of warpsGet a warp by namegetWarpFile
(String name) Deprecated.This method relates to the abandoned 3.x storage refactor and is not implemented.boolean
isEmpty()
Check to see if the file is emptyboolean
Checks if the provided name is a warp.final void
void
removeWarp
(String name) Delete a warp from the warp DBvoid
Set a warpvoid
Set a warp
-
Constructor Details
-
Warps
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:IWarps
Check to see if the file is empty -
isWarp
Description copied from interface:IWarps
Checks if the provided name is a warp. -
getList
Description copied from interface:IWarps
Gets a list of warps- Specified by:
getList
in interfaceIWarps
- Returns:
- - A
Collection
of warps
-
getWarp
Description copied from interface:IWarps
Get a warp by name- Specified by:
getWarp
in interfaceIWarps
- Parameters:
warp
- - Warp name- Returns:
- - Location the warp is set to
- Throws:
WarpNotFoundException
- When the warp is not foundInvalidWorldException
- When the world the warp is in is not found
-
setWarp
Description copied from interface:IWarps
Set a warp -
setWarp
Description copied from interface:IWarps
Set a warp -
getLastOwner
Description copied from interface:IWarps
Gets Lastowner UUID- Specified by:
getLastOwner
in interfaceIWarps
- Parameters:
warp
- - Name of warp- Throws:
WarpNotFoundException
- If the warp is not found
-
removeWarp
Description copied from interface:IWarps
Delete a warp from the warp DB- Specified by:
removeWarp
in interfaceIWarps
- Parameters:
name
- - Name of warp- Throws:
Exception
- If the warp could not be removed
-
reloadConfig
public final void reloadConfig()- Specified by:
reloadConfig
in interfaceIConf
-
getWarpFile
Deprecated.This method relates to the abandoned 3.x storage refactor and is not implemented.- Specified by:
getWarpFile
in interfaceIWarps
- Throws:
InvalidNameException
-
getCount
public int getCount()Description copied from interface:IWarps
Gets the number of warps
-