Added a notification on setup command when not using full address.

This commit is contained in:
Rsl1122 2017-10-29 11:02:31 +02:00
parent 6bb633ab45
commit 03c2d51475

View File

@ -55,6 +55,10 @@ public class ManageSetupCommand extends SubCommand {
return true; return true;
} }
String address = args[0].toLowerCase(); String address = args[0].toLowerCase();
if (!address.startsWith("http")) {
sender.sendMessage("§cMake sure you're using the full address (Starts with http:// or https://) - Check Bungee enable log for the full address.");
return true;
}
if (address.endsWith("/")) { if (address.endsWith("/")) {
address = address.substring(0, address.length() - 1); address = address.substring(0, address.length() - 1);
} }