Package com.plotsquared.core.util
Class ThreadUtils
java.lang.Object
com.plotsquared.core.util.ThreadUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcatchAsync(String message) ThrowsIllegalStateExceptionif the method is not called from the server main threadstatic voidThrowsIllegalStateExceptionif the method is called from the server main thread
-
Method Details
-
catchSync
ThrowsIllegalStateExceptionif the method is called from the server main thread- Parameters:
message- Message describing the issue
-
catchAsync
ThrowsIllegalStateExceptionif the method is not called from the server main thread- Parameters:
message- Message describing the issue
-