Read description lol

- Re-added premium
- Made the clown fish a shop item
- Thank fuck I caught this DB bug with setting null values
This commit is contained in:
Seth
2020-07-09 15:18:29 -07:00
parent f6ee9271c6
commit c87e1b3d64
15 changed files with 239 additions and 27 deletions

View File

@ -324,7 +324,7 @@ public class AdminList extends FreedomService
for (Map.Entry<String, Object> entry : admin.toSQLStorable().entrySet())
{
Object storedValue = plugin.sql.getValue(currentSave, entry.getKey(), entry.getValue());
if (storedValue != null && !storedValue.equals(entry.getValue()) || storedValue == null && entry.getValue() != null)
if (storedValue != null && !storedValue.equals(entry.getValue()) || storedValue == null && entry.getValue() != null || entry.getValue() == null)
{
plugin.sql.setAdminValue(admin, entry.getKey(), entry.getValue());
}