question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Add Rcon to README] How to send commands and read response

See original GitHub issue

Following my previous issue, I would like to know how can I send commands via a connected client and also read the response of commands?

To send a command I’ve tried client.write('chat', {message: "/summon minecraft:pig"}); but it didn’t work.

This is for my project (https://github.com/GnaspGames/Smelt).

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wtfaremyinitialscommented, Apr 20, 2017

+1 for rcon

Specifically pushrax/node-rcon

0reactions
rom1504commented, Apr 21, 2017

if you get the translation key, you can use translation data to get responses https://github.com/PrismarineJS/minecraft-data/issues/17#issuecomment-217668471

Read more comments on GitHub >

github_iconTop Results From Across the Web

scriptserver - npm
Provides an interface to send commands, use their results, and make use of other things that are displayed in the server console. Initializes...
Read more >
Tutorial: Send a RCON command to a server with PHP
Here's a quick php code which allows you to send a rcon command to a source server. It's not perfect, as the scripts...
Read more >
VB Send Rcon commands and get response back. (CS:GO ...
I am trying to make a connection with a CS:GO game server using Rcon. all I would like to do is send the...
Read more >
Manual API Editor - ReadMe Documentation
After that, describe your API's URL and parameters, then optionally add a response example or two. Be sure to add all the necessary...
Read more >
Arma 3: Dedicated Server - Bohemia Interactive Community Wiki
This page contains useful information on how to install and configure an ARMA ... Steam will have automatically sent you an email with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found