跳到正文

FernAPI

作者:Sunnit-M

A JSON Based Permission API (WIP)

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Project Logo

Fern


Disclaimer!

– The project is not at all finished and is still in early development.

– Error Handling speed and other things are not yet implemented.

– Most things are guaranteed to change in future updates.

– Don’t expect this to replace other permission systems yet.

Overview

Fern is a JSON based Permission System made to be easy to use and implement, with different data storage methoads.

This project does not include any commands or utilities to manage permissions, it is only the backend API to store and retrieve permissions. But some can be done by editing files directly.

Setup

  1. Add Fern to your server.
  2. Run Server And Allow Fern To Generate Default Config Files.
  3. Stop The Server.
  4. Select a data type using the table below in config.json
  5. Start The Server Again.

Data Storage Types

| Type | Description |
|——|————————————————————————-|
| 0 | Stores Data With Permissions In Player (Player {Assigned Perms}) |
| 1 | Stores Data With Players In Permissions (Permission {Players Assigned}) |

And data does not port to new data type yet.

Usage

Build.Gradle

repositories {
    maven {
        url = "https://api.modrinth.com/maven"
    }
}

dependencies {
    modImplementation "maven.modrinth:fernapi:${fern_version}"
}

properties.gradle

fern_version=0.5.1

All versions below the latest may be unstable.

What’s Next

  • Utility Mod
  • WIKI
  • Using Jackson for speed
  • Error Handling
  • Support for more platforms

常见问题

FernAPI 支持哪些 Minecraft 版本?

FernAPI 支持 Minecraft Java 版 1.21.10,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

FernAPI 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分