mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-29 06:05:17 +01:00
Fix pom.xml
This commit is contained in:
parent
c47e7c0b50
commit
64559a9579
16
pom.xml
16
pom.xml
@ -11,25 +11,21 @@
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<bukkit.version>1.1-R4</bukkit.version>
|
||||
<craftbukkit.version>1.1-R4</craftbukkit.version>
|
||||
<bukkit.version>1.1-R4-SNAPSHOT</bukkit.version>
|
||||
<craftbukkit.version>1.1-R4-SNAPSHOT</craftbukkit.version>
|
||||
<build.number>Unknown</build.number>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>craftbukkit-repo</id>
|
||||
<url>http://repo.bukkit.org/org/bukkit/craftbukkit/${craftbukkit.version}/craftbukkit-${craftbukkit.version}.jar</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>bukkit-repo</id>
|
||||
<url>http://repo.bukkit.org/org/bukkit/bukkit/${bukkit.version}/bukkit-${bukkit.version}.jar</url>
|
||||
<url>http://repo.bukkit.org/content/groups/public/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
|
||||
<!-- This does not work yet. Need repo to be set up. <repository>
|
||||
<id>citizensapi-repo</id>
|
||||
<!-- This does not work yet. Need repo to be set up. -->
|
||||
<url>http://repo.citizensnpcs.net</url>
|
||||
</repository>
|
||||
</repository>-->
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
|
@ -2,6 +2,7 @@ package net.citizensnpcs;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
|
||||
@ -164,7 +165,13 @@ public class Citizens extends JavaPlugin {
|
||||
|
||||
// NPC storage
|
||||
if (Setting.USE_DATABASE.asBoolean()) {
|
||||
saves = new DatabaseStorage();
|
||||
try {
|
||||
saves = new DatabaseStorage(Setting.DATABASE_DRIVER.asString(), Setting.DATABASE_URL.asString(),
|
||||
Setting.DATABASE_USERNAME.asString(), Setting.DATABASE_PASSWORD.asString());
|
||||
} catch (SQLException e) {
|
||||
Messaging.log("Unable to connect to database, falling back to YAML");
|
||||
saves = new YamlStorage(getDataFolder() + File.separator + "saves.yml", "Citizens NPC Storage");
|
||||
}
|
||||
} else {
|
||||
saves = new YamlStorage(getDataFolder() + File.separator + "saves.yml", "Citizens NPC Storage");
|
||||
}
|
||||
|
@ -35,7 +35,11 @@ public class Settings {
|
||||
QUICK_SELECT("npc.selection.quick-select", false),
|
||||
SELECTION_ITEM("npc.selection.item", 280),
|
||||
SELECTION_MESSAGE("npc.selection.message", "<b>You selected <a><npc><b>!"),
|
||||
USE_DATABASE("use-database", false);
|
||||
USE_DATABASE("use-database", false),
|
||||
DATABASE_PASSWORD("database.password", ""),
|
||||
DATABASE_USERNAME("database.username", ""),
|
||||
DATABASE_URL("database.url", ""),
|
||||
DATABASE_DRIVER("database.driver", "");
|
||||
|
||||
private String path;
|
||||
private Object value;
|
||||
|
Loading…
Reference in New Issue
Block a user