Updated to 6.0.7 (resolved some issues and patches).

This commit is contained in:
CoderMarido 2018-09-16 21:32:20 +02:00
parent b3c54c5487
commit d835bb0195
5 changed files with 11 additions and 4 deletions

View File

@ -4,4 +4,4 @@ mysqlport: "3306"
mysqluser: "root"
mysqlpass: "banana"
mysqldata: "deluxevouchers"
additions: "?useSSL=true"
additions: "?useSSL=true?autoReconnect=true"

View File

@ -1,6 +1,8 @@
package nl.marido.deluxevouchers.handlers;
import java.io.File;
import java.sql.Date;
import java.sql.Timestamp;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
@ -58,7 +60,10 @@ public class Commandos implements CommandExecutor {
}
if (args[0].equalsIgnoreCase("backup")) {
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();
File configfile = new File(folder, "config.yml");
File vouchersfile = new File(folder, "vouchers.yml");

View File

@ -105,6 +105,9 @@ public class Confirmation implements Listener {
}
if (clicked.getItemMeta().hasDisplayName()) {
if (clicked.getItemMeta().getDisplayName().equals(DataHandler.cancelitemname)) {
UUID uuid = player.getUniqueId();
vouchercache.remove(uuid);
itemcache.remove(uuid);
SoundHandler.playSound(player, DataHandler.cancelitemsound, DataHandler.cancelitempitch);
player.closeInventory();
}

View File

@ -107,7 +107,6 @@ public class VoucherEditor implements Listener {
ItemMeta renameitemmeta = renameitem.getItemMeta();
renameitemmeta.setDisplayName(DataHandler.editorrenameitemname);
renameitemmeta.setLore(DataHandler.editorrenameitemlore);
if (DataHandler.editorrenameitemglow) {
renameitemmeta.addEnchant(Enchantment.DURABILITY, 1, false);
renameitemmeta.addItemFlags(ItemFlag.HIDE_ENCHANTS);

View File

@ -1,6 +1,6 @@
name: DeluxeVouchers
main: nl.marido.deluxevouchers.DeluxeVouchers
version: 6.0.6
version: 6.0.7
author: Marido
website: https://marido.host/deluxevouchers
description: Enhance your server with awesome customizable vouchers with a lot of features.