Little changes before release

This commit is contained in:
Jaime Martinez Rincon 2017-02-18 11:35:50 +01:00
parent 183bb3c522
commit b7d4831a6c
3 changed files with 5 additions and 2 deletions

View File

@ -141,7 +141,9 @@ public class ManageCommand extends Command {
case "list": {
Set<String> keys = plugin.getSectionManager().getSections().keySet();
Iterator<String> iterator = keys.iterator();
TextComponent message = new TextComponent(String.format("There are %s configured sections:\n", keys.size()));
TextComponent message = new TextComponent("There are ");
message.addExtra(new TextComponent(new ComponentBuilder(String.valueOf(keys.size())).color(ChatColor.AQUA).create()));
message.addExtra(" configured sections:\n");
message.setColor(ChatColor.GRAY);
if (iterator.hasNext()) {

View File

@ -39,6 +39,7 @@ public class ConfigEntries implements ConfigEntryHolder {
public static final ConfigEntry<List<String>> FALLBACK_COMMAND_IGNORED_SECTIONS = new ConfigEntry<>(0, "settings.fallback-command.ignored", Collections.emptyList());
public static final ConfigEntry<Boolean> FALLBACK_COMMAND_RESTRICTED = new ConfigEntry<>(0, "settings.fallback-command.restricted", true);
public static final ConfigEntry<Boolean> FALLBACK_COMMAND_ARGUMENTS = new ConfigEntry<>(0, "settings.fallback-command.arguments", true);
public static final ConfigEntry<Boolean> AUTO_RELOAD_ENABLED = new ConfigEntry<>(0, "settings.auto-reload", true);
public static final ConfigEntry<Boolean> REDIS_BUNGEE_ENABLED = new ConfigEntry<>(0, "settings.redis-bungee", false);
public static final ConfigEntry<Boolean> ASSIGN_TARGETS_ENABLED = new ConfigEntry<>(0, "settings.assign-targets", false);

View File

@ -20,7 +20,7 @@ public class ServerSection {
private final String name;
private boolean principal;
private int position = Integer.MAX_VALUE;
private int position;
private boolean dummy;
private ServerSection parent;
private boolean inherited = false;