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) |
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)