Guest User

Untitled

a guest
Jun 25th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <?php
  2. // append the command into your local file
  3. $start_position = @filesize("RealDistantCommands.txt");
  4. $f = fopen("RealDistantCommands.txt", "ab");
  5. fwrite($f, "manuadd $player Builder\n");
  6. fwrite($f, "flush\n");
  7. // send it to your Minecraft server
  8. $ftp = ftp_connect("ftpserverip") or die("Connect Fuck'd Up");
  9. if (!ftp_login($ftp, "login", "password")) {
  10. die("Login Fuck'd Up");
  11. } else {
  12. ftp_chdir($ftp, "plugins/RealDistantCommands");
  13. ftp_put($ftp, "RealDistantCommands.txt", "RealDistantCommands.txt", $start_position);
  14. }
  15. // job done
  16. ftp_close($ftp);
  17. fclose($f);
  18. ?>
Add Comment
Please, Sign In to add comment