diff --git a/src/at/pcgamingfreaks/MinePacks/Database/SQL.java b/src/at/pcgamingfreaks/MinePacks/Database/SQL.java index a59d380..d624476 100644 --- a/src/at/pcgamingfreaks/MinePacks/Database/SQL.java +++ b/src/at/pcgamingfreaks/MinePacks/Database/SQL.java @@ -86,6 +86,7 @@ protected void loadSettings() UpdatePlayer = plugin.config.getUpdatePlayer(); } + @Override public void close() { dataSource.close(); @@ -246,6 +247,7 @@ protected void runStatement(final String query, final Object... args) } // Plugin Functions + @Override public void updatePlayer(final Player player) { if(useUUIDs) @@ -258,6 +260,7 @@ public void updatePlayer(final Player player) } } + @Override public void saveBackpack(final Backpack backpack) { final byte[] data = itsSerializer.serialize(backpack.getInventory()); @@ -383,6 +386,7 @@ public void run() }); } + @Override public Backpack loadBackpack(OfflinePlayer player) // The sync function shouldn't be called at all { try(Connection connection = getConnection(); PreparedStatement ps = connection.prepareStatement(Query_GetBP)) diff --git a/src/at/pcgamingfreaks/MinePacks/Database/SQLite.java b/src/at/pcgamingfreaks/MinePacks/Database/SQLite.java index 91f2a9a..17c2010 100644 --- a/src/at/pcgamingfreaks/MinePacks/Database/SQLite.java +++ b/src/at/pcgamingfreaks/MinePacks/Database/SQLite.java @@ -45,8 +45,10 @@ protected void loadSettings() Field_Name = "name"; Field_UUID = "uuid"; Field_BPOwner = "owner"; + //noinspection SpellCheckingInspection Field_BPITS = "itemstacks"; Field_BPVersion = "version"; + //noinspection SpellCheckingInspection Field_BPLastUpdate = "lastupdate"; Table_Players = "backpack_players"; Table_Backpacks = "backpacks";