PHP-Minecraft-Rcon icon indicating copy to clipboard operation
PHP-Minecraft-Rcon copied to clipboard

Can send only "say hello world!"

Open t-constanta404 opened this issue 3 years ago • 13 comments

My site can send only "say hello world!" and "bc {msg}" Other command in console send this:

Rcon connection from: /195.60.229.4 What i can do? Tell me pls!

Code: http://timpixel-drive.ddns.net/uploades/Timpixel2020/this111.txt

t-constanta404 avatar Apr 29 '21 20:04 t-constanta404

What commands are you trying to send exactly?

ricardoboss avatar Apr 30 '21 01:04 ricardoboss

What commands are you trying to send exactly?

Example: /pex /tell and more

t-constanta404 avatar Apr 30 '21 06:04 t-constanta404

Do they work when you put them in a command block?

ricardoboss avatar Apr 30 '21 11:04 ricardoboss

Do they work when you put them in a command block?

yes

t-constanta404 avatar Apr 30 '21 17:04 t-constanta404

I haven't touched this code in a while...

Looking at old code, I have this as how I started using the class. Hope this helps..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Ark's Rcon can also be used with this, for those wondering.

SomKen avatar Apr 30 '21 19:04 SomKen

I haven't touched this code in a while...

Looking at old code, I have this as how I started using the class. Hope this helps..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Ark's Rcon can also be used with this, for those wondering.

I don't want to upset you ... but

  1. It doesn't work
  2. After this class, my OpenServer crashed

t-constanta404 avatar Apr 30 '21 19:04 t-constanta404

I haven't touched this code in a while... Looking at old code, I have this as how I started using the class. Hope this helps..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Ark's Rcon can also be used with this, for those wondering.

I don't want to upset you ... but

1. It doesn't work

2. After this class, my OpenServer crashed

Please dear god... you didn't include the "..." did you? If this is complicated, maybe start with a note taking app... >_>

SomKen avatar Apr 30 '21 19:04 SomKen

Я давно не касался этого кода ... Глядя на старый код, я понимаю, как я начал использовать этот класс. Надеюсь это поможет..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Для тех, кому интересно, с этим также можно использовать Ark's Rcon.

Я не хочу тебя расстраивать ... но

1. It doesn't work

2. After this class, my OpenServer crashed

Пожалуйста, дорогой бог ... ты не включил "...", не так ли? Если это сложно, можно начать с приложения для заметок ...> _>

I haven't touched this code in a while... Looking at old code, I have this as how I started using the class. Hope this helps..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Ark's Rcon can also be used with this, for those wondering.

I don't want to upset you ... but

1. It doesn't work

2. After this class, my OpenServer crashed

Please dear god... you didn't include the "..." did you? If this is complicated, maybe start with a note taking app... >_>

How i can sebd command from this class?

t-constanta404 avatar Apr 30 '21 19:04 t-constanta404

Я давно не касался этого кода ... Глядя на старый код, я понимаю, как я начал использовать этот класс. Надеюсь это поможет..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Для тех, кому интересно, с этим также можно использовать Ark's Rcon.

Я не хочу тебя расстраивать ... но

1. It doesn't work

2. After this class, my OpenServer crashed

Пожалуйста, дорогой бог ... ты не включил "...", не так ли? Если это сложно, можно начать с приложения для заметок ...> _>

I haven't touched this code in a while... Looking at old code, I have this as how I started using the class. Hope this helps..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Ark's Rcon can also be used with this, for those wondering.

I don't want to upset you ... but

1. It doesn't work

2. After this class, my OpenServer crashed

Please dear god... you didn't include the "..." did you? If this is complicated, maybe start with a note taking app... >_>

How i can sebd command from this class?

I'd suggest reading the rcon class' code... It shows you how to connect / send stuff. My example is for example reasons only. I really thinking this is a pebcak...

If you want help, please share all of your code you're having issues with, but please review my above example...

SomKen avatar Apr 30 '21 19:04 SomKen

Я давно не касался этого кода ... Глядя на старый код, я понимаю, как я начал использовать этот класс. Надеюсь это поможет..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Для тех, кому интересно, с этим также можно использовать Ark's Rcon.

Я не хочу тебя расстраивать ... но

1. It doesn't work

2. After this class, my OpenServer crashed

Пожалуйста, дорогой бог ... ты не включил "...", не так ли? Если это сложно, можно начать с приложения для заметок ...> _>

I haven't touched this code in a while... Looking at old code, I have this as how I started using the class. Hope this helps..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Ark's Rcon can also be used with this, for those wondering.

I don't want to upset you ... but

1. It doesn't work

2. After this class, my OpenServer crashed

Please dear god... you didn't include the "..." did you? If this is complicated, maybe start with a note taking app... >_>

How i can sebd command from this class?

I'd suggest reading the rcon class' code... It shows you how to connect / send stuff. My example is for example reasons only. I really thinking this is a pebcak...

If you want help, please share all of your code you're having issues with, but please review my above example...

Sorry, but this isn't work! I need any other.

t-constanta404 avatar May 01 '21 06:05 t-constanta404

Я давно не касался этого кода ... Глядя на старый код, я понимаю, как я начал использовать этот класс. Надеюсь это поможет..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Для тех, кому интересно, с этим также можно использовать Ark's Rcon.

Я не хочу тебя расстраивать ... но

1. It doesn't work

2. After this class, my OpenServer crashed

Пожалуйста, дорогой бог ... ты не включил "...", не так ли? Если это сложно, можно начать с приложения для заметок ...> _>

I haven't touched this code in a while... Looking at old code, I have this as how I started using the class. Hope this helps..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Ark's Rcon can also be used with this, for those wondering.

I don't want to upset you ... but

1. It doesn't work

2. After this class, my OpenServer crashed

Please dear god... you didn't include the "..." did you? If this is complicated, maybe start with a note taking app... >_>

How i can sebd command from this class?

I'd suggest reading the rcon class' code... It shows you how to connect / send stuff. My example is for example reasons only. I really thinking this is a pebcak... If you want help, please share all of your code you're having issues with, but please review my above example...

Sorry, but this isn't work! I need any other.

The code I included WONT work directly as it's "pseudo code." While my provided function DOES work, that's it. It's all an example.

share your code if you really want help. DM me if you want me to look and not shrea.

SomKen avatar May 03 '21 16:05 SomKen

Я давно не касался этого кода ... Глядя на старый код, я понимаю, как я начал использовать этот класс. Надеюсь это поможет..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Для тех, кому интересно, с этим также можно использовать Ark's Rcon.

Я не хочу тебя расстраивать ... но

1. It doesn't work

2. After this class, my OpenServer crashed

Пожалуйста, дорогой бог ... ты не включил "...", не так ли? Если это сложно, можно начать с приложения для заметок ...> _>

I haven't touched this code in a while... Looking at old code, I have this as how I started using the class. Hope this helps..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Ark's Rcon can also be used with this, for those wondering.

I don't want to upset you ... but

1. It doesn't work

2. After this class, my OpenServer crashed

Please dear god... you didn't include the "..." did you? If this is complicated, maybe start with a note taking app... >_>

How i can sebd command from this class?

I'd suggest reading the rcon class' code... It shows you how to connect / send stuff. My example is for example reasons only. I really thinking this is a pebcak... If you want help, please share all of your code you're having issues with, but please review my above example...

Sorry, but this isn't work! I need any other.

The code I included WONT work directly as it's "pseudo code." While my provided function DOES work, that's it. It's all an example.

share your code if you really want help. DM me if you want me to look and not shrea.

This code doesn't work! Site share me error 500! What to do?

t-constanta404 avatar May 04 '21 06:05 t-constanta404

Я давно не касался этого кода ... Глядя на старый код, я понимаю, как я начал использовать этот класс. Надеюсь это поможет..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Для тех, кому интересно, с этим также можно использовать Ark's Rcon.

Я не хочу тебя расстраивать ... но

1. It doesn't work

2. After this class, my OpenServer crashed

Пожалуйста, дорогой бог ... ты не включил "...", не так ли? Если это сложно, можно начать с приложения для заметок ...> _>

I haven't touched this code in a while... Looking at old code, I have this as how I started using the class. Hope this helps..

<?php
require_once("rcon.php");

// Ark Settins
define('ARK_HOST', '192.168.1.1');
define('ARK_PORT', '32330');
define('ARK_PASSWORD', 'lolno');
define('ARK_TIMEOUT', '3');
...
...
function connectRcon(){
  $rcon = new Rcon(ARK_HOST, ARK_PORT, ARK_PASSWORD, ARK_TIMEOUT);
  $rcon->connect();
  return $rcon;
}
...
?>

Ark's Rcon can also be used with this, for those wondering.

I don't want to upset you ... but

1. It doesn't work

2. After this class, my OpenServer crashed

Please dear god... you didn't include the "..." did you? If this is complicated, maybe start with a note taking app... >_>

How i can sebd command from this class?

I'd suggest reading the rcon class' code... It shows you how to connect / send stuff. My example is for example reasons only. I really thinking this is a pebcak... If you want help, please share all of your code you're having issues with, but please review my above example...

Sorry, but this isn't work! I need any other.

The code I included WONT work directly as it's "pseudo code." While my provided function DOES work, that's it. It's all an example. share your code if you really want help. DM me if you want me to look and not shrea.

This code doesn't work! Site share me error 500! What to do?

I need you to reread my comment and try to understand my first point,

SomKen avatar May 07 '21 17:05 SomKen