thedudeguy / PHP-Minecraft-Rcon

Simple Rcon class for php.
MIT License
155 stars 54 forks source link

Can send only "say hello world!" #34

Open t-constanta404 opened 3 years ago

t-constanta404 commented 3 years ago

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

ricardoboss commented 3 years ago

What commands are you trying to send exactly?

t-constanta404 commented 3 years ago

What commands are you trying to send exactly?

Example: /pex /tell and more

ricardoboss commented 3 years ago

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

t-constanta404 commented 3 years ago

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

yes

SomKen commented 3 years ago

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.

t-constanta404 commented 3 years ago

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
SomKen commented 3 years ago

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... >_>

t-constanta404 commented 3 years ago

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

<?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?

SomKen commented 3 years ago

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

<?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...

t-constanta404 commented 3 years ago

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

<?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.

SomKen commented 3 years ago

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

<?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.

t-constanta404 commented 3 years ago

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

<?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?

SomKen commented 3 years ago

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

<?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,