Coder 插件
最强大、轻量且现代的 Minecraft 服务器自动化脚本引擎。
Coder 让你无需传统重型脚本引擎的臃肿负担,即可创建自定义命令和逻辑。通过利用原生的 Java、Python 和 Lua 执行功能,以及一个自定义构建的简单语法解析器,Coder 赋予你对服务器环境的完全、无妥协的控制权。
? 主要特性
- 原生多语言执行: 在服务器上直接以原生方式运行真正的 Java、Python 和 Lua 脚本。
- 零臃肿 & 轻量级: 从底层设计为高度优化,没有任何沉重或不必要的依赖项。
- 内存中执行: 将脚本直接加载到服务器的内存中,以保持活动监听器、任务和后台进程持续运行。
- 原生 Java 语法支持: 跳过为了实现接口而导致的编译错误。运行真正的 Java 语法,调用自定义方法,并直接接入原生 Bukkit/Spigot 导入库。
- 活跃用户执行控制 (UEC): 一个强大的安全层,拦截未授权的脚本并阻止恶意的系统终端访问。
- VersionManager(版本管理器): 通过一键自动更新轻松保持系统处于最新状态。
- 图形化 Web 界面 (GWI): 使用类似 VS Code 的 Web 编辑器,实时安全地编辑、创建和管理你的脚本。
- 虚拟控制台界面 (VCI): 允许你通过
https://coder-gwieditor.firesmasher.workers.dev/mc-console?=YOUR_TOKEN_HERE 安全地运行命令。
? GWI 编辑器安全性
远程 GWI 编辑器具有极高的安全性。会话连接利用 SHA-256 令牌,这些令牌在数学上无法被暴力破解或猜测。此外,每个会话令牌在 30 分钟不活动后会自动过期。
? 虚拟控制台界面安全性
自定义 Minecraft 控制台面板会阻止 /op 命令,并通过 SHA-256 服务器密码令牌进行保护。若要禁用此功能,你可以前往 /plugins/Coder/.gwi/secure/serverPassword.env 并移除 serverPassword= 的值。
? 安装
- 将
Coder.jar 放入服务器的 /plugins/ 文件夹中。
- 启动(或重启)服务器以生成目录结构。
- 将你的脚本放置在指定的工作区:
/plugins/Coder/scripts/ (脚本)
/plugins/Coder/Logs/ (日志)
? 文档与指南
如需完整的 API 详情、脚本教程和命令详解,请查阅官方文档:
? 阅读用户指南
? 命令参考
脚本管理
/coder run <filename> – 执行指定的脚本。
/coder load <filename> – 将脚本加载并编译到服务器内存中。
/coder unload <filename> – 从服务器内存中卸载活动脚本。
/coder reload <filename> – 重新加载特定脚本的配置。
安全与 UEC
/coder confirm – 手动批准被用户执行控制标记的脚本。
/coder cancel – 阻止并取消被 UEC 捕获的脚本。
虚拟控制台界面
/coder gen-pass - 生成唯一的 SHA-256 服务器密码以访问 /mc-console/。
GWI Web 编辑器
/coder editor start – 生成一个安全的 SHA-256 链接以访问 GWI Web 编辑器。
/coder editor trust <username> – 授予对待定连接请求的访问权限。
/coder editor do-not-trust <username> – 拒绝连接请求的访问。
/coder editor stop – 立即终止活动的 GWI Web 编辑器会话。
系统与维护
/coder backup – 触发脚本目录的即时手动备份。
/coder auto-backup-start – 启动后台备份的自动计划程序。
/coder auto-backup-stop – 停止后台备份计划程序。
/coder reload-config – 热重载主 config.yml 文件。
/coder update – 检查更新并获取下载链接。
/coder update-jar – 自动下载并替换插件 JAR 文件。
/coder enable-activity-logging – 启用活动日志记录。
/coder disable-activity-logging – 禁用活动日志记录。
⚠️ 安全警告
由于 Coder 允许原生 Python、Java 和 Lua 执行,仅允许受信任的管理员 管理 /scripts/ 目录中的文件。通过 Coder 运行的脚本拥有对系统命令和主机环境的完整、原生访问权限。
Coder Plugin
The most powerful, lightweight, and modern scripting engine for Minecraft server automation.
Coder allows you to create custom commands and logic without the bloat of traditional heavy scripting engines. By utilizing native Java, Python, and Lua execution alongside a custom-built, simple syntax parser, Coder gives you full, uncompromised control over your server environment.
? Key Features
- Native Multi-Language Execution: Run authentic Java, Python, and Lua scripts natively directly on your server.
- Zero Bloat & Lightweight: Designed from the ground up to be highly optimized with no heavy or unnecessary dependencies.
- In-Memory Execution: Load scripts directly into your server's memory to keep active listeners, tasks, and background processes running continuously.
- Real Java Syntax Support: Skip implementing rigid interfaces just to get compilation errors. Run authentic Java syntax, call custom methods, and tap directly into native Bukkit/Spigot imports.
- Active User Execution Control (UEC): A robust security layer that intercepts unauthorized scripts and blocks malicious system terminal access.
- VersionManager: Keep your system up to date effortlessly with one-tap auto-updates.
- Graphical Web Interface (GWI): Edit, create, and manage your scripts securely in real-time with a VS Code-like web editor.
- Virtual Console Interface (VCI): Lets you securely run commands via
https://coder-gwieditor.firesmasher.workers.dev/mc-console?=YOUR_TOKEN_HERE.
? GWI Editor Security
The remote GWI Editor is highly secure. Session connections leverage SHA-256 tokens which are mathematically impossible to brute-force or guess. Additionally, every session token automatically expires after 30 minutes of inactivity.
? Virtual Console Interface Security
The custom minecraft console panel blocks /op commands and is secured by SHA-256 Server Password tokens, to disable this feature, you can go to /plugins/Coder/.gwi/secure/serverPassword.env and remove the value of serverPassword=.
? Installation
- Drop the
Coder.jar into your server's /plugins/ folder.
- Start (or restart) the server to generate the directory structure.
- Place your scripts in the designated workspace:
/plugins/Coder/scripts/ (Scripts)
/plugins/Coder/Logs/ (Logs)
? Documentation & Guides
For complete API details, scripting tutorials, and command walk-throughs, check out the official documentation:
? Read the User Guide
? Command Reference
Script Management
/coder run <filename> – Executes a specified script.
/coder load <filename> – Loads and compiles a script directly into Server Memory.
/coder unload <filename> – Unloads an active script from Server Memory.
/coder reload <filename> – Reloads a specific script's configuration.
Security & UEC
/coder confirm – Manually permits a script flagged by the User Execution Control.
/coder cancel – Blocks and cancels a script caught by the UEC.
Virtual Console Interface
/coder gen-pass - Generates a unique SHA-256 server password to access /mc-console/.
GWI Web Editor
/coder editor start – Spawns a secure SHA-256 link to access the GWI Web Editor.
/coder editor trust <username> – Grants access to a pending connection request.
/coder editor do-not-trust <username> – Denies access to a connection request.
/coder editor stop – Terminates the active GWI Web Editor session immediately.
System & Maintenance
/coder backup – Triggers an immediate manual backup of your script directory.
/coder auto-backup-start – Starts the automated scheduler for background backups.
/coder auto-backup-stop – Halts the background backup scheduler.
/coder reload-config – Hot-reloads the main config.yml file.
/coder update – Checks for updates and retrieves a download link.
/coder update-jar – Automatically downloads and replaces the plugin JAR file.
/coder enable-activity-logging – Enables activity logging.
/coder disable-activity-logging – Disables activity logging.
⚠️ Security Warning
Because Coder allows native Python, Java, and Lua execution, only allow trusted administrators to manage files in the /scripts/ directory. Scripts running through Coder have full, native access to system commands and the host environment.
评论 0
登录后参与评分
还没有评论,来抢沙发吧