public class Factions extends FactionsPluginBase
Modifier and Type | Field and Description |
---|---|
com.google.gson.Gson |
gson
Deprecated.
|
protected boolean |
loadSuccessful |
DEBUG_PREFIX, ERROR_PREFIX, LOG_PREFIX, rawTags, timeEnableStart, WARN_PREFIX
Constructor and Description |
---|
Factions() |
Modifier and Type | Method and Description |
---|---|
void |
enable() |
static Factions |
get() |
boolean |
getAutoSave()
Get the autosave state.
|
com.google.gson.Gson |
getGson() |
com.google.gson.GsonBuilder |
getGsonBuilder() |
java.lang.String |
getPlayerFactionTag(org.bukkit.entity.Player player) |
java.lang.String |
getPlayerFactionTagRelation(org.bukkit.entity.Player speaker,
org.bukkit.entity.Player listener) |
java.nio.file.Path |
getPluginFolder() |
boolean |
handleCommand(org.bukkit.command.CommandSender sender,
java.lang.String commandString,
boolean testOnly) |
boolean |
isFactionsCommand(org.bukkit.entity.Player player,
java.lang.String check) |
boolean |
isLocked()
Check if writing is currently locked.
|
boolean |
isPlayerFactionChatting(org.bukkit.entity.Player player) |
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command command,
java.lang.String label,
java.lang.String[] split) |
void |
onDisable() |
void |
register(org.bukkit.event.Listener... listeners) |
void |
setAutoSave(boolean autoSave)
Set the autosave state.
|
void |
setLocked(boolean locked)
Lock the database from writing.
|
boolean |
shouldLetFactionsHandleThisChat(org.bukkit.event.player.AsyncPlayerChatEvent event) |
void |
startAutoLeaveTask(boolean restartIfRunning) |
debug, debug, error, getBaseCommands, getPermUtil, getPersist, getStuckMap, getTextUtil, getTimers, handleCommand, handleCommand, log, log, onEnable, warn
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, installDDL, isEnabled, isNaggable, onLoad, onTabComplete, reloadConfig, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
@Deprecated public final com.google.gson.Gson gson
getGson
. This will be set to private in the futureprotected boolean loadSuccessful
public static Factions get()
public boolean isLocked()
public void setLocked(boolean locked)
locked
- public boolean getAutoSave()
public void setAutoSave(boolean autoSave)
autoSave
- the autosave state.public java.nio.file.Path getPluginFolder()
public void enable() throws java.lang.Exception
enable
in class FactionsPluginBase
java.lang.Exception
public com.google.gson.Gson getGson()
public com.google.gson.GsonBuilder getGsonBuilder()
public void onDisable()
onDisable
in interface org.bukkit.plugin.Plugin
onDisable
in class org.bukkit.plugin.java.JavaPlugin
public void startAutoLeaveTask(boolean restartIfRunning)
public boolean handleCommand(org.bukkit.command.CommandSender sender, java.lang.String commandString, boolean testOnly)
handleCommand
in class FactionsPluginBase
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, java.lang.String label, java.lang.String[] split)
onCommand
in interface org.bukkit.command.CommandExecutor
onCommand
in class org.bukkit.plugin.java.JavaPlugin
public boolean shouldLetFactionsHandleThisChat(org.bukkit.event.player.AsyncPlayerChatEvent event)
public boolean isPlayerFactionChatting(org.bukkit.entity.Player player)
public boolean isFactionsCommand(org.bukkit.entity.Player player, java.lang.String check)
public java.lang.String getPlayerFactionTag(org.bukkit.entity.Player player)
public java.lang.String getPlayerFactionTagRelation(org.bukkit.entity.Player speaker, org.bukkit.entity.Player listener)
public void register(org.bukkit.event.Listener... listeners)