mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Added a notification on setup command when not using full address.
This commit is contained in:
parent
6bb633ab45
commit
03c2d51475
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user