1.5.3 Checkpoint
This commit is contained in:
parent
8c573b12a2
commit
52014f94cb
12 changed files with 25 additions and 15 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16
build.gradle
16
build.gradle
|
|
@ -3,7 +3,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'org.gsdistance'
|
group = 'org.gsdistance'
|
||||||
version = '1.5.2'
|
version = '1.5.3'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
@ -49,6 +49,14 @@ processResources {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean build output jars before every build
|
// Custom task to clean only jar files before build
|
||||||
def var = build.dependsOn clean
|
task cleanJars(type: Delete) {
|
||||||
var
|
delete fileTree('build/libs') {
|
||||||
|
include '*.jar'
|
||||||
|
exclude "${project.name}-${version}.jar"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Run cleanJars before every build
|
||||||
|
build.dependsOn cleanJars
|
||||||
|
|
||||||
|
|
|
||||||
BIN
build/libs/GrimmsServer-1.5.3.jar
Normal file
BIN
build/libs/GrimmsServer-1.5.3.jar
Normal file
Binary file not shown.
|
|
@ -10,7 +10,7 @@ public enum ConfigKey {
|
||||||
MODULE_FACTIONS("module_Factions", true),
|
MODULE_FACTIONS("module_Factions", true),
|
||||||
MODULE_MARKET("module_Market", true),
|
MODULE_MARKET("module_Market", true),
|
||||||
MODULE_LEADERBOARD("module_Leaderboard", true),
|
MODULE_LEADERBOARD("module_Leaderboard", true),
|
||||||
DISABLED_COMMANDS("disabledCommands", new ArrayList()),
|
DISABLED_COMMANDS("disabledCommands", new ArrayList<String>()),
|
||||||
MODULE_CHAT("module_Chat", true),
|
MODULE_CHAT("module_Chat", true),
|
||||||
MODULE_HOMES("module_Homes", true),
|
MODULE_HOMES("module_Homes", true),
|
||||||
MODULE_LEVELING("module_Leveling", true),
|
MODULE_LEVELING("module_Leveling", true),
|
||||||
|
|
@ -21,8 +21,8 @@ public enum ConfigKey {
|
||||||
MODULE_RANKS("module_Ranks", true),
|
MODULE_RANKS("module_Ranks", true),
|
||||||
JOIN_MESSAGE("joinMessage", true),
|
JOIN_MESSAGE("joinMessage", true),
|
||||||
MODULE_DIMENSIONS("module_Dimensions", true),
|
MODULE_DIMENSIONS("module_Dimensions", true),
|
||||||
DISABLED_DIMENSIONS("disabledDimensions", new ArrayList<>()),
|
DISABLED_DIMENSIONS("disabledDimensions", new ArrayList<String>()),
|
||||||
BANNED_WORDS("bannedWords", new ArrayList<>()),
|
BANNED_WORDS("bannedWords", new ArrayList<String>()),
|
||||||
FORCE_DISABLE_BC("forceDisableBroadcasts", false),
|
FORCE_DISABLE_BC("forceDisableBroadcasts", false),
|
||||||
FORCE_AUTH("forceAuth", false),
|
FORCE_AUTH("forceAuth", false),
|
||||||
MARKET_GUI_ENABLED("market_gui_enabled", true),
|
MARKET_GUI_ENABLED("market_gui_enabled", true),
|
||||||
|
|
|
||||||
|
|
@ -43,16 +43,18 @@ public class ConfigLoader {
|
||||||
}
|
}
|
||||||
existingConfig.set(ConfigKey.CONFIG_VERSION.getKey(), currentVersion);
|
existingConfig.set(ConfigKey.CONFIG_VERSION.getKey(), currentVersion);
|
||||||
|
|
||||||
if (needsUpdate) {
|
|
||||||
try {
|
try {
|
||||||
existingConfig.save(configFile);
|
existingConfig.save(configFile);
|
||||||
GrimmsServer.logger.info("Config migrated to version " + currentVersion);
|
if (needsUpdate) {
|
||||||
|
GrimmsServer.logger.info("Config migrated to version " + currentVersion + " with new fields");
|
||||||
|
} else {
|
||||||
|
GrimmsServer.logger.info("Config version updated to " + currentVersion);
|
||||||
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
GrimmsServer.logger.severe("Failed to migrate config: " + e.getMessage());
|
GrimmsServer.logger.severe("Failed to migrate config: " + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private static void generateDefaultConfig(File configFile) {
|
private static void generateDefaultConfig(File configFile) {
|
||||||
YamlConfiguration yamlConfig = new YamlConfiguration();
|
YamlConfiguration yamlConfig = new YamlConfiguration();
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: GrimmsServer
|
name: GrimmsServer
|
||||||
author: Grimm&tyuXX
|
author: Grimm & [tyuXX]
|
||||||
description: A spigot plugin made by Grimm and tyuXX, it adds player leveling, a market, money, and more.
|
description: A spigot plugin made by Grimm and [tyuXX], it adds player leveling, a market, money, and more.
|
||||||
website: www.gsdistance.org
|
website: www.gsdistance.org
|
||||||
prefix: Grimm's
|
prefix: Grimm's
|
||||||
main: org.gsdistance.grimmsServer.GrimmsServer
|
main: org.gsdistance.grimmsServer.GrimmsServer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue