Per-world Creeper settings complete
- Added per-world Block Damage settings - Added per-world Entity Damage settings - Added creeper_settings database support - Added world-specific Creeper menus - Added automatic world registration/default inheritance - Split Creeper listeners - Updated Creeper behavior to use world settings - Removed obsolete global Creeper indicators - Adopted logger-based error reporting standard
This commit is contained in:
1 parent
ebf030b192
commit
73a0ef8ae6
23 files changed
+1203
-73
No files matched your search
@@ -22,7 +22,15 @@ public class DatabaseManager {
|
||||
File dataFolder = plugin.getDataFolder();
|
||||
|
||||
if (!dataFolder.exists()) {
|
||||
dataFolder.mkdirs();
|
||||
|
||||
if (!dataFolder.mkdirs()) {
|
||||
|
||||
throw new SQLException(
|
||||
"Failed to create plugin data folder."
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File databaseFile = new File(
|
||||
@@ -86,6 +94,20 @@ public class DatabaseManager {
|
||||
"""
|
||||
);
|
||||
|
||||
statement.execute(
|
||||
"""
|
||||
CREATE TABLE IF NOT EXISTS equipment_drop_settings (
|
||||
world_name TEXT PRIMARY KEY,
|
||||
helmet INTEGER NOT NULL,
|
||||
chestplate INTEGER NOT NULL,
|
||||
leggings INTEGER NOT NULL,
|
||||
boots INTEGER NOT NULL,
|
||||
main_hand INTEGER NOT NULL,
|
||||
off_hand INTEGER NOT NULL
|
||||
)
|
||||
"""
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user