GitCraft
一个完全功能的游戏内 Git 客户端,内置于你的 Minecraft 服务器中。
它允许服务器管理员在游戏内执行 提交(commit)、推送(push)、拉取(pull)、获取(fetch)以及管理 Git 仓库,无需离开游戏。
兼容:
- PaperMC
1.21.4 - Java
21 - 支持本地和自托管的 Git 服务器(例如 Gitea、Forgejo)
? 特性
- 游戏内 Git 命令:
init、add、commit、push、pull等 - 使用 H2 数据库 + AES 加密进行安全的凭据存储
- 使用游戏内名称和自定义邮箱为每个用户创建 Git 提交
- 在使用公共 Git 主机(GitHub、GitLab)时发出警告
- 通过参数选择仓库路径
- 可选的针对每个命令的权限限制
- 帮助命令:
/git help
⚙️ 配置
disable-unsafe-warning: false
当
disable-unsafe-warning为false时,你无法添加公共 Git 主机(例如github.com、gitlab.com)。 建议使用 自托管的 Git 解决方案,如:
? 命令概览
/git init --path=<dir>
/git add <file...> [--path=<dir>]
/git reset --hard|<file> [--path=<dir>]
/git commit --message="Your message" [--path=<dir>]
/git remote --add|--set-url|--remove --url=<url> [--path=<dir>]
/git push [--path=<dir>]
/git pull [--path=<dir>]
/git fetch [--path=<dir>]
/git login --username=<name> --token=<pat>
/git whoami
/git logout
/git help
? 权限
通过权限控制对 Git 命令的访问(默认仅限 OP):
gitcraft.command.add: op
gitcraft.command.commit: op
gitcraft.command.reset: op
gitcraft.command.init: op
gitcraft.command.remote: op
gitcraft.command.status: op
gitcraft.command.help: op
gitcraft.command.push: op
gitcraft.command.fetch: op
gitcraft.command.pull: op
gitcraft.command.login: op
gitcraft.command.whoami: op
gitcraft.command.logout: op
使用权限插件如 LuckPerms 为非 OP 用户授予访问权限。
你是这个资源的作者?登录后可认领此资源。
相似资源
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
ExyliaPlugins 的库。
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
一个强大的 API,用于为你的 Minecraft 服务器创建自定义进度。
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
评论 0
登录后参与评分
还没有评论,来抢沙发吧