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, toString
public static LogBlock getInstance()
public Consumer getConsumer()
public CommandsHandler getCommandsHandler()
public void onLoad()
onLoad
in interface org.bukkit.plugin.Plugin
onLoad
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
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String commandLabel, String[] args)
onCommand
in interface org.bukkit.command.CommandExecutor
onCommand
in class org.bukkit.plugin.java.JavaPlugin
public 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
SQLException
Copyright © 2015. All rights reserved.