Compare commits
No commits in common. "008ffb523665fdef262f58ea5ec6321238467790" and "467476a573306120b85f61f17fc501d0446595ab" have entirely different histories.
008ffb5236
...
467476a573
|
@ -41,6 +41,11 @@ public class DeathChests {
|
|||
|
||||
Config.loadConfig();
|
||||
Debug.out("Loaded config.");
|
||||
|
||||
if (Config.fixLog4J) {
|
||||
// TODO: Mitigate the Log4J security vulnerability if it's in any way convenient
|
||||
Debug.err("Log4J fix is currently not implemented!");
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
|
|
@ -12,7 +12,8 @@ public class Config {
|
|||
public static final String config_file_name = "deathchests.txt";
|
||||
public static File configDir = null;
|
||||
|
||||
public static boolean debug = false;
|
||||
public static boolean debug = true;
|
||||
public static boolean fixLog4J = true;
|
||||
public static int maxDistance = 50;
|
||||
public static boolean allowOtherPlayers = true;
|
||||
public static String notAllowedMessage = "§4Cannot get items from another player's death chest.";
|
||||
|
@ -27,6 +28,9 @@ public class Config {
|
|||
configOut += "\n\n# Enable debug output?\n";
|
||||
configOut += "debug=";
|
||||
configOut += debug ? "true" : "false";
|
||||
configOut += "\n\n# Enable Log4Shell counter measures? (this feature is currently not implemented)\n";
|
||||
configOut += "fixLog4J=";
|
||||
configOut += fixLog4J ? "true" : "false";
|
||||
configOut += "\n\n# The maximum search radius for finding a suitable location for placing the death chest\n";
|
||||
configOut += "maxDistance=";
|
||||
configOut += Integer.toString(maxDistance);
|
||||
|
@ -70,6 +74,10 @@ public class Config {
|
|||
debug = configData.get(i).substring(equalsSign + 1).equals("true") ? true : false;
|
||||
break;
|
||||
}
|
||||
case ("fixLog4J"): {
|
||||
fixLog4J = configData.get(i).substring(equalsSign + 1).equals("true") ? true : false;
|
||||
break;
|
||||
}
|
||||
case ("maxDistance"): {
|
||||
maxDistance = Integer.parseInt(configData.get(i).substring(equalsSign + 1));
|
||||
break;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"modid": "deathchests",
|
||||
"name": "Death Chests",
|
||||
"description": "When a player dies, their items are collected and put into a special chest. Basically just another gravestone mod, but compatible with this very specific private mod pack...",
|
||||
"version": "v1",
|
||||
"version": "0-SNAPSHOT",
|
||||
"mcversion": "1.7.10",
|
||||
"url": "",
|
||||
"updateUrl": "",
|
||||
|
|
Loading…
Reference in New Issue