Fixed admin delete command not storing in database.
Contributed by G-hamsteR.
This commit is contained in:
@@ -317,7 +317,13 @@ public class SpawnTable
|
|||||||
{
|
{
|
||||||
try (Connection con = DatabaseFactory.getConnection())
|
try (Connection con = DatabaseFactory.getConnection())
|
||||||
{
|
{
|
||||||
final PreparedStatement statement = con.prepareStatement("DELETE FROM " + (Config.SAVE_GMSPAWN_ON_CUSTOM ? "custom_spawnlist" : "spawnlist") + " WHERE id=?");
|
PreparedStatement statement;
|
||||||
|
statement = con.prepareStatement("DELETE FROM spawnlist WHERE id=?");
|
||||||
|
statement.setInt(1, spawn.getId());
|
||||||
|
statement.execute();
|
||||||
|
statement.close();
|
||||||
|
|
||||||
|
statement = con.prepareStatement("DELETE FROM custom_spawnlist WHERE id=?");
|
||||||
statement.setInt(1, spawn.getId());
|
statement.setInt(1, spawn.getId());
|
||||||
statement.execute();
|
statement.execute();
|
||||||
statement.close();
|
statement.close();
|
||||||
|
Reference in New Issue
Block a user