Webchat

插件

· 作者 unticked

一个简单但功能强大的(可配置)插件,允许玩家通过 Web 服务器与服务器上的其他玩家聊天。

0 本站下载 0 关注 更新于 8 个月前

最新 paper-1.0 · 1.21.11 · Paper / Purpur

一键开服(送7天)

WebChat

Webchat 允许玩家通过网页与服务器上的其他玩家进行聊天

功能

  • 端口和绑定地址配置
  • 自定义网页到游戏以及游戏到网页的消息格式
  • 高度可配置的选项
  • 可修改的页面文件

配置

Config
# WebChat Configuration
# Minecraft <-> Web chat bridge

# Web server settings
webserver:
  # Port the built-in HTTP server listens on
  port: 8765
  # Bind address (0.0.0.0 = all interfaces, 127.0.0.1 = localhost only)
  bind-address: "0.0.0.0"
  # Secret token required for POST requests (change this!)
  secret-token: "change-me-please"

# Chat settings
chat:
  # Format for messages sent from the web to in-game
  # Placeholders: {username}, {message}
  web-to-game-format: "&7[&bWeb&7] &f{username}&7: &f{message}"
  # Format for messages sent from in-game shown on web
  # Placeholders: {username}, {message}
  game-to-web-format: "{username}: {message}"
  # Maximum message length allowed from web clients
  max-message-length: 256
  # Maximum username length for web clients
  max-username-length: 16
  # Minimum username length for web clients
  min-username-length: 3
  # How many messages to keep in history (shown to new web visitors)
  history-size: 100

# Usernames that web clients are NOT allowed to use
# (to prevent impersonation of admins, etc.)
blocked-usernames:
  - "Console"
  - "Server"
  - "Admin"
  - "Notch"
  - "Herobrine"

# Long-polling timeout in seconds (how long the server holds open a poll request)
poll-timeout-seconds: 30

Demo

Demonstation of the plugins features

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源