public class ShopChest
extends org.bukkit.plugin.java.JavaPlugin
Constructor and Description |
---|
ShopChest() |
Modifier and Type | Method and Description |
---|---|
Reader |
_getTextResource(String file)
Provides a reader for a text file located inside the jar.
|
void |
debug(String message)
Print a message to the /plugins/ShopChest/debug.txt file
|
void |
debug(Throwable throwable)
Print a
Throwable 's stacktrace to the /plugins/ShopChest/debug.txt file |
String |
getDownloadLink() |
net.milkbowl.vault.economy.Economy |
getEconomy() |
static ShopChest |
getInstance() |
String |
getLatestVersion() |
net.milkbowl.vault.permission.Permission |
getPermission() |
Config |
getShopChestConfig() |
Database |
getShopDatabase() |
ShopUtils |
getShopUtils() |
boolean |
hasLockette() |
boolean |
hasLWC() |
boolean |
isUpdateNeeded() |
void |
onDisable() |
void |
onEnable() |
void |
setDownloadLink(String downloadLink)
Set the download Link of the latest version (will return null if not checked or if no update is available)
|
void |
setLatestVersion(String latestVersion)
Set the latest version
|
void |
setUpdateNeeded(boolean isUpdateNeeded)
Set whether an update is needed
|
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, 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 ShopChest getInstance()
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 void debug(String message)
message
- Message to printpublic void debug(Throwable throwable)
Throwable
's stacktrace to the /plugins/ShopChest/debug.txt filethrowable
- Throwable
whose stacktrace will be printedpublic ShopUtils getShopUtils()
ShopUtils
containing some important methodspublic net.milkbowl.vault.economy.Economy getEconomy()
public net.milkbowl.vault.permission.Permission getPermission()
public Database getShopDatabase()
public boolean hasLWC()
public boolean hasLockette()
public boolean isUpdateNeeded()
public void setUpdateNeeded(boolean isUpdateNeeded)
isUpdateNeeded
- Whether an update should be neededpublic String getLatestVersion()
public void setLatestVersion(String latestVersion)
latestVersion
- Version to set as latest versionpublic String getDownloadLink()
public void setDownloadLink(String downloadLink)
downloadLink
- Link to set as Download Linkpublic Reader _getTextResource(String file) throws IllegalArgumentException
Provides a reader for a text file located inside the jar.
The returned reader will read text with the UTF-8 charset.file
- the filename of the resource to loadJavaPlugin.getResource(String)
returns nullIllegalArgumentException
- if file is nullCopyright © 2016. All rights reserved.