mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-09-19 03:01:18 +02:00
Little changes before release
This commit is contained in:
parent
183bb3c522
commit
b7d4831a6c
@ -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()) {
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user