Class ServiceManager


  • public class ServiceManager
    extends Object
    服务管理器,旨在于LuckPerms互联,调用其原始接口。
    • Constructor Detail

      • ServiceManager

        public ServiceManager()
    • Method Detail

      • getUser

        public static net.luckperms.api.model.user.User getUser​(Player player)
      • getService

        public static net.luckperms.api.LuckPerms getService()
      • getAPI

        public static net.luckperms.api.platform.PlayerAdapter<Player> getAPI()
      • hasPermission

        public static boolean hasPermission​(net.luckperms.api.model.user.User user,
                                            String permission)
        通过LuckPermsAPI判断玩家是否有对应的权限
        Parameters:
        user - 用户
        permission - 权限
        Returns:
        true / false
      • hasPermission

        public static boolean hasPermission​(Player player,
                                            String permission)