Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //variables
- /*********************************** Variables ***********************************/
- /**/ $checkpass = "00101000";
- /*********************************************************************************/
- /**/ $receivedMD5 = $_POST['authKey'];
- /**/ $player = $_POST["player"];
- /**/ $args = $_POST["args"]; //each argument is stored in an array called "args"
- /*********************************************************************************/
- //Do not edit!
- if($receivedMD5 != "" && $args[0] != "")
- {
- if($receivedMD5 == md5($checkpass))
- {
- //Begin your code here.
- if($args[0] == "checkcolors") //script 1
- {
- print('Example script from php.;');
- print('This command will show different possible colors;');
- // use /Chatcolor-red: to set the text of a sentence to red.
- // Other colors are:
- print("/Chatcolor-red:This is red;");
- print("/Chatcolor-green:This is green;");
- print("/Chatcolor-blue:This is blue;");
- print("/Chatcolor-yellow:This is yellow;");
- print("/Chatcolor-white:This is white;");
- print("/Chatcolor-purple:This is purple;");
- print("/Chatcolor-gray:This is gray;");
- print("/Chatcolor-gray:These are /Chatcolor-blue:multiple colors/Chatcolor-red: in one/Chatcolor-purple: sentence;");
- }
- elseif($args[0] == "timeset") //script 2
- {
- print('Success;');
- print('Example script from php.;');
- print('This will set the time of players world to day.;');
- // use /Command/ExecuteBukkitCommand: to indicate a command sent by $player.
- // Behind that line you can put any player chat command.
- print("/Command/ExecuteBukkitCommand:time day;");
- print("Player = ".$player.";");
- print("Argument 1 = ".$args[0].";");
- }
- elseif($args[0] == "weatherset") //script 3
- {
- print('Success;');
- print('Example script from php.;');
- print('This will set the weather of players world to sun.;');
- // use /Command/ExecuteBukkitCommand: to indicate a command sent by $player.
- // Behind that line you can put any player chat command.
- print("/Command/ExecuteBukkitCommand:weather sun;");
- print("Player = ".$player.";");
- print("Argument 1 = ".$args[0].";");
- }
- elseif($args[0] == "consoleCommand") //script 4
- {
- print('Example script from php.;');
- print('This command will send a command to the console.;');
- if($player == 'console')
- {
- print('"Error: Only in-game players can use this command.";');
- }c
- else
- {
- print('Proof it is send to console:;');
- // use /Command/ExecuteConsoleCommand: to indicate a command from console.
- print("/Command/ExecuteConsoleCommand:say Hello World;");
- }
- }
- else
- {
- print('Websend: Unknown command.;');
- }
- //Stop editing here.
- }
- else
- {
- print('Authorization Failed;');
- }
- }
- else
- {
- print("No (enough) data provided.;");
- }
- ?>
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement