Skip to content

Commit

Permalink
Print warning when launched directly from snw.kookbc.Main
Browse files Browse the repository at this point in the history
  • Loading branch information
SNWCreations committed Jul 27, 2023
1 parent 2398d5b commit 011e800
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/snw/kookbc/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import java.lang.management.RuntimeMXBean;

import static java.lang.Boolean.parseBoolean;
import static snw.kookbc.util.Util.isStartByLaunch;

public class Main extends Launcher {
private static final String MAIN_THREAD_NAME = "Main Thread";
Expand Down Expand Up @@ -142,6 +143,14 @@ private int start(String[] args) {
}

protected int startClient(String token, YamlConfiguration config, File pluginsFolder) {
if (!isStartByLaunch()) {
logger.warn("***************************************");
logger.warn("Launching KookBC WITHOUT Mixin support!");
logger.warn("All Mixins in plugins will be ignored.");
logger.warn("Tips: You can safely ignore this if you");
logger.warn(" don't have Mixin plugins.");
logger.warn("***************************************");
}
RuntimeMXBean runtimeMX = ManagementFactory.getRuntimeMXBean();
OperatingSystemMXBean osMX = ManagementFactory.getOperatingSystemMXBean();
if (runtimeMX != null && osMX != null) {
Expand Down

0 comments on commit 011e800

Please sign in to comment.