diff --git a/src/main/java/com/alpsbte/plotsystem/core/system/CityProject.java b/src/main/java/com/alpsbte/plotsystem/core/system/CityProject.java index 1462e06b..16a773a0 100644 --- a/src/main/java/com/alpsbte/plotsystem/core/system/CityProject.java +++ b/src/main/java/com/alpsbte/plotsystem/core/system/CityProject.java @@ -95,11 +95,12 @@ public static List getCityProjects(boolean onlyVisible) { } public static void addCityProject(Country country, String name) throws SQLException { - DatabaseConnection.createStatement("INSERT INTO plotsystem_city_projects (id, name, country_id, description) VALUES (?, ?, ?, ?)") + DatabaseConnection.createStatement("INSERT INTO plotsystem_city_projects (id, name, country_id, description, visible) VALUES (?, ?, ?, ?, ?)") .setValue(DatabaseConnection.getTableID("plotsystem_city_projects")) .setValue(name) .setValue(country.getID()) - .setValue("").executeUpdate(); + .setValue("") + .setValue(true).executeUpdate(); } public static void removeCityProject(int id) throws SQLException {