Class ModdedPredicatePermissions.Client
- Enclosing class:
ModdedPredicatePermissions
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C> @NonNull PredicatePermission<C> Get a permission predicate which passes when commands are enabled on the currently running integrated server.static <C> @NonNull PredicatePermission<C> commandsAllowed(boolean allowOnMultiplayer) Get a permission predicate which passes when commands are enabled on the currently running integrated server.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.static <C> @NonNull PredicatePermission<C> Get a permission predicate which passes when commands are disabled on the currently running integrated server.static <C> @NonNull PredicatePermission<C> commandsDisallowed(boolean allowOnMultiplayer) Get a permission predicate which passes when commands are disabled on the currently running integrated server.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.static <C> @NonNull PredicatePermission<C> Get a permission predicate which passes when the integrated server is not running.static <C> @NonNull PredicatePermission<C> Get a permission predicate which passes when the integrated server is running.
-
Method Details
-
integratedServerRunning
Get a permission predicate which passes when the integrated server is running.- Type Parameters:
C- sender type- Returns:
- a predicate permission
-
integratedServerNotRunning
Get a permission predicate which passes when the integrated server is not running.- Type Parameters:
C- sender type- Returns:
- a predicate permission
-
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
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
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
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
-