Class ModdedPredicatePermissions.Client

java.lang.Object
org.incendo.cloud.minecraft.modded.ModdedPredicatePermissions.Client
Enclosing class:
ModdedPredicatePermissions

public static final class ModdedPredicatePermissions.Client extends Object
  • Method Details

    • integratedServerRunning

      public static <C> @NonNull PredicatePermission<C> integratedServerRunning()
      Get a permission predicate which passes when the integrated server is running.
      Type Parameters:
      C - sender type
      Returns:
      a predicate permission
    • integratedServerNotRunning

      public static <C> @NonNull PredicatePermission<C> integratedServerNotRunning()
      Get a permission predicate which passes when the integrated server is not running.
      Type Parameters:
      C - sender type
      Returns:
      a predicate permission
    • commandsAllowed

      public static <C> @NonNull PredicatePermission<C> commandsAllowed()
      Get a permission predicate which passes when commands are enabled on the currently running integrated server.

      This predicate will always pass if there is no integrated server running, i.e. when connected to a multiplayer server.

      Type Parameters:
      C - sender type
      Returns:
      a predicate permission
    • commandsAllowed

      public static <C> @NonNull PredicatePermission<C> commandsAllowed(boolean allowOnMultiplayer)
      Get a permission predicate which passes when commands are enabled on the currently running integrated server.

      When there is no integrated server running, i.e. when connected to a multiplayer server, the predicate will fall back to the provided boolean argument.

      Type Parameters:
      C - sender type
      Parameters:
      allowOnMultiplayer - whether the predicate should pass on multiplayer servers
      Returns:
      a predicate permission
    • commandsAllowed

      public static <C> @NonNull PredicatePermission<C> commandsAllowed(@NonNull PredicatePermission<C> allowOnMultiplayer)
      Get a permission predicate which passes when commands are enabled on the currently running integrated server.

      When there is no integrated server running, i.e. when connected to a multiplayer server, the predicate will fall back to the provided predicate argument.

      Type Parameters:
      C - sender type
      Parameters:
      allowOnMultiplayer - whether the predicate should pass on multiplayer servers
      Returns:
      a predicate permission
    • commandsDisallowed

      public static <C> @NonNull PredicatePermission<C> commandsDisallowed()
      Get a permission predicate which passes when commands are disabled on the currently running integrated server.

      This predicate will always pass if there is no integrated server running, i.e. when connected to a multiplayer server.

      Type Parameters:
      C - sender type
      Returns:
      a predicate permission
    • commandsDisallowed

      public static <C> @NonNull PredicatePermission<C> commandsDisallowed(boolean allowOnMultiplayer)
      Get a permission predicate which passes when commands are disabled on the currently running integrated server.

      When there is no integrated server running, i.e. when connected to a multiplayer server, the predicate will fall back to the provided boolean argument.

      Type Parameters:
      C - sender type
      Parameters:
      allowOnMultiplayer - whether the predicate should pass on multiplayer servers
      Returns:
      a predicate permission
    • commandsDisallowed

      public static <C> @NonNull PredicatePermission<C> commandsDisallowed(@NonNull PredicatePermission<C> allowOnMultiplayer)
      Get a permission predicate which passes when commands are disabled on the currently running integrated server.

      When there is no integrated server running, i.e. when connected to a multiplayer server, the predicate will fall back to the provided predicate argument.

      Type Parameters:
      C - sender type
      Parameters:
      allowOnMultiplayer - whether the predicate should pass on multiplayer servers
      Returns:
      a predicate permission