Package | Description |
---|---|
de.epiceric.shopchest.sql | |
de.epiceric.shopchest.utils |
Modifier and Type | Method and Description |
---|---|
void |
Database.addShop(Shop shop,
Callback callback)
Adds a shop to the database
|
void |
Database.connect(Callback callback)
(Re-)Connects to the the database and initializes it.
|
void |
Database.getLastLogout(org.bukkit.entity.Player player,
Callback callback)
Get the last logout of a player
|
void |
Database.getRevenue(org.bukkit.entity.Player player,
long logoutTime,
Callback callback)
Get the revenue a player got while he was offline
|
void |
Database.getShops(boolean showConsoleMessages,
Callback callback)
Get all shops from the database
|
void |
Database.isShop(int id,
Callback callback) |
void |
Database.logEconomy(org.bukkit.entity.Player executor,
org.bukkit.inventory.ItemStack product,
org.bukkit.OfflinePlayer vendor,
Shop.ShopType shopType,
org.bukkit.Location location,
double price,
ShopBuySellEvent.Type type,
Callback callback)
Log an economy transaction to the database
|
void |
Database.logLogout(org.bukkit.entity.Player player,
long timestamp,
Callback callback)
Log a logout to the database
|
void |
Database.removeShop(Shop shop,
Callback callback)
Remove a shop from the database
|
Modifier and Type | Method and Description |
---|---|
void |
ShopUtils.addShop(Shop shop,
boolean addToDatabase,
Callback callback)
Add a shop
|
void |
ShopUtils.reloadShops(boolean reloadConfig,
boolean showConsoleMessages,
Callback callback)
Reload the shops
|
void |
ShopUtils.removeShop(Shop shop,
boolean removeFromDatabase,
Callback callback)
Remove a shop
|
Copyright © 2017. All rights reserved.