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.jarinto 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:
? 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 mainconfig.ymlfile./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.
下载 Coder
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Coder
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Coder
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Coder
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Coder
下载 Coder
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Coder
下载 Coder
下载 Coder
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Coder
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
Coder v2.5.0
一款强大的 Minecraft 脚本引擎。在服务器上运行 Java、Lua 和 Python 脚本,并支持实时网页编辑。
v2.5.0 更新内容
- Python 运行时管理: 启用 Python 执行时,插件会在其运行时目录下下载并管理 Python 解释器。不再通过 Jython 捆绑 Python。
- 简化执行安全性: 移除了之前的用户执行控制(UEC)和 Java 脚本管理器(JSM)系统。
功能特性
脚本引擎
- 多语言支持: 在 Minecraft 服务器上编写并执行 Java、Python 和 Lua 脚本。
- 统一工作区: 脚本统一存放在结构化的
Coder/scripts/文件夹中。 - 内存内 Java 执行: 使用
/coder load将 Java 代码加载到服务器内存中。 - 运行时管理的 Python: Python 运行时文件会下载到
Coder/runtimes/Python/目录,并用于执行 Python 脚本。 - 清理缓存目录: 编译后的 Java 文件被分离到运行时和已加载目录中。
插件系统 (Addon System)
- 插件注册表: 插件可以通过
CoderAddon与 Coder 集成。 - 版本与依赖检查:
AddonManager会在加载前检查插件的要求。 - 工作者/辅助工具: 插件可以通过
CoderWorker暴露受管制的周期性工作者。 - 自定义执行处理器: 插件可以提供 Java、Python 和 Lua 的处理器及预处理钩子。
- 自定义命令、事件和标签补全: 插件可以扩展 Coder 的命令和事件 API。
- 共享数据存储: 插件可以存储轻量级的键值数据。
- 自动刻与自动保存: 插件可以选择加入受管制的周期性回调。
通过 CoderAPI 提供的实用工具
- 消息传递: 带有前缀的成功、错误、信息、警告、调试和广播消息。
- 玩家操作: 生命值、饥饿值、经验值、游戏模式、权限、传送、踢出以及位置查询。
- 物品栏/物品: 给予、移除、计数、检查和清空物品栏物品。
- 特效: 音效、粒子效果、动作条和标题。
- 记分板: 简单的侧边栏创建与清除。
- 调度器: 同步、延迟、异步和重复任务的辅助工具。
- 冷却时间、方块和聊天辅助: 按玩家计数的冷却时间、方块操作以及颜色转换工具。
- 服务器信息: MOTD、Bukkit/Minecraft 版本、TPS、MSPT、刻数统计以及插件查询。
操作
- 双备份系统: 自动定时备份与即时手动快照。
- 图形化 Web 界面 (GWI): 安全地远程管理、编辑和删除服务器文件。
- 虚拟控制台界面 (VCI): 通过
https://coder-gwieditor.firesmasher.workers.dev/mc-console?=YOUR_TOKEN_HERE远程运行服务器命令。 - Java 25 支持: 提供专用的 Java 25 构建版本,以支持较新的 JVM。
- 其他实用工具: 提供对 JetBrains 注解、NBT-API 和 Commons Lang3 的脚本访问权限。
GWI 编辑器安全性
GWI 会话使用 SHA-256 令牌,并在 30 分钟无活动后自动过期。
虚拟控制台界面安全性
Minecraft 控制台面板会拦截 /op 命令,并使用 SHA-256 服务器密码令牌。若要禁用此功能,请从 /plugins/Coder/.gwi/secure/serverPassword.env 中移除 serverPassword= 的值。
快速入门
工作区目录
| 用途 | 服务器路径 |
|---|---|
| 脚本目录 | /plugins/Coder/scripts/ |
| 执行日志 | /plugins/Coder/Logs/ |
| GWI 目录 | /plugins/Coder/.gwi/ |
| Python 运行时 | /plugins/Coder/runtimes/Python/ |
命令参考
脚本管理
/coder run <filename>- 执行脚本。/coder load <filename>- 加载并编译 Java 脚本至服务器内存。/coder unload <filename>- 卸载活动的 Java 类。/coder reload <filename>- 重新加载插件配置或脚本。
GWI Web 编辑器
/coder editor start- 启动安全的 GWI 编辑器会话。/coder editor trust <username>- 授予对待定连接的访问权限。/coder editor do-not-trust <username>- 拒绝待定连接。/coder editor stop- 终止当前的 GWI 编辑器会话。
虚拟控制台界面
/coder gen-pass- 为/mc-console/生成服务器密码。
系统与维护
/coder backup- 创建即时备份。/coder auto-backup-start- 启动自动备份。/coder auto-backup-stop- 停止自动备份。/coder reload-config- 重新加载config.yml。/coder update- 检查插件更新。/coder update-jar- 下载并安装最新版本的插件。/coder enable-activity-logging- 启用活动日志记录。/coder disable-activity-logging- 禁用活动日志记录。
Coderc
/coderc run <filename.class>- 运行已编译的类。/coderc compile <filename.java>- 将 Java 文件编译为类文件。
安全警告
Coder 执行 Java、Python 和 Lua 脚本,并可访问服务器环境。只有受信任的管理员才能管理 scripts/ 目录中的文件。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧