Class ThreadUtils

java.lang.Object
com.plotsquared.core.util.ThreadUtils

public final class ThreadUtils extends Object
  • Method Details

    • catchSync

      public static void catchSync(String message)
      Throws IllegalStateException if the method is called from the server main thread
      Parameters:
      message - Message describing the issue
    • catchAsync

      public static void catchAsync(String message)
      Throws IllegalStateException if the method is not called from the server main thread
      Parameters:
      message - Message describing the issue