public class LogBlock
extends org.bukkit.plugin.java.JavaPlugin
| Constructor and Description |
|---|
LogBlock() |
| Modifier and Type | Method and Description |
|---|---|
List<BlockChange> |
getBlockChanges(QueryParams params)
Returns a list of block changes based on the given query parameters, the query parameters
are essentially programmatic versions of the parameters a player would pass
to the logblock lookup command i.e /lb lookup query-parameters
Note: this method directly calls a SQL query and is hence a slow blocking function, avoid running
it on the main game thread
|
CommandsHandler |
getCommandsHandler() |
Connection |
getConnection() |
Consumer |
getConsumer() |
int |
getCount(QueryParams params) |
static LogBlock |
getInstance() |
boolean |
hasPermission(org.bukkit.command.CommandSender sender,
String permission) |
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
String commandLabel,
String[] args) |
void |
onDisable() |
void |
onEnable() |
void |
onLoad() |
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, initialize, installDDL, isEnabled, isInitialized, isNaggable, onTabComplete, reloadConfig, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringpublic static LogBlock getInstance()
public Consumer getConsumer()
public CommandsHandler getCommandsHandler()
public void onLoad()
onLoad in interface org.bukkit.plugin.PluginonLoad in class org.bukkit.plugin.java.JavaPluginpublic void onEnable()
onEnable in interface org.bukkit.plugin.PluginonEnable in class org.bukkit.plugin.java.JavaPluginpublic void onDisable()
onDisable in interface org.bukkit.plugin.PluginonDisable in class org.bukkit.plugin.java.JavaPluginpublic boolean onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
String commandLabel,
String[] args)
onCommand in interface org.bukkit.command.CommandExecutoronCommand in class org.bukkit.plugin.java.JavaPluginpublic boolean hasPermission(org.bukkit.command.CommandSender sender,
String permission)
public Connection getConnection()
public List<BlockChange> getBlockChanges(QueryParams params) throws SQLException
params - QueryParams that contains the needed columns (all other will be filled with default values) and the params. World is required.SQLException - if a sql exception occurs while looking up the block changespublic int getCount(QueryParams params) throws SQLException
SQLExceptionCopyright © 2015. All rights reserved.