mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 04:23:26 +00:00
weekly code cleanup
This commit is contained in:
parent
aaa5d54085
commit
bddaadd31d
154 changed files with 17956 additions and 17295 deletions
|
@ -2,24 +2,25 @@
|
|||
* Copyright (c) IntellectualCrafters - 2014. You are not allowed to distribute
|
||||
* and/or monetize any of our intellectual property. IntellectualCrafters is not
|
||||
* affiliated with Mojang AB. Minecraft is a trademark of Mojang AB.
|
||||
*
|
||||
*
|
||||
* >> File = DBFunc.java >> Generated by: Citymonstret at 2014-08-09 01:43
|
||||
*/
|
||||
|
||||
package com.intellectualcrafters.plot.database;
|
||||
|
||||
import com.intellectualcrafters.plot.Flag;
|
||||
import com.intellectualcrafters.plot.Plot;
|
||||
import com.intellectualcrafters.plot.PlotComment;
|
||||
import com.intellectualcrafters.plot.PlotId;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.bukkit.OfflinePlayer;
|
||||
|
||||
import com.intellectualcrafters.plot.Flag;
|
||||
import com.intellectualcrafters.plot.Plot;
|
||||
import com.intellectualcrafters.plot.PlotComment;
|
||||
import com.intellectualcrafters.plot.PlotId;
|
||||
|
||||
/**
|
||||
* @author Citymonstret
|
||||
*/
|
||||
|
@ -29,58 +30,57 @@ public abstract class AbstractDB {
|
|||
|
||||
/**
|
||||
* Set Plot owner
|
||||
*
|
||||
*
|
||||
* @param plot
|
||||
* @param uuid
|
||||
*/
|
||||
public abstract void setOwner(final Plot plot, final UUID uuid);
|
||||
|
||||
public abstract void createAllSettingsAndHelpers(ArrayList<Plot> plots);
|
||||
public abstract void createAllSettingsAndHelpers(final ArrayList<Plot> plots);
|
||||
|
||||
/**
|
||||
* Create a plot
|
||||
*
|
||||
*
|
||||
* @param plots
|
||||
*/
|
||||
public abstract void createPlots(ArrayList<Plot> plots);
|
||||
public abstract void createPlots(final ArrayList<Plot> plots);
|
||||
|
||||
/**
|
||||
* Create a plot
|
||||
*
|
||||
*
|
||||
* @param plot
|
||||
*/
|
||||
public abstract void createPlot(Plot plot);
|
||||
public abstract void createPlot(final Plot plot);
|
||||
|
||||
/**
|
||||
* Create tables
|
||||
*
|
||||
*
|
||||
* @throws SQLException
|
||||
*/
|
||||
public abstract void createTables(String database, boolean add_constraint) throws Exception;
|
||||
public abstract void createTables(final String database, final boolean add_constraint) throws Exception;
|
||||
|
||||
/**
|
||||
* Delete a plot
|
||||
*
|
||||
*
|
||||
* @param plot
|
||||
*/
|
||||
public abstract void delete(final String world, final Plot plot);
|
||||
|
||||
/**
|
||||
* Create plot settings
|
||||
*
|
||||
*
|
||||
* @param id
|
||||
* @param plot
|
||||
*/
|
||||
public abstract void createPlotSettings(final int id, final Plot plot);
|
||||
|
||||
public abstract int getId(String world, PlotId id2);
|
||||
public abstract int getId(final String world, final PlotId id2);
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
public abstract LinkedHashMap<String, HashMap<PlotId, Plot>> getPlots();
|
||||
|
||||
|
||||
public abstract void setMerged(final String world, final Plot plot, final boolean[] merged);
|
||||
|
||||
public abstract void setFlags(final String world, final Plot plot, final Flag[] flags);
|
||||
|
@ -94,7 +94,7 @@ public abstract class AbstractDB {
|
|||
public abstract void purge(final String world, final PlotId id);
|
||||
|
||||
public abstract void purge(final String world);
|
||||
|
||||
|
||||
/**
|
||||
* @param plot
|
||||
* @param position
|
||||
|
@ -105,14 +105,13 @@ public abstract class AbstractDB {
|
|||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public abstract HashMap<String, Object> getSettings(int id);
|
||||
public abstract HashMap<String, Object> getSettings(final int id);
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public UUID everyone = UUID.fromString("1-1-3-3-7");
|
||||
|
||||
|
||||
/**
|
||||
* @param plot
|
||||
* @param player
|
||||
|
@ -151,9 +150,9 @@ public abstract class AbstractDB {
|
|||
|
||||
public abstract double getRatings(final Plot plot);
|
||||
|
||||
public abstract void removeComment(String world, Plot plot, PlotComment comment);
|
||||
public abstract void removeComment(final String world, final Plot plot, final PlotComment comment);
|
||||
|
||||
public abstract void setComment(String world, Plot plot, PlotComment comment);
|
||||
public abstract void setComment(final String world, final Plot plot, final PlotComment comment);
|
||||
|
||||
public abstract ArrayList<PlotComment> getComments(String world, Plot plot, int tier);
|
||||
public abstract ArrayList<PlotComment> getComments(final String world, final Plot plot, final int tier);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue