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