Skip to content

Commit

Permalink
remove old config option
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Nov 30, 2023
1 parent e5f41b7 commit b1062a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Config {

private final ConfigFile config;
public final Locale default_lang;
public final boolean auto_lang, protocolLib_IsDisabled, connectionMsgsAreOnByDefault, cmd_kickphrase_enabled,
public final boolean auto_lang, protocolLib_IsDisabled, connectionMsgsAreOnByDefault,
cmd_say_enabled, cmd_help_enabled, cmd_toggleConMsgs_enabled;
public final int nether_ceiling_max_y;
public final Component cmd_say_format;
Expand All @@ -31,7 +31,6 @@ public Config() throws Exception {
// General Settings
this.protocolLib_IsDisabled = getBoolean("general.disable-all-ProtocolLib", false, "Use only if you are having problems with ProtocolLib when starting the plugin.");
this.nether_ceiling_max_y = getInt("general.nether-ceiling-y", 127, "The Y-level at which the nether ceiling generates the last layer of bedrock on your server.");
this.cmd_kickphrase_enabled = getBoolean("general.commands.kickphrase.enable", false, "Enable the /aef kickphrase <phrase> command.");
this.cmd_say_enabled = getBoolean("general.commands.say.enable", false);
this.cmd_say_format = MiniMessage.miniMessage().deserialize(getString("general.commands.say.format", "<gray>SERVER: <gold>%message%", "Uses MiniMessage formatting."));
this.cmd_help_enabled = getBoolean("general.commands.help.enable", false, "Help command that shows a small command overview for players.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Config {

private final ConfigFile config;
public final Locale default_lang;
public final boolean auto_lang, protocolLib_IsDisabled, connectionMsgsAreOnByDefault, cmd_kickphrase_enabled,
public final boolean auto_lang, protocolLib_IsDisabled, connectionMsgsAreOnByDefault,
cmd_say_enabled, cmd_help_enabled, cmd_toggleConMsgs_enabled;
public final int nether_ceiling_max_y, nether_floor_min_y, overworld_floor_min_y;
public final String cmd_say_format;
Expand All @@ -30,7 +30,6 @@ public Config() throws Exception {
this.nether_ceiling_max_y = getInt("general.nether-ceiling-y", 127, "The Y-level at which the nether ceiling generates the last layer of bedrock on your server.");
this.nether_floor_min_y = getInt("general.nether-floor-y", 0, "The Y-level at which the nether floor generates the last layer of bedrock on your server.");
this.overworld_floor_min_y = getInt("general.overworld-floor-y", AnarchyExploitFixes.getMCVersion() > 17 ? -64 : 0, "The Y-level at which the overworld floor generates the last layer of bedrock on your server.");
this.cmd_kickphrase_enabled = getBoolean("misc.enable-kickphrase-command", false, "Enable the /aef kickphrase <phrase> command.");
this.cmd_say_enabled = getBoolean("general.commands.say.enable", false);
this.cmd_say_format = ChatColor.translateAlternateColorCodes('&', getString("general.commands.say.format", "&7Server: &6%message%"));
this.cmd_help_enabled = getBoolean("general.commands.help.enable", false, "Help command that shows a small command overview for players.");
Expand Down

0 comments on commit b1062a1

Please sign in to comment.