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
  • 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

      public static List<net.luckperms.api.node.Node> toNodes(Collection<String> permissions)
    • 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:
      disable in interface org.kingdoms.services.Service
    • calculate

      public void calculate(@NonNull org.bukkit.entity.Player player, @NonNull net.luckperms.api.context.ContextConsumer contextConsumer)
      Specified by:
      calculate in interface net.luckperms.api.context.ContextCalculator<org.bukkit.entity.Player>
    • estimatePotentialContexts

      @NotNull public @NotNull net.luckperms.api.context.ContextSet estimatePotentialContexts()
      Specified by:
      estimatePotentialContexts in interface net.luckperms.api.context.ContextCalculator<org.bukkit.entity.Player>