FrpPlugin - Minecraft 服务器内网穿透插件
简介
FrpPlugin 是一款用于 Minecraft 服务器的 Bukkit 插件,它集成了 frp 客户端,使服务器管理员能够轻松实现内网穿透功能,允许玩家从外网连接到你的 Minecraft 服务器。
特性
- 自动下载与更新:自动从 GitHub 下载适用于 Windows、Linux 和 Mac 的最新版本 frpc 客户端。
- 镜像加速:内置国内镜像源,解决 GitHub 下载速度慢的问题。
- 配置简单:通过简单的配置文件设置 frpc 参数。
- 命令控制:提供完整的命令系统,支持在游戏中启动、停止和重启 frpc。
- 状态监控:实时监测 frpc 的运行状态。
- 开机自启:服务器启动时自动启动 frpc 服务。
安装
- 下载最新版本的 FrpPlugin.jar 文件
- 将 JAR 文件放入服务器的 plugins 目录中。
- 重启服务器或使用插件管理器加载该插件。
配置说明
插件配置 (config.yml)
## 是否在服务器启动时自动启动 frpc
auto_start: true
# 是否在控制台显示 frpc 的详细日志。
verbose_logging: true
# 下载设置
download.
# 是否在启动时检查更新
check_update: false
# 下载超时时间(秒)
timeout: 30
frpc 配置 (frpc.toml)
# frpc.toml - frp 客户端配置文件
serverAddr = “” # frp 服务器地址
serverPort = # frp 服务器端口
token = “” # 认证令牌
[[proxies]]
name = “” # 代理名称
type = “tcp” # 代理类型
localIP = “127.0.0.1” # 本地 IP
localPort = 25565 # Minecraft 服务器端口
remotePort = # 远程端口
用法
命令列表
/frp start - 启动 frpc 客户端。
/frp stop - 停止 frpc 客户端。
/frp restart - 重启 frpc 客户端。
/frp status - 检查 frpc 的状态。
/frp config - 重新加载配置文件。
权限节点
/frpplugin.admin - 允许使用所有 FrpPlugin 命令(默认由 OP 拥有)
配置示例
使用公共 frp 服务器
``toml
serverAddr = “frp.example.com” # 替换为公共 frp 服务器地址
serverPort = 7000
token = “your_token” # 如果需要
[[proxies]]
name = “minecraft-server”
type = “tcp”
localIP = “127.0.0.1”
localPort = 25565 # 你的 Minecraft 服务器端口
remotePort = 12345 # 分配给你的远程端口
Translated with DeepL.com (free version)
FrpPlugin - Minecraft Server Intranet Penetration Plugin
Introduction
FrpPlugin is a Bukkit plugin for Minecraft servers that integrates with the frp client, enabling server administrators to easily implement intranet penetration functionality, allowing players to connect to your Minecraft server from the extranet.
Features
- Automatic downloads and updates: Automatically downloads the latest version of the frpc client from GitHub for Windows, Linux and Mac.
- Mirror Acceleration: Built-in domestic mirror source to solve the problem of slow download speed of GitHub.
- Simple Configuration: Set frpc parameters through a simple configuration file.
- Command Control: Provides a complete command system to start, stop and restart frpc in-game.
- Status Monitoring: Monitor the status of frpc in real time.
- Autostart: start frpc service automatically when the server starts.
Installation
- download the latest version of FrpPlugin.jar file
- Place the JAR file in the server's plugins directory.
- Restart the server or use the plugin manager to load the plugin.
Configuration instructions
Plugin configuration (config.yml)
## Whether to automatically start frpc when the server starts up
auto_start: true
# Whether or not to display detailed logging of frpc in the console.
verbose_logging: true
# Download settings
download.
# Whether to check for updates on startup
check_update: false
# Download timeout (seconds)
timeout: 30
frpc configuration (frpc.toml)
# frpc.toml - frp client configuration file
serverAddr = “” # frp server address
serverPort = # frp server port
token = “” # Authentication token
[[proxies]]
name = “” # proxy name
type = “tcp” # proxy type
localIP = “127.0.0.1” # Local IP
localPort = 25565 # Minecraft server port
remotePort = # remote port
Usage
List of commands
/frp start - Starts the frpc client.
/frp stop - stops the frpc client
/frp restart - Restarts the frpc client.
/frp status - Checks the status of frpc.
/frp config - Reloads the configuration file.
Privilege nodes
/frpplugin.admin - Allow use of all FrpPlugin commands (owned by default OP)
Configuration example
Use public frp server
``toml
serverAddr = “frp.example.com” # Replace with public frp server address
serverPort = 7000
token = “your_token” # if needed
[[proxies]]
name = “minecraft-server”
type = “tcp”
localIP = “127.0.0.1”
localPort = 25565 # your Minecraft server port
remotePort = 12345 # The remote port assigned to you
Translated with DeepL.com (free version)
评论 0
登录后参与评分
还没有评论,来抢沙发吧