Git Craft

插件

· 作者 NekoMonci

完全功能性的内置 Minecraft 服务器 Git 客户端

0 本站下载 0 关注 更新于 1 年前

最新 1.0.1 · 1.21.6 · Bukkit / Paper

一键开服(送7天)

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 用户授予访问权限。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源