public class PlotMain
extends org.bukkit.plugin.java.JavaPlugin
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADMIN_PERMISSION
|
static me.confuser.barapi.BarAPI |
barAPI
BarAPI object
|
static java.util.HashMap<org.bukkit.Material,java.lang.String>
|
booleanFlags
Boolean Flags (material)
|
static org.bukkit.configuration.file.YamlConfiguration |
config
The main configuration file
|
static java.io.File |
configFile
settings.properties
|
static java.sql.Connection |
connection
MySQL Connection
|
static net.milkbowl.vault.economy.Economy |
economy
Economy Object (vault)
|
static org.bukkit.configuration.file.YamlConfiguration |
storage
Contains storage options
|
static int |
storage_ver
Storage version
|
static java.io.File |
storageFile
storage.properties
|
static boolean |
useEconomy
Use Economy?
|
static com.sk89q.worldedit.bukkit.WorldEditPlugin |
worldEdit
WorldEdit object
|
static com.sk89q.worldguard.bukkit.WorldGuardPlugin |
worldGuard
World Guard Object
|
static WorldGuardListener |
worldGuardListener
World Guard Listener
|
Constructor and Description |
---|
PlotMain()
|
Modifier and Type | Method and Description |
---|---|
static void |
addPlotWorld(java.lang.String world,
PlotWorld plotworld,
PlotManager manager) |
static void |
Broadcast(C c)
Broadcast publicly
|
static void |
BroadcastWithPerms(C c)
Broadcast a message to all admins
|
static void |
checkForExpiredPlots()
Check for expired plots
|
static void |
configs()
Load configuration files
|
static void |
createConfiguration(PlotWorld plotworld) |
static java.util.HashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> |
getAllPlotsRaw()
|
static java.sql.Connection |
getConnection()
Get MySQL Connection
|
org.bukkit.generator.ChunkGenerator |
getDefaultWorldGenerator(java.lang.String world,
java.lang.String id)
!!
|
static long |
getLastPlayed(java.util.UUID uuid)
|
static PlotMain |
getMain()
Returns the main class.
|
static PlotManager
|
getPlotManager(java.lang.String world)
|
static PlotManager
|
getPlotManager(org.bukkit.World world)
|
static java.util.Set<Plot>
|
getPlots()
Get all plots
|
static java.util.Set<Plot>
|
getPlots(org.bukkit.entity.Player player)
|
static java.util.HashMap<PlotId,Plot> |
getPlots(java.lang.String world)
|
static java.util.HashMap<PlotId,Plot> |
getPlots(org.bukkit.World world)
|
static java.util.Set<Plot>
|
getPlots(org.bukkit.World world,
org.bukkit.entity.Player player) |
static java.util.LinkedHashSet<Plot> |
getPlotsSorted()
Get a sorted list of plots
|
static java.lang.String[] |
getPlotWorlds()
get all plot worlds
|
static java.lang.String[] |
getPlotWorldsString()
|
static UUIDSaver |
getUUIDSaver()
Get the uuid saver
|
static Plot[] |
getWorldPlots(org.bukkit.World world)
|
static PlotWorld |
getWorldSettings(java.lang.String world)
|
static PlotWorld |
getWorldSettings(org.bukkit.World world)
|
static boolean |
hasPermission(org.bukkit.entity.Player player,
java.lang.String perm)
Check a player for a permission
- Op has all permissions - checks for '*' nodes |
static int |
hasPermissionRange(org.bukkit.entity.Player player,
java.lang.String stub,
int range)
Check a range of permissions e.g.
|
static boolean |
hasPermissions(org.bukkit.entity.Player player,
java.lang.String[] perms)
Check a player for a permission
- Op has all permissions - checks for '*' nodes |
static boolean |
isPlotWorld(java.lang.String world)
|
static boolean |
isPlotWorld(org.bukkit.World world)
|
static void |
killAllEntities()
Kill all entities on roads
|
static void |
loadWorld(java.lang.String world,
org.bukkit.generator.ChunkGenerator generator) |
static void |
loadWorld(org.bukkit.World world)
Adds an external world as a recognized PlotSquared world - The PlotWorld
class created is based off the configuration in the settings.yml - Do not
use this method unless the required world is preconfigured in the
settings.yml
|
void |
onDisable()
On unload
|
void |
onEnable()
On Load.
|
static void |
reloadTranslations()
|
static boolean |
removePlot(java.lang.String world,
PlotId id,
boolean callEvent) |
static void |
removePlotWorld(java.lang.String world)
|
static void |
sendConsoleSenderMessage(C c)
Send a message to the console
|
static void |
sendConsoleSenderMessage(java.lang.String string)
Send a message to the console.
|
static void |
setAllPlotsRaw(java.util.HashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> plots) |
static void |
setAllPlotsRaw(java.util.LinkedHashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> plots) |
static void |
setUUIDSaver(UUIDSaver saver)
Set the uuid saver
|
static boolean |
teleportPlayer(org.bukkit.entity.Player player,
org.bukkit.Location from,
Plot plot)
..
|
static void |
updatePlot(Plot plot)
Replace the plot object with an updated version
|
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDescription,
getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource,
initialize, installDDL, isEnabled, isInitialized, isNaggable, onCommand, onLoad, onTabComplete,
reloadConfig, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable,
toString
public static final java.lang.String ADMIN_PERMISSION
public static java.io.File configFile
public static org.bukkit.configuration.file.YamlConfiguration config
public static java.io.File storageFile
public static org.bukkit.configuration.file.YamlConfiguration storage
public static int storage_ver
public static java.sql.Connection connection
public static com.sk89q.worldedit.bukkit.WorldEditPlugin worldEdit
public static me.confuser.barapi.BarAPI barAPI
public static com.sk89q.worldguard.bukkit.WorldGuardPlugin worldGuard
public static WorldGuardListener worldGuardListener
public static net.milkbowl.vault.economy.Economy economy
public static boolean useEconomy
public static java.util.HashMap<org.bukkit.Material,java.lang.String> booleanFlags
public static void checkForExpiredPlots()
public static int hasPermissionRange(org.bukkit.entity.Player player, java.lang.String stub, int range)
player
- to checkstub
- to checkrange
- tp checkpublic static boolean hasPermissions(org.bukkit.entity.Player player, java.lang.String[] perms)
player
- to checkperms
- to checkpublic static UUIDSaver getUUIDSaver()
com.intellectualcrafters.plot.uuid.UUIDSaver;
public static void setUUIDSaver(UUIDSaver saver)
saver
- new saverpublic static boolean hasPermission(org.bukkit.entity.Player player, java.lang.String perm)
player
- to checkperm
- to checkpublic static java.util.Set<Plot> getPlots()
public static java.util.LinkedHashSet<Plot> getPlotsSorted()
public static java.util.Set<Plot> getPlots(org.bukkit.entity.Player player)
player
- playerpublic static java.util.Set<Plot> getPlots(org.bukkit.World world, org.bukkit.entity.Player player)
world
- plot worldplayer
- plot ownerpublic static java.util.HashMap<PlotId,Plot> getPlots(org.bukkit.World world)
world
- plot worldpublic static java.lang.String[] getPlotWorlds()
public static java.lang.String[] getPlotWorldsString()
public static boolean isPlotWorld(org.bukkit.World world)
world
- plotworld(?)public static boolean isPlotWorld(java.lang.String world)
world
- plotworld(?)public static PlotManager getPlotManager(org.bukkit.World world)
world
- World to get manager forpublic static PlotManager getPlotManager(java.lang.String world)
world
- worldpublic static PlotWorld getWorldSettings(org.bukkit.World world)
world
- to searchpublic static PlotWorld getWorldSettings(java.lang.String world)
world
- to searchpublic static Plot[] getWorldPlots(org.bukkit.World world)
world
- world to searchpublic static boolean removePlot(java.lang.String world, PlotId id, boolean callEvent)
public static void updatePlot(Plot plot)
plot
- plot objectpublic static java.sql.Connection getConnection()
public static void sendConsoleSenderMessage(java.lang.String string)
string
- messagepublic static boolean teleportPlayer(org.bukkit.entity.Player player, org.bukkit.Location from, Plot plot)
public static void sendConsoleSenderMessage(C c)
c
- messagepublic static void Broadcast(C c)
c
- messagepublic static PlotMain getMain()
public static void BroadcastWithPerms(C c)
c
- messagepublic static void reloadTranslations() throws java.io.IOException
java.io.IOException
public static long getLastPlayed(java.util.UUID uuid)
public static void configs()
public static void killAllEntities()
public static void createConfiguration(PlotWorld plotworld)
public static void loadWorld(java.lang.String world, org.bukkit.generator.ChunkGenerator generator)
public static void loadWorld(org.bukkit.World world)
world
- to loadpublic static void addPlotWorld(java.lang.String world, PlotWorld plotworld, PlotManager manager)
public static void removePlotWorld(java.lang.String world)
public static java.util.HashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> getAllPlotsRaw()
public static void setAllPlotsRaw(java.util.LinkedHashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> plots)
public static void setAllPlotsRaw(java.util.HashMap<java.lang.String,java.util.HashMap<PlotId,Plot>> plots)
public org.bukkit.generator.ChunkGenerator getDefaultWorldGenerator(java.lang.String world, java.lang.String id)
getDefaultWorldGenerator
in interface org.bukkit.plugin.Plugin
getDefaultWorldGenerator
in class org.bukkit.plugin.java.JavaPlugin
public void onEnable()
onEnable
in interface org.bukkit.plugin.Plugin
onEnable
in class org.bukkit.plugin.java.JavaPlugin
public void onDisable()
onDisable
in interface org.bukkit.plugin.Plugin
onDisable
in class org.bukkit.plugin.java.JavaPlugin