org.spigotmc.AsyncCatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chest-server Show documentation
Show all versions of chest-server Show documentation
A spigot fork to kotlin structure and news.
The newest version!
package org.spigotmc;
import net.minecraft.server.MinecraftServer;
public class AsyncCatcher {
public static boolean enabled = true;
public static void catchOp(String reason) {
if (enabled && Thread.currentThread() != MinecraftServer.getServer().primaryThread) {
throw new IllegalStateException("Asynchronous " + reason + "!");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy