mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Deprecate the API
This commit is contained in:
parent
9a4b02feb9
commit
d87de11378
@ -33,6 +33,8 @@ import java.util.zip.ZipInputStream;
|
|||||||
/**
|
/**
|
||||||
* An implementation of the core,
|
* An implementation of the core,
|
||||||
* with a static getter for easy access
|
* with a static getter for easy access
|
||||||
|
*
|
||||||
|
* @see com.intellectualcrafters.plot.PlotSquaredMain Structure
|
||||||
*/
|
*/
|
||||||
public class PlotSquared implements PlotSquaredMain {
|
public class PlotSquared implements PlotSquaredMain {
|
||||||
|
|
||||||
|
@ -53,33 +53,123 @@ public interface PlotSquaredMain {
|
|||||||
|
|
||||||
Set<Plot> getPlots(PlotPlayer player);
|
Set<Plot> getPlots(PlotPlayer player);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get all plots belonging to a specified
|
||||||
|
* player UUID
|
||||||
|
*
|
||||||
|
* @param uuid Player UUID
|
||||||
|
* @return A set containing the plots
|
||||||
|
* @see #getPlots(PlotPlayer) Using PlotPlayer rather than UUID
|
||||||
|
* @see #getPlots(String, UUID) To limit the search to a specific world
|
||||||
|
* @see #getPlots(String, String) To limit the search to a specific world, and use player names
|
||||||
|
*/
|
||||||
Set<Plot> getPlots(UUID uuid);
|
Set<Plot> getPlots(UUID uuid);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove a plot from the specified plot world
|
||||||
|
*
|
||||||
|
* @param world World Name
|
||||||
|
* @param id Plot ID
|
||||||
|
* @param callEvent If the plot delete event should be called
|
||||||
|
* @return true on success | false on failure
|
||||||
|
*/
|
||||||
boolean removePlot(String world, PlotId id, boolean callEvent);
|
boolean removePlot(String world, PlotId id, boolean callEvent);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Load a world
|
||||||
|
*
|
||||||
|
* @param world World Name
|
||||||
|
* @param generator PlotGenerator Implementation
|
||||||
|
*/
|
||||||
void loadWorld(String world, PlotGenerator generator);
|
void loadWorld(String world, PlotGenerator generator);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setup a PlotWorld
|
||||||
|
*
|
||||||
|
* @param world World Name
|
||||||
|
* @param id World ID
|
||||||
|
* @return true on success | false on failure
|
||||||
|
*/
|
||||||
boolean setupPlotWorld(String world, String id);
|
boolean setupPlotWorld(String world, String id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the database connection
|
||||||
|
*
|
||||||
|
* @see #getDatabase() Get the database implementation
|
||||||
|
* @return Database connection
|
||||||
|
*/
|
||||||
Connection getConnection();
|
Connection getConnection();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copy a file into the specified folder
|
||||||
|
*
|
||||||
|
* @param file File to copy
|
||||||
|
* @param folder Folder to copy to
|
||||||
|
*/
|
||||||
void copyFile(String file, String folder);
|
void copyFile(String file, String folder);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable the PlotSquared core
|
||||||
|
*/
|
||||||
void disable();
|
void disable();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setup the database configuration file
|
||||||
|
*/
|
||||||
void setupDatabase();
|
void setupDatabase();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setup the default flags
|
||||||
|
*/
|
||||||
void setupDefaultFlags();
|
void setupDefaultFlags();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setup the global configuration file
|
||||||
|
*/
|
||||||
void setupConfig();
|
void setupConfig();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setup all configuration classes
|
||||||
|
*
|
||||||
|
* @see #setupDatabase() Setup the database configuration file
|
||||||
|
* @see #setupConfig() Setup the general configuration file
|
||||||
|
* @see #setupDefaultFlags() Setup the default flags
|
||||||
|
*/
|
||||||
void setupConfigs();
|
void setupConfigs();
|
||||||
|
|
||||||
void showDebug();
|
void showDebug();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the current java version as
|
||||||
|
* a double
|
||||||
|
* @code {
|
||||||
|
* 1.7 = Java 7
|
||||||
|
* 1.8 = Java 8
|
||||||
|
* etc...
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
* @return Java version as a double
|
||||||
|
*/
|
||||||
double getJavaVersion();
|
double getJavaVersion();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a set containing the names of
|
||||||
|
* all PlotWorlds
|
||||||
|
*
|
||||||
|
* @see #getPlotWorldObjects() To get the actual objects
|
||||||
|
*
|
||||||
|
* @return A set containing the names of all PlotWorlds
|
||||||
|
*/
|
||||||
Set<String> getPlotWorlds();
|
Set<String> getPlotWorlds();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a collection containing the
|
||||||
|
* PlotWorld objects
|
||||||
|
*
|
||||||
|
* @see #getPlotWorlds() To get the names of the worlds
|
||||||
|
* @see PlotWorld The returned object
|
||||||
|
*
|
||||||
|
* @return Collection containing PlotWorld's
|
||||||
|
*/
|
||||||
Collection<PlotWorld> getPlotWorldObjects();
|
Collection<PlotWorld> getPlotWorldObjects();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user