This commit is contained in:
Rsl1122 2017-06-03 17:32:50 +03:00
parent c40d11b4da
commit 04b749c792
1 changed files with 1 additions and 2 deletions

View File

@ -31,7 +31,6 @@ import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;
import org.bukkit.scheduler.BukkitTask;
import static org.bukkit.Bukkit.getOfflinePlayer;
import static org.bukkit.Bukkit.getOfflinePlayer;
/**
* This Class contains the Cache.
@ -338,7 +337,7 @@ public class DataCacheHandler extends LocationCache {
*/
public void saveCommandUse() {
try {
db.saveCommandUse(commandUse);
db.saveCommandUse(new HashMap<>(commandUse));
} catch (SQLException | NullPointerException e) {
Log.toLog(this.getClass().getName(), e);
}