This commit is contained in:
TaeSoo 태수 2017-05-31 18:18:48 +00:00 committed by GitHub
commit 8a827217a8
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import net.ME1312.SubServers.Bungee.Host.SubCreator;
import net.ME1312.SubServers.Bungee.Host.SubServer;
import net.ME1312.SubServers.Bungee.Library.Util;
import net.ME1312.SubServers.Bungee.Library.Version.Version;
import net.ME1312.SubServers.Bungee.Library.Config.YAMLConfig;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.chat.ClickEvent;
@ -46,6 +47,9 @@ public final class SubCommand extends Command implements TabExecutor {
sender.sendMessages(printHelp());
} else if (args[0].equalsIgnoreCase("version") || args[0].equalsIgnoreCase("ver")) {
sender.sendMessage("SubServers > SubServers.Bungee is running version " + plugin.version.toString() + ((plugin.bversion != null)?" BETA "+plugin.bversion.toString():""));
} else if (args[0].equalsIgnoreCase("reload")) {
sender.sendMessage("SubServers > Reloading Config..."));
YAMLConfig.reload(); //I'm not good at java, please check code :)
} else if (args[0].equalsIgnoreCase("list")) {
List<String> hosts = new ArrayList<String>();
for (Host host : plugin.hosts.values()) {