WebSocket remote console for PocketMine (an RCON Alternative)

version 1.1.0

9 downloads ยท 0 stars

Published 4 Feb 2026 from CelticTrinculo/wsRCON at e23e0e679748d36af4b9e0a0358405e073020273, after moderator review.

Plugin description

WebSocket Console Plugin for PocketMine-MP

A complete WebSocket implementation for remote server console access with zero external dependencies.

๐Ÿš€ Features

  • ๐Ÿ” Password Authentication - Secure your console access
  • ๐Ÿ“ก Real-time Communication - Instant command execution and responses
  • ๐ŸŽฏ Event Broadcasting - Player joins, quits, chat, deaths, and server commands
  • ๐Ÿ‘ฅ Multiple Clients - Support for concurrent WebSocket connections
  • โš™๏ธ Configurable - Easy setup via config.yml
  • ๐Ÿ›ก๏ธ Session Management - Secure authentication per connection
  • ๐Ÿ“ Debug Logging - Optional detailed logging for troubleshooting
  • ๐Ÿ”ง Pure PHP - No external libraries or Composer packages required

๐ŸŒ Online interface:

I've made an interface for this plugin, that can be found over at https://hbidamian.github.io/wsRCON/.

Important Note: SSL/TLS isn't set up in the plugin, and I quite honestly cba setting it up. So if you wish to use the WSRcon, you must self host it, and make sure the url protocol is "HTTP", not "HTTPS" in order for it to connect to ws://Your.Server.

If you want to self host your own interface, you can grab it from https://github.com/HBIDamian/wsRCON/tree/webconsole

โš™๏ธ Configuration

After the first startup, the plugin will create a config file at: plugins/wsRCON/config.yml

Edit this file to customize your settings:

#โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
#                         WebSocket Console Configuration
#โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

# ๐Ÿ” Authentication Password
# This will be automatically generated on first run for security
websocket-password: "change_this_password_123"

# ๐ŸŒ Server Port
# Set to "default" (with quotations) to use the server's current port, or specify a port number (Ex: 19132)
websocket-port: "default"

# ๐Ÿ  Server Host
# Default: 0.0.0.0 for all interfaces
websocket-host: "0.0.0.0"

# ๐Ÿ› Debug Mode
# Enable debug logging (useful for troubleshooting)
debug-logging: false

# ๐Ÿ‘ฅ Connection Limit
# Maximum number of concurrent WebSocket connections
max-connections: 10

#โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
#                                   Notes
#โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

# โš ๏ธ  IMPORTANT: Restart your PocketMine server after changing this configuration

#โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
#                              Password Examples
#โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

# ๐Ÿ’ก Strong password examples:
# websocket-password: "Random_Words-789"
# websocket-password: "WebSocket@Admin#2025"
# websocket-password: "WA%5e6vPF3JHL!"

# โš ๏ธ  For no authentication (SECURITY RISK):
# websocket-password: ""

๐Ÿ“ก Supported Events

The plugin broadcasts the following server events to all authenticated clients:

  • ๐Ÿ‘‹ Player Join/Quit - When players connect or disconnect
  • ๐Ÿ’ฌ Player Chat - All chat messages
  • ๐Ÿ’€ Player Deaths - Death messages
  • โŒจ๏ธ Console Commands - Commands executed in server console

๐Ÿ› ๏ธ Troubleshooting

Plugin Won't Start

  1. Port in use : Change websocket-port in config.yml
  2. Permission denied : Check server file permissions
  3. Firewall : Ensure the port is open

Can't Connect

  1. Wrong host/port : Verify connection settings
  2. Firewall : Check if port is blocked
  3. Authentication : Verify password is correct

Commands Not Working

  1. Not authenticated : Check password
  2. Insufficient permissions : Plugin runs with OP permissions
  3. Invalid command : Use help to see available commands

๐Ÿ“Š Debug Mode

This is meant for troubleshooting and development purposes. You most likely need to use it unless you like to tinker with the code directly

debug-logging: true

This will log:

  • Connection attempts
  • Authentication events
  • Message broadcasts
  • Client disconnections

๐Ÿค Contributing

This plugin is open source and contributions are welcome! Or if you have a better implementation idea, feel free to share it, and overtake this plugin with your own!

๐Ÿ“„ License

Apache License 2.0 - See LICENSE file for details.


Made with โค๏ธ for the PocketMine community

Installing it

Drop the phar into plugins/ and restart the server. If the API version below does not match your server, the plugin will refuse to load, which is the check working as intended.

Installing plugins

Releases

VersionAPIBuilt
1.1.05.0.04 Feb 2026 ยท 26 KB

SHA-256 of 1.1.0b333b48cdff1600140daece5fbc866f010ae0d15c3c5f41feda93a8135528007

Reviewed by a moderator before publishing. Built from CelticTrinculo/wsRCON at e23e0e679748d36af4b9e0a0358405e073020273. Nobody reviews plugin code here: read the source before running it on a server you care about.

Comments

Sign in with GitHub to star this plugin or leave a comment.

No comments yet.