Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // append the command into your local file
- $start_position = @filesize("RealDistantCommands.txt");
- $f = fopen("RealDistantCommands.txt", "ab");
- fwrite($f, "manuadd $player Builder\n");
- fwrite($f, "flush\n");
- // send it to your Minecraft server
- $ftp = ftp_connect("ftpserverip") or die("Connect Fuck'd Up");
- if (!ftp_login($ftp, "login", "password")) {
- die("Login Fuck'd Up");
- } else {
- ftp_chdir($ftp, "plugins/RealDistantCommands");
- ftp_put($ftp, "RealDistantCommands.txt", "RealDistantCommands.txt", $start_position);
- }
- // job done
- ftp_close($ftp);
- fclose($f);
- ?>
Add Comment
Please, Sign In to add comment