mirror of
https://github.com/songoda/EpicVouchers.git
synced 2025-02-27 17:11:26 +01:00
Updated to 6.0.7 (resolved some issues and patches).
This commit is contained in:
parent
b3c54c5487
commit
d835bb0195
@ -4,4 +4,4 @@ mysqlport: "3306"
|
|||||||
mysqluser: "root"
|
mysqluser: "root"
|
||||||
mysqlpass: "banana"
|
mysqlpass: "banana"
|
||||||
mysqldata: "deluxevouchers"
|
mysqldata: "deluxevouchers"
|
||||||
additions: "?useSSL=true"
|
additions: "?useSSL=true?autoReconnect=true"
|
@ -1,6 +1,8 @@
|
|||||||
package nl.marido.deluxevouchers.handlers;
|
package nl.marido.deluxevouchers.handlers;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.sql.Date;
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
@ -58,7 +60,10 @@ public class Commandos implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
if (args[0].equalsIgnoreCase("backup")) {
|
if (args[0].equalsIgnoreCase("backup")) {
|
||||||
try {
|
try {
|
||||||
String folder = String.valueOf(DeluxeVouchers.getInstance().getDataFolder()) + "/" + System.currentTimeMillis();
|
Timestamp stamp = new Timestamp(System.currentTimeMillis());
|
||||||
|
Date date = new Date(stamp.getTime());
|
||||||
|
String time = date.toString();
|
||||||
|
String folder = String.valueOf(DeluxeVouchers.getInstance().getDataFolder()) + "/" + time;
|
||||||
new File(folder).mkdir();
|
new File(folder).mkdir();
|
||||||
File configfile = new File(folder, "config.yml");
|
File configfile = new File(folder, "config.yml");
|
||||||
File vouchersfile = new File(folder, "vouchers.yml");
|
File vouchersfile = new File(folder, "vouchers.yml");
|
||||||
|
@ -105,6 +105,9 @@ public class Confirmation implements Listener {
|
|||||||
}
|
}
|
||||||
if (clicked.getItemMeta().hasDisplayName()) {
|
if (clicked.getItemMeta().hasDisplayName()) {
|
||||||
if (clicked.getItemMeta().getDisplayName().equals(DataHandler.cancelitemname)) {
|
if (clicked.getItemMeta().getDisplayName().equals(DataHandler.cancelitemname)) {
|
||||||
|
UUID uuid = player.getUniqueId();
|
||||||
|
vouchercache.remove(uuid);
|
||||||
|
itemcache.remove(uuid);
|
||||||
SoundHandler.playSound(player, DataHandler.cancelitemsound, DataHandler.cancelitempitch);
|
SoundHandler.playSound(player, DataHandler.cancelitemsound, DataHandler.cancelitempitch);
|
||||||
player.closeInventory();
|
player.closeInventory();
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,6 @@ public class VoucherEditor implements Listener {
|
|||||||
ItemMeta renameitemmeta = renameitem.getItemMeta();
|
ItemMeta renameitemmeta = renameitem.getItemMeta();
|
||||||
renameitemmeta.setDisplayName(DataHandler.editorrenameitemname);
|
renameitemmeta.setDisplayName(DataHandler.editorrenameitemname);
|
||||||
renameitemmeta.setLore(DataHandler.editorrenameitemlore);
|
renameitemmeta.setLore(DataHandler.editorrenameitemlore);
|
||||||
|
|
||||||
if (DataHandler.editorrenameitemglow) {
|
if (DataHandler.editorrenameitemglow) {
|
||||||
renameitemmeta.addEnchant(Enchantment.DURABILITY, 1, false);
|
renameitemmeta.addEnchant(Enchantment.DURABILITY, 1, false);
|
||||||
renameitemmeta.addItemFlags(ItemFlag.HIDE_ENCHANTS);
|
renameitemmeta.addItemFlags(ItemFlag.HIDE_ENCHANTS);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: DeluxeVouchers
|
name: DeluxeVouchers
|
||||||
main: nl.marido.deluxevouchers.DeluxeVouchers
|
main: nl.marido.deluxevouchers.DeluxeVouchers
|
||||||
version: 6.0.6
|
version: 6.0.7
|
||||||
author: Marido
|
author: Marido
|
||||||
website: https://marido.host/deluxevouchers
|
website: https://marido.host/deluxevouchers
|
||||||
description: Enhance your server with awesome customizable vouchers with a lot of features.
|
description: Enhance your server with awesome customizable vouchers with a lot of features.
|
||||||
|
Loading…
Reference in New Issue
Block a user