{"id":147453,"date":"2026-06-08T23:16:51","date_gmt":"2026-06-08T20:16:51","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/"},"modified":"2026-06-08T23:16:51","modified_gmt":"2026-06-08T20:16:51","slug":"spywebsocket","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/","title":{"rendered":"SpyWebSocket"},"content":{"rendered":"<p>\ud83d\udce1 SpyWebSocket<\/p>\n<p>SpyWebSocket is a lightweight Paper plugin that exposes a secure WebSocket API for remotely interacting with a Minecraft server.<\/p>\n<p>It allows external programs (such as Python scripts, bots, or automation tools) to authenticate, execute console commands, and retrieve live player data in real time using structured JSON messages.<\/p>\n<p>This plugin is designed for local or trusted network usage and focuses on simplicity, flexibility, and thread safety.<\/p>\n<p>\u2728 Features<\/p>\n<p>\ud83d\udd10 Authentication system<br \/>\nClients must authenticate before accessing any functionality.<\/p>\n<p>\ud83d\udce1 Built-in WebSocket server<br \/>\nNo proxies or external services required.<\/p>\n<p>\ud83e\uddf5 Thread-safe command execution<br \/>\nAll commands are dispatched on the Minecraft main thread.<\/p>\n<p>\ud83d\udccd Live player coordinates API<br \/>\nRetrieve world and position data for all online players.<\/p>\n<p>\u2699\ufe0f Fully configurable<br \/>\nHost, port, username, and password are configurable via config.yml.<\/p>\n<p>\ud83e\udde9 JSON-based protocol<br \/>\nSimple, human-readable messages for easy integration.<\/p>\n<p>\u2699\ufe0f Configuration (config.yml)<br \/>\nwebsocket:<br \/>\n  host: 127.0.0.1<br \/>\n  port: 8765<br \/>\n  username: admin<br \/>\n  password: strongpassword<\/p>\n<p>\u26a0\ufe0f Security warning:<br \/>\nKeep the server bound to 127.0.0.1 or protect it with a firewall.<br \/>\nThis plugin allows remote console command execution.<\/p>\n<p>\ud83d\udd10 Authentication<\/p>\n<p>Clients must authenticate first before using any other action.<\/p>\n<p>\u27a4 Request<br \/>\n&#8220;`<br \/>\n{<br \/>\n  &#8220;type&#8221;: &#8220;auth&#8221;,<br \/>\n  &#8220;username&#8221;: &#8220;admin&#8221;,<br \/>\n  &#8220;password&#8221;: &#8220;strongpassword&#8221;<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>\u27a4 Success Response<br \/>\n&#8220;`<br \/>\n{<br \/>\n  &#8220;type&#8221;: &#8220;auth_ok&#8221;<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>\u27a4 Failure Response<br \/>\n&#8220;`<br \/>\n{<br \/>\n  &#8220;type&#8221;: &#8220;auth_fail&#8221;<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>\ud83e\uddfe Execute Console Commands<\/p>\n<p>Executes a command as the server console.<\/p>\n<p>\u27a4 Request<br \/>\n&#8220;`<br \/>\n{<br \/>\n  &#8220;type&#8221;: &#8220;command&#8221;,<br \/>\n  &#8220;command&#8221;: &#8220;say Hello from WebSocket&#8221;<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>Commands are executed safely on the main server thread.<\/p>\n<p>\ud83d\udccd Get Online Player Coordinates<\/p>\n<p>Returns position and world data for all online players.<\/p>\n<p>\u27a4 Request<br \/>\n&#8220;`<br \/>\n{<br \/>\n  &#8220;type&#8221;: &#8220;get_players&#8221;<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>\u27a4 Response<br \/>\n&#8220;`<br \/>\n{<br \/>\n  &#8220;type&#8221;: &#8220;players&#8221;,<br \/>\n  &#8220;players&#8221;: {<br \/>\n    &#8220;Notch&#8221;: {<br \/>\n      &#8220;x&#8221;: 123.45,<br \/>\n      &#8220;y&#8221;: 64.0,<br \/>\n      &#8220;z&#8221;: -98.32,<br \/>\n      &#8220;world&#8221;: &#8220;world&#8221;<br \/>\n    },<br \/>\n    &#8220;Steve&#8221;: {<br \/>\n      &#8220;x&#8221;: -20.0,<br \/>\n      &#8220;y&#8221;: 70.0,<br \/>\n      &#8220;z&#8221;: 45.1,<br \/>\n      &#8220;world&#8221;: &#8220;world_nether&#8221;<br \/>\n    }<br \/>\n  }<br \/>\n}<br \/>\n&#8220;`<br \/>\n\u274c Error Responses<\/p>\n<p>If a request is invalid or unauthorized, the server responds with:<br \/>\n&#8220;`<br \/>\n{<br \/>\n  &#8220;type&#8221;: &#8220;error&#8221;,<br \/>\n  &#8220;reason&#8221;: &#8220;not_authenticated&#8221;<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>Common error reasons:<\/p>\n<p>invalid_json<\/p>\n<p>missing_type<\/p>\n<p>unknown_type<\/p>\n<p>not_authenticated<\/p>\n<p>\ud83e\udde0 Use Cases<\/p>\n<p>Python-controlled Minecraft automation<\/p>\n<p>Admin dashboards or monitoring tools<\/p>\n<p>Twitch \/ chat integrations<\/p>\n<p>Live overlays or external UIs<\/p>\n<p>Custom moderation tools<\/p>\n<p>\ud83d\udee1\ufe0f Security Notes<\/p>\n<p>Only authenticated clients can issue commands or access data<\/p>\n<p>Intended for trusted environments<\/p>\n<p>Not recommended for public-facing servers without additional protection<\/p>\n<p>\ud83d\udccc Compatibility<\/p>\n<p>Platform: Paper<\/p>\n<p>Minecraft version: 1.21+<\/p>\n<p>Java version: 21<\/p>\n<p>Dependency handling: Shaded (Shadow JAR)<\/p>\n<p>\u26a0\ufe0f Disclaimer<\/p>\n<p>This plugin enables remote execution of server console commands.<br \/>\nUse responsibly and only on servers you trust.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SpyWebSocket is a lightweight Paper plugin that exposes a secure WebSocket API for remotely interacting with a Minecraft server.<\/p>\n","protected":false},"featured_media":147454,"template":"","meta":{"_minecraft_slug":"spywebsocket","_minecraft_project_id":"eM2Lunct","_minecraft_author":"Spy-1345a","_minecraft_license":"LGPL-3.0-only","_minecraft_downloads":11,"_minecraft_follows":1,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"spywebsocket.zip","_minecraft_size_bytes":182356,"_minecraft_version_count":1,"_minecraft_updated_at":"2026-05-15T23:06:22.015007Z","_minecraft_date_created":"2026-02-10T00:44:13.783936Z","_minecraft_date_modified":"2026-02-08T06:51:36.958566Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/spywebsocket","_minecraft_icon_attachment_id":147454,"_minecraft_imported_at":"2026-06-08T20:16:56+00:00","_minecraft_import_hash":"af7a601a5e85f5e8601d2e2fab3e6863","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[124,89,126,127,129,123,92],"mod_loader":[130,132,134],"minecraft_version":[62,37,40,41,73,74,38,78,79,80,81,82],"class_list":["post-147453","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-bukkit","mod_category-game-mechanics","mod_category-management","mod_category-paper","mod_category-spigot","mod_category-technology","mod_category-utility","mod_loader-bukkit","mod_loader-paper","mod_loader-spigot","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-11","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8","minecraft_version-1-21-9"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SpyWebSocket - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SpyWebSocket - Minecraft\" \/>\n<meta property=\"og:description\" content=\"SpyWebSocket is a lightweight Paper plugin that exposes a secure WebSocket API for remotely interacting with a Minecraft server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/spywebsocket\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/spywebsocket\\\/\",\"name\":\"SpyWebSocket - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/spywebsocket\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/spywebsocket\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/spywebsocket-icon-758da7bb6164ee0f4f806689b3db101d387276a7_96.webp\",\"datePublished\":\"2026-06-08T20:16:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/spywebsocket\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/spywebsocket\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/spywebsocket\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/spywebsocket-icon-758da7bb6164ee0f4f806689b3db101d387276a7_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/spywebsocket-icon-758da7bb6164ee0f4f806689b3db101d387276a7_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/spywebsocket\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"SpyWebSocket\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SpyWebSocket - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/","og_locale":"en_US","og_type":"article","og_title":"SpyWebSocket - Minecraft","og_description":"SpyWebSocket is a lightweight Paper plugin that exposes a secure WebSocket API for remotely interacting with a Minecraft server.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/","name":"SpyWebSocket - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/spywebsocket-icon-758da7bb6164ee0f4f806689b3db101d387276a7_96.webp","datePublished":"2026-06-08T20:16:51+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/spywebsocket-icon-758da7bb6164ee0f4f806689b3db101d387276a7_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/spywebsocket-icon-758da7bb6164ee0f4f806689b3db101d387276a7_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/spywebsocket\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"SpyWebSocket"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/147453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/147454"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=147453"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=147453"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=147453"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=147453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}