mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-10 14:33:08 +00:00
cleanup
This commit is contained in:
parent
625d19b5d0
commit
f2c9e4933a
210 changed files with 2119 additions and 2141 deletions
|
@ -45,7 +45,7 @@ public interface AbstractDB {
|
|||
* The UUID that will count as everyone
|
||||
*/
|
||||
public UUID everyone = UUID.fromString("1-1-3-3-7");
|
||||
|
||||
|
||||
/**
|
||||
* Set Plot owner
|
||||
*
|
||||
|
@ -53,28 +53,28 @@ public interface AbstractDB {
|
|||
* @param uuid The uuid of the new owner
|
||||
*/
|
||||
public void setOwner(final Plot plot, final UUID uuid);
|
||||
|
||||
|
||||
/**
|
||||
* Create all settings, and create default helpers, trusted + denied lists
|
||||
*
|
||||
* @param plots Plots for which the default table entries should be created
|
||||
*/
|
||||
public void createAllSettingsAndHelpers(final ArrayList<Plot> plots);
|
||||
|
||||
|
||||
/**
|
||||
* Create a plot
|
||||
*
|
||||
* @param plots Plots that should be created
|
||||
*/
|
||||
public void createPlots(final ArrayList<Plot> plots);
|
||||
|
||||
|
||||
/**
|
||||
* Create a plot
|
||||
*
|
||||
* @param plot That should be created
|
||||
*/
|
||||
public void createPlot(final Plot plot);
|
||||
|
||||
|
||||
/**
|
||||
* Create tables
|
||||
*
|
||||
|
@ -83,16 +83,16 @@ public interface AbstractDB {
|
|||
* @throws SQLException If the database manager is unable to create the tables
|
||||
*/
|
||||
public void createTables(final String database, final boolean add_constraint) throws Exception;
|
||||
|
||||
|
||||
/**
|
||||
* Delete a plot
|
||||
*
|
||||
* @param plot Plot that should be deleted
|
||||
*/
|
||||
public void delete(final String world, final Plot plot);
|
||||
|
||||
|
||||
public void delete(final PlotCluster cluster);
|
||||
|
||||
|
||||
/**
|
||||
* Create plot settings
|
||||
*
|
||||
|
@ -100,7 +100,7 @@ public interface AbstractDB {
|
|||
* @param plot Plot Object
|
||||
*/
|
||||
public void createPlotSettings(final int id, final Plot plot);
|
||||
|
||||
|
||||
/**
|
||||
* Get the table entry ID
|
||||
*
|
||||
|
@ -110,7 +110,7 @@ public interface AbstractDB {
|
|||
* @return Integer = Plot Entry Id
|
||||
*/
|
||||
public int getId(final String world, final PlotId id2);
|
||||
|
||||
|
||||
/**
|
||||
* Get the id of a given plot cluster
|
||||
*
|
||||
|
@ -121,17 +121,17 @@ public interface AbstractDB {
|
|||
* @return Integer = Cluster Entry Id
|
||||
*/
|
||||
public int getClusterId(final String world, final PlotClusterId id);
|
||||
|
||||
|
||||
/**
|
||||
* @return A linked hashmap containing all plots
|
||||
*/
|
||||
public LinkedHashMap<String, HashMap<PlotId, Plot>> getPlots();
|
||||
|
||||
|
||||
/**
|
||||
* @return A hashmap containing all plot clusters
|
||||
*/
|
||||
public HashMap<String, HashSet<PlotCluster>> getClusters();
|
||||
|
||||
|
||||
/**
|
||||
* Set the merged status for a plot
|
||||
*
|
||||
|
@ -140,14 +140,14 @@ public interface AbstractDB {
|
|||
* @param merged boolean[]
|
||||
*/
|
||||
public void setMerged(final String world, final Plot plot, final boolean[] merged);
|
||||
|
||||
|
||||
/**
|
||||
* Swap the settings, helpers etc. of two plots
|
||||
* @param p1 Plot1
|
||||
* @param p2 Plot2
|
||||
*/
|
||||
public void swapPlots(final Plot p1, final Plot p2);
|
||||
|
||||
|
||||
/**
|
||||
* Set plot flags
|
||||
*
|
||||
|
@ -156,7 +156,7 @@ public interface AbstractDB {
|
|||
* @param flags flags to set (flag[])
|
||||
*/
|
||||
public void setFlags(final String world, final Plot plot, final Set<Flag> flags);
|
||||
|
||||
|
||||
/**
|
||||
* Set cluster flags
|
||||
*
|
||||
|
@ -165,12 +165,12 @@ public interface AbstractDB {
|
|||
* @param flags flags to set (flag[])
|
||||
*/
|
||||
public void setFlags(final PlotCluster cluster, final Set<Flag> flags);
|
||||
|
||||
|
||||
/**
|
||||
* Rename a cluster
|
||||
*/
|
||||
public void setClusterName(final PlotCluster cluster, final String name);
|
||||
|
||||
|
||||
/**
|
||||
* Set the plot alias
|
||||
*
|
||||
|
@ -178,7 +178,7 @@ public interface AbstractDB {
|
|||
* @param alias Plot Alias
|
||||
*/
|
||||
public void setAlias(final String world, final Plot plot, final String alias);
|
||||
|
||||
|
||||
/**
|
||||
* Purgle a plot
|
||||
*
|
||||
|
@ -186,14 +186,14 @@ public interface AbstractDB {
|
|||
* @param id Plot ID
|
||||
*/
|
||||
public void purgeIds(final String world, final Set<Integer> uniqueIds);
|
||||
|
||||
|
||||
/**
|
||||
* Purge a whole world
|
||||
*
|
||||
* @param world World in which the plots should be purged
|
||||
*/
|
||||
public void purge(final String world, final Set<PlotId> plotIds);
|
||||
|
||||
|
||||
/**
|
||||
* Set Plot Home Position
|
||||
*
|
||||
|
@ -201,71 +201,71 @@ public interface AbstractDB {
|
|||
* @param position Plot Home Position
|
||||
*/
|
||||
public void setPosition(final String world, final Plot plot, final String position);
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param cluster
|
||||
* @param position
|
||||
*/
|
||||
public void setPosition(final PlotCluster cluster, final String position);
|
||||
|
||||
|
||||
/**
|
||||
* @param id Plot Entry ID
|
||||
*
|
||||
* @return Plot Settings
|
||||
*/
|
||||
public HashMap<String, Object> getSettings(final int id);
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public HashMap<String, Object> getClusterSettings(final int id);
|
||||
|
||||
|
||||
/**
|
||||
* @param plot Plot Object
|
||||
* @param uuid Player that should be removed
|
||||
*/
|
||||
public void removeHelper(final String world, final Plot plot, final UUID uuid);
|
||||
|
||||
|
||||
/**
|
||||
* @param cluster PlotCluster Object
|
||||
* @param uuid Player that should be removed
|
||||
*/
|
||||
public void removeHelper(final PlotCluster cluster, final UUID uuid);
|
||||
|
||||
|
||||
/**
|
||||
* @param plot Plot Object
|
||||
* @param uuid Player that should be removed
|
||||
*/
|
||||
public void removeTrusted(final String world, final Plot plot, final UUID uuid);
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param cluster
|
||||
* @param uuid
|
||||
*/
|
||||
public void removeInvited(final PlotCluster cluster, final UUID uuid);
|
||||
|
||||
|
||||
/**
|
||||
* @param plot Plot Object
|
||||
* @param uuid Player that should be removed
|
||||
*/
|
||||
public void setHelper(final String world, final Plot plot, final UUID uuid);
|
||||
|
||||
|
||||
/**
|
||||
* @param cluster PlotCluster Object
|
||||
* @param uuid Player that should be removed
|
||||
*/
|
||||
public void setHelper(final PlotCluster cluster, final UUID uuid);
|
||||
|
||||
|
||||
/**
|
||||
* @param plot Plot Object
|
||||
* @param uuid Player that should be added
|
||||
*/
|
||||
public void setTrusted(final String world, final Plot plot, final UUID uuid);
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param world
|
||||
|
@ -273,19 +273,19 @@ public interface AbstractDB {
|
|||
* @param uuid
|
||||
*/
|
||||
public void setInvited(final String world, final PlotCluster cluster, final UUID uuid);
|
||||
|
||||
|
||||
/**
|
||||
* @param plot Plot Object
|
||||
* @param player Player that should be added
|
||||
*/
|
||||
public void removeDenied(final String world, final Plot plot, final UUID uuid);
|
||||
|
||||
|
||||
/**
|
||||
* @param plot Plot Object
|
||||
* @param player Player that should be added
|
||||
*/
|
||||
public void setDenied(final String world, final Plot plot, final UUID uuid);
|
||||
|
||||
|
||||
/**
|
||||
* Get Plots ratings
|
||||
*
|
||||
|
@ -294,7 +294,7 @@ public interface AbstractDB {
|
|||
* @return Plot Ratings (pre-calculated)
|
||||
*/
|
||||
public double getRatings(final Plot plot);
|
||||
|
||||
|
||||
/**
|
||||
* Remove a plot comment
|
||||
*
|
||||
|
@ -303,7 +303,7 @@ public interface AbstractDB {
|
|||
* @param comment Comment to remove
|
||||
*/
|
||||
public void removeComment(final String world, final Plot plot, final PlotComment comment);
|
||||
|
||||
|
||||
/**
|
||||
* Set a plot comment
|
||||
*
|
||||
|
@ -312,7 +312,7 @@ public interface AbstractDB {
|
|||
* @param comment Comment to add
|
||||
*/
|
||||
public void setComment(final String world, final Plot plot, final PlotComment comment);
|
||||
|
||||
|
||||
/**
|
||||
* Get Plot Comments
|
||||
*
|
||||
|
@ -323,12 +323,12 @@ public interface AbstractDB {
|
|||
* @return Plot Comments within the specified tier
|
||||
*/
|
||||
public ArrayList<PlotComment> getComments(final String world, final Plot plot, final int tier, boolean below);
|
||||
|
||||
|
||||
public void createPlotAndSettings(Plot plot);
|
||||
|
||||
|
||||
public void createCluster(PlotCluster cluster);
|
||||
|
||||
|
||||
public void resizeCluster(PlotCluster current, PlotClusterId resize);
|
||||
|
||||
|
||||
public void movePlot(String world, PlotId originalPlot, PlotId newPlot);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue