Adding in config nodes for Hardcore Mode (WIP)

This commit is contained in:
nossr50 2012-04-30 06:21:14 -07:00
parent 3d2b881b0e
commit 323b41fd58
2 changed files with 12 additions and 0 deletions

View File

@ -44,6 +44,11 @@ public class Config extends ConfigLoader {
} }
} }
/* Hardcore Mode */
public boolean getHardcoreEnabled() { return config.getBoolean("Hardcore.Enabled", false); }
public double getHardcoreDeathStatPenaltyPercentage() { return config.getDouble("Hardcore.Death_Stat_Loss_Penalty_Percentage", 75); }
public boolean getHardcoreVampirismEnabled() { return config.getBoolean("Hardcore.Vampirism", false); }
/* Commands */ /* Commands */
public boolean getCommandXPLockEnabled() { return config.getBoolean("Commands.xplock.Enabled", true); } public boolean getCommandXPLockEnabled() { return config.getBoolean("Commands.xplock.Enabled", true); }
public boolean getCommandXPRateEnabled() { return config.getBoolean("Commands.xprate.Enabled", true); } public boolean getCommandXPRateEnabled() { return config.getBoolean("Commands.xprate.Enabled", true); }

View File

@ -31,6 +31,13 @@ MySQL:
Server: Server:
Port: 3306 Port: 3306
Address: localhost Address: localhost
#
# Settings for Hardcore mode
###
Hardcore:
Enabled: false
Death_Stat_Loss_Penalty_Percentage: 75
Vampirism: false
# #
# Settings for mcMMO items # Settings for mcMMO items