public class ShopChest
extends org.bukkit.plugin.java.JavaPlugin
Constructor and Description |
---|
ShopChest() |
Modifier and Type | Method and Description |
---|---|
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() |
Reader |
getTextResourceP(String file)
Provides a reader for a text file located inside the jar.
|
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 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 getTextResourceP(String file) throws IllegalArgumentException
file
- the filename of the resource to loadIllegalArgumentException
- - if file is nullCopyright © 2016. All rights reserved.