Webchat
作者:rebot | 分类:模组
Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11
平台: paper purpur
标签: cursed social technology
WebChat
Webchat allows players to chat with players that are on the server via a webpage
Features
- Port and bind address config
- Custom web-to-game and game-to-web message format
- Very customizable config
- Modifiable page files
Config
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

请登录后举报
暂无评论,抢个沙发吧~