Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_XiTvk37m.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Git Craft - 墨喵 Minecraft 资源
Git Craft 图标

Git Craft

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/git-craft
资源信息

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6

平台: bukkit paper spigot

标签: management

资源介绍

GitCraft

A fully functional in-game Git client built into your Minecraft server.

It allows server administrators to commit, push, pull, fetch, and manage Git repositories without ever leaving the game.

Compatible with:

  • PaperMC 1.21.4
  • Java 21
  • Works with both local and self-hosted Git servers (e.g., Gitea, Forgejo)

🔧 Features

  • In-game Git commands: init, add, commit, push, pull, etc.
  • Secure credential storage using H2 database + AES encryption
  • Per-user Git commits using in-game name & custom email
  • Warns users when using public Git hosts (GitHub, GitLab)
  • Repository path selector via flags
  • Optional permission restrictions for each command
  • Help command: /git help

⚙️ Configuration

disable-unsafe-warning: false

When disable-unsafe-warning is false, you cannot add public Git hosts (e.g., github.com, gitlab.com).
You're encouraged to use self-hosted Git solutions like:


📜 Commands Overview

/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

🔐 Permissions

Control access to Git commands via permissions (default: OP only):

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

Use a permission plugin like LuckPerms to grant access to non-op users.

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Hazen 'n Stuff

价格:0 墨喵币
下载量:0

查看详情
Mythic Trials [MT1]

价格:0 墨喵币
下载量:0

查看详情
Glossy

价格:0 墨喵币
下载量:0

查看详情
Multiple Use Stew

价格:0 墨喵币
下载量:0

查看详情