WebPlugin

WebPlugin - :在 Minecraft 服务器上运行网站,完整支持 PHP(1.13–26.2)

Launch 网站,直接从你的现有 Minecraft 服务器运行!完整支持 PHP。
Bukkit / Spigot 作者 humpjump 支持版本 1.13 - 1.21
服务器使用量
未统计
服务玩家数
未统计
下载量
4,002
插件详细介绍

WebServer 是一款易于使用、运行高效的 Minecraft 插件。安装后,为服务器分配额外端口,即可通过服务器 IP 和端口访问集成的 Web 服务器。

重要提示

  • 插件支持 Folia。
  • 即将停止支持旧版 Windows PHP。如果遇到问题,请在 GitHub 上反馈。
  • 启用 PHP 后,插件会自动从 GitHub 仓库下载所需的系统库(GLIBC、LIBONIG、LIBZ)和 NGINX。这些组件是 PHP、NGINX 及其他功能正常运行所必需的。

配置

默认配置包含 HTML 和 PHP 端口、服务器 IP、调试选项等设置。请按需调整端口。

# ==============================
# WebPluginV2 Configuration
# Author: JumpWatch
# Discord support: https://discord.gg/9HDFz9vyv4
# ==============================
Settings:
# ── Web Server Ports ──
HTMLPORT: 25567
PHPPort: 25568
LocalFPM: 25569         # Very important if you decide to use PHP.
# ── Server Settings ──
ServerLocation: /home/container/   # Include trailing slash.
IndexLocation: ""                  # Default: "" = /webplugin/php/
ServerIP: localhost                # Used for PHP and HTML via /webp command.
# ── Threading ──
maxThreads: 2
# ── Debug Settings ──
debug: false                        # Shows debug log in /webplugin/logs/.
# ── PHP Settings ──
EnablePHP: false
PHPFolderPermissionFix: false       # Runs `chown -R www-data`, auto disables after run.
# ── Dependencies Reminder ──
# IMPORTANT: If PHP is enabled, the plugin WILL automatically download
# critical system libraries (GLIBC, LIBONIG, LIBZ) from the GitHub repo.
# These libraries are essential for the system to work, and are required
# for PHP, NGINX (Which is also downloaded from the repo),
# and other components to function properly.
# Check further down for info.
# ── HTML Settings ──
EnableHTML: true                  # PHP can also serve HTML.
# ── Auto Key ──
Autokey: false                     # Not functional currently.
# ── NGINX Configuration ──
denyNginxConfigOverride: false
# ── SSL Configuration ──
SSLSettings:
EnableSSL: false
SSLPort: 25570
SSLDomain: play.domain.com
SSLPriv: priv-key.pem
SSLPubl: pub-key.pem
# ── Linux PHP Runtime Settings ──
Linuxphpsettings:
Errorfolder: /errors/            #UNUSED
# ── GitHub Repo Resources ──
GithubWebPluginPHPRepo: https://github.com/hypersmc/WebPluginV2Repo
GithubWebPluginPHPRepoFilename: WebPlugin-linux-PHP8.3-PRECOMPILED.tar.gz
GithubWebPluginNGINXRepoFilename: WebPlugin-linux-NGINX-1.27.1-PRECOMPILED.tar.gz
# ── Internal ──
ConfigVersion: 15                  # DO NOT EDIT
  • 将 HTMLPORT(默认值为 25567)修改为所需端口。

SSL 配置

插件支持 SSL。可启用 SSL、指定端口和域名,并配置 PEM 证书文件。

SSLSettings:
EnableSSL: false
SSLPort: 25570
SSLDomain: domain.com
SSLPriv: private-key.pem
SSLPubl: public-key.pem

Linux PHP 设置

Linuxphpsettings:
Errorfolder: /errors/

命令

  • /WebP:显示服务器 IP 和端口。
  • /WebP help:列出可用命令。
  • /WebP ver:显示插件版本并检查更新。
  • /WebP dev:显示插件开发者信息。
  • /WebP reload:重新加载插件配置。
  • /WebP reset:重置插件配置。
  • /WebP stopweb:停止 PHP Web 服务器。<deprecated>
  • /WebP startweb:启动 PHP Web 服务器。<deprecated>
  • /WebP reloadweb:重新加载 PHP Web 服务器。<deprecated>
  • /WebP uploadlogs <debug:true|false> [includeConfig:true|false] [redactConfig:true|false]:上传日志以便调试。

权限

  • web.show:允许使用 /WebP。
  • web.help:允许使用 /WebP help。
  • web.ver:允许使用 /WebP ver。
  • web.dev:允许使用 /WebP dev。
  • web.reload:允许使用 /WebP reload。
  • web.reset:允许使用 /WebP reset。
  • web.stopweb:允许使用 /WebP stopweb。<deprecated>
  • web.startweb:允许使用 /WebP startweb。<deprecated>
  • web.reloadweb:允许使用 /WebP reloadweb。<deprecated>
  • web.logupload:允许使用 /WebP uploadlogs。
  • web.*:授予所有命令的权限。

支持

  • 加入 Discord Server 获取支持、参与社区交流或提供反馈。
  • BSTATS

Please send the Minecraft plugin documentation you’d like translated.

测试支持版本
1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.20.6 1.21
版本分布
基本信息
插件名称 WebPlugin
作者 humpjump
平台 Bukkit / Spigot
支持版本 1.13 - 1.21
点赞数 未统计
最近版本
暂无数据 -