mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 00:26:45 +01:00
Starting the conversion to HOCON, splitting up configs, and more
This commit is contained in:
parent
76472a2b9f
commit
493d6b0a67
@ -7,7 +7,6 @@ import com.gmail.nossr50.datatypes.skills.SubSkillType;
|
|||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.skills.repair.ArcaneForging;
|
import com.gmail.nossr50.skills.repair.ArcaneForging;
|
||||||
import com.gmail.nossr50.skills.repair.Repair;
|
|
||||||
import com.gmail.nossr50.skills.repair.RepairManager;
|
import com.gmail.nossr50.skills.repair.RepairManager;
|
||||||
import com.gmail.nossr50.skills.repair.repairables.Repairable;
|
import com.gmail.nossr50.skills.repair.repairables.Repairable;
|
||||||
import com.gmail.nossr50.util.Permissions;
|
import com.gmail.nossr50.util.Permissions;
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.experience;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.config.ConfigValidated;
|
||||||
|
|
||||||
|
public class HerbalismExperienceConfig extends ConfigValidated {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.experience;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.config.ConfigValidated;
|
||||||
|
|
||||||
|
public class MiningExperienceConfig extends ConfigValidated {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.experience;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.config.ConfigValidated;
|
||||||
|
|
||||||
|
public class WoodcuttingExperienceConfig extends ConfigValidated {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class AntiExploit {
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class Backups {
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class Commands {
|
||||||
|
}
|
10
src/main/java/com/gmail/nossr50/config/hocon/General.java
Normal file
10
src/main/java/com/gmail/nossr50/config/hocon/General.java
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.Setting;
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class General {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class Hardcore {
|
||||||
|
}
|
7
src/main/java/com/gmail/nossr50/config/hocon/Items.java
Normal file
7
src/main/java/com/gmail/nossr50/config/hocon/Items.java
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class Items {
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class Language {
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class Leveling {
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class Metrics {
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class Particles {
|
||||||
|
}
|
7
src/main/java/com/gmail/nossr50/config/hocon/Party.java
Normal file
7
src/main/java/com/gmail/nossr50/config/hocon/Party.java
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class Party {
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class PlayerNotifications {
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class Scoreboard {
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class SuperAbilities {
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon.database;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.Setting;
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class ConfigCategoryDatabase {
|
||||||
|
|
||||||
|
@Setting(value = "User_Name", comment = "The authorized user for your MySQL/MariaDB DB")
|
||||||
|
private String username;
|
||||||
|
|
||||||
|
@Setting(value = "User_Password", comment = "The password for your authorized user")
|
||||||
|
private String password;
|
||||||
|
|
||||||
|
@Setting(value = "Database_Name", comment = "The database name for your DB, this DB must already exist on the SQL server.")
|
||||||
|
private String databaseName;
|
||||||
|
|
||||||
|
@Setting(value = "Table_Prefix", comment = "The Prefix that will be used for tables in your DB")
|
||||||
|
private String tablePrefix;
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon.database;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.Setting;
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class ConfigCategoryMySQL {
|
||||||
|
|
||||||
|
@Setting(value = "Enabled", comment = "If set to true, mcMMO will use MySQL/MariaDB instead of FlatFile storage")
|
||||||
|
private boolean enabled;
|
||||||
|
|
||||||
|
@Setting(value = "Database", comment = "Database settings for MySQL/MariaDB")
|
||||||
|
private ConfigCategoryDatabase configCategoryDatabase;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon.database;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.Setting;
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class ConfigCategoryServer {
|
||||||
|
|
||||||
|
@Setting(value = "Use_SSL", comment = "Enables SSL for MySQL/MariaDB connections, newer versions of MySQL will spam your console if you aren't using SSL")
|
||||||
|
private boolean useSSL;
|
||||||
|
|
||||||
|
@Setting(value = "Server_Port", comment = "Your MySQL/MariaDB server port")
|
||||||
|
private String serverPort;
|
||||||
|
|
||||||
|
@Setting(value = "Server_Address", comment = "The address for your MySQL/MariaDB server")
|
||||||
|
private String serverAddress;
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package com.gmail.nossr50.config.hocon.database;
|
||||||
|
|
||||||
|
import ninja.leaping.configurate.objectmapping.Setting;
|
||||||
|
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||||
|
|
||||||
|
@ConfigSerializable
|
||||||
|
public class ConfigDatabase {
|
||||||
|
|
||||||
|
@Setting(value = "MySQL", comment = "Settings for using MySQL or MariaDB database")
|
||||||
|
private ConfigCategoryMySQL configCategoryMySQL;
|
||||||
|
|
||||||
|
}
|
@ -2,6 +2,7 @@ package com.gmail.nossr50.util;
|
|||||||
|
|
||||||
import com.gmail.nossr50.config.Config;
|
import com.gmail.nossr50.config.Config;
|
||||||
import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
|
import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
|
||||||
|
import com.gmail.nossr50.datatypes.skills.SubSkillType;
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.skills.repair.Repair;
|
import com.gmail.nossr50.skills.repair.Repair;
|
||||||
import com.gmail.nossr50.skills.salvage.Salvage;
|
import com.gmail.nossr50.skills.salvage.Salvage;
|
||||||
|
0
src/main/resources/config/anti_exploit.conf
Normal file
0
src/main/resources/config/anti_exploit.conf
Normal file
0
src/main/resources/config/backups.conf
Normal file
0
src/main/resources/config/backups.conf
Normal file
0
src/main/resources/config/commands.conf
Normal file
0
src/main/resources/config/commands.conf
Normal file
0
src/main/resources/config/database.conf
Normal file
0
src/main/resources/config/database.conf
Normal file
0
src/main/resources/config/general.conf
Normal file
0
src/main/resources/config/general.conf
Normal file
0
src/main/resources/config/hardcore.conf
Normal file
0
src/main/resources/config/hardcore.conf
Normal file
0
src/main/resources/config/items.conf
Normal file
0
src/main/resources/config/items.conf
Normal file
0
src/main/resources/config/language.conf
Normal file
0
src/main/resources/config/language.conf
Normal file
0
src/main/resources/config/leveling.conf
Normal file
0
src/main/resources/config/leveling.conf
Normal file
0
src/main/resources/config/metrics.conf
Normal file
0
src/main/resources/config/metrics.conf
Normal file
0
src/main/resources/config/notifications.conf
Normal file
0
src/main/resources/config/notifications.conf
Normal file
0
src/main/resources/config/particles.conf
Normal file
0
src/main/resources/config/particles.conf
Normal file
0
src/main/resources/config/party.conf
Normal file
0
src/main/resources/config/party.conf
Normal file
0
src/main/resources/config/scoreboard.conf
Normal file
0
src/main/resources/config/scoreboard.conf
Normal file
0
src/main/resources/config/skills/acrobatics.conf
Normal file
0
src/main/resources/config/skills/acrobatics.conf
Normal file
0
src/main/resources/config/skills/alchemy.conf
Normal file
0
src/main/resources/config/skills/alchemy.conf
Normal file
0
src/main/resources/config/super_abilities.conf
Normal file
0
src/main/resources/config/super_abilities.conf
Normal file
Loading…
Reference in New Issue
Block a user