Add forceSave() and update import for StringUtils

This commit is contained in:
GeorgH93 2023-05-29 20:53:11 +02:00
parent d9e101e0f1
commit 084e5a475b
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8

View File

@ -20,7 +20,7 @@
import at.pcgamingfreaks.Bukkit.MCVersion;
import at.pcgamingfreaks.Bukkit.Util.InventoryUtils;
import at.pcgamingfreaks.Minepacks.Bukkit.Database.Helper.InventoryCompressor;
import at.pcgamingfreaks.StringUtils;
import at.pcgamingfreaks.Util.StringUtils;
import org.bukkit.Bukkit;
import org.bukkit.Location;
@ -264,6 +264,12 @@ public void save()
}
}
public void forceSave()
{
hasChanged = true;
save();
}
public void backup()
{
Minepacks.getInstance().getDatabase().backup(this);