Package org.kingdoms.services
Class ServiceLuckPerms
java.lang.Object
org.kingdoms.services.ServiceLuckPerms
- All Implemented Interfaces:
net.luckperms.api.context.ContextCalculator<org.bukkit.entity.Player>,org.kingdoms.services.Service
public final class ServiceLuckPerms
extends Object
implements net.luckperms.api.context.ContextCalculator<org.bukkit.entity.Player>, org.kingdoms.services.Service
https://luckperms.net/wiki/Developer-API-Usage#important-classes
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.luckperms.api.node.NodebuildNode(org.snakeyaml.nodes.Node node) voidcalculate(@NonNull org.bukkit.entity.Player player, @NonNull net.luckperms.api.context.ContextConsumer contextConsumer) voiddisable()@NotNull net.luckperms.api.context.ContextSetstatic voidinit()static CompletableFuture<Boolean>perform(Collection<UUID> players, ServiceLuckPerms.Operation operation, Collection<net.luckperms.api.node.Node> permissions) static CompletableFuture<Boolean>perform(Collection<UUID> players, ServiceLuckPerms.Operation operation, org.snakeyaml.nodes.Node node) static List<net.luckperms.api.node.Node>toNodes(Collection<String> permissions) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kingdoms.services.Service
enable, isAvailable
-
Constructor Details
-
ServiceLuckPerms
public ServiceLuckPerms()
-
-
Method Details
-
init
public static void init() -
perform
public static CompletableFuture<Boolean> perform(Collection<UUID> players, ServiceLuckPerms.Operation operation, Collection<net.luckperms.api.node.Node> permissions) -
toNodes
-
perform
public static CompletableFuture<Boolean> perform(Collection<UUID> players, ServiceLuckPerms.Operation operation, org.snakeyaml.nodes.Node node) -
buildNode
public static net.luckperms.api.node.Node buildNode(org.snakeyaml.nodes.Node node) -
disable
public void disable()- Specified by:
disablein interfaceorg.kingdoms.services.Service
-
calculate
public void calculate(@NonNull org.bukkit.entity.Player player, @NonNull net.luckperms.api.context.ContextConsumer contextConsumer) - Specified by:
calculatein interfacenet.luckperms.api.context.ContextCalculator<org.bukkit.entity.Player>
-
estimatePotentialContexts
@NotNull public @NotNull net.luckperms.api.context.ContextSet estimatePotentialContexts()- Specified by:
estimatePotentialContextsin interfacenet.luckperms.api.context.ContextCalculator<org.bukkit.entity.Player>
-