Advertisement
Guest User

minecraft.php

a guest
Apr 24th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. <?php
  2. //variables
  3. /*********************************** Variables ***********************************/
  4. /**/ $checkpass = "00101000";
  5. /*********************************************************************************/
  6. /**/ $receivedMD5 = $_POST['authKey'];
  7. /**/ $player = $_POST["player"];
  8. /**/ $args = $_POST["args"]; //each argument is stored in an array called "args"
  9. /*********************************************************************************/
  10.  
  11.  
  12. //Do not edit!
  13. if($receivedMD5 != "" && $args[0] != "")
  14. {
  15. if($receivedMD5 == md5($checkpass))
  16. {
  17. //Begin your code here.
  18.  
  19.  
  20. if($args[0] == "checkcolors") //script 1
  21. {
  22. print('Example script from php.;');
  23. print('This command will show different possible colors;');
  24. // use /Chatcolor-red: to set the text of a sentence to red.
  25. // Other colors are:
  26. print("/Chatcolor-red:This is red;");
  27. print("/Chatcolor-green:This is green;");
  28. print("/Chatcolor-blue:This is blue;");
  29. print("/Chatcolor-yellow:This is yellow;");
  30. print("/Chatcolor-white:This is white;");
  31. print("/Chatcolor-purple:This is purple;");
  32. print("/Chatcolor-gray:This is gray;");
  33. print("/Chatcolor-gray:These are /Chatcolor-blue:multiple colors/Chatcolor-red: in one/Chatcolor-purple: sentence;");
  34. }
  35. elseif($args[0] == "timeset") //script 2
  36. {
  37. print('Success;');
  38. print('Example script from php.;');
  39. print('This will set the time of players world to day.;');
  40. // use /Command/ExecuteBukkitCommand: to indicate a command sent by $player.
  41. // Behind that line you can put any player chat command.
  42. print("/Command/ExecuteBukkitCommand:time day;");
  43. print("Player = ".$player.";");
  44. print("Argument 1 = ".$args[0].";");
  45. }
  46. elseif($args[0] == "weatherset") //script 3
  47. {
  48. print('Success;');
  49. print('Example script from php.;');
  50. print('This will set the weather of players world to sun.;');
  51. // use /Command/ExecuteBukkitCommand: to indicate a command sent by $player.
  52. // Behind that line you can put any player chat command.
  53. print("/Command/ExecuteBukkitCommand:weather sun;");
  54. print("Player = ".$player.";");
  55. print("Argument 1 = ".$args[0].";");
  56. }
  57. elseif($args[0] == "consoleCommand") //script 4
  58. {
  59. print('Example script from php.;');
  60. print('This command will send a command to the console.;');
  61. if($player == 'console')
  62. {
  63. print('"Error: Only in-game players can use this command.";');
  64. }c
  65. else
  66. {
  67. print('Proof it is send to console:;');
  68. // use /Command/ExecuteConsoleCommand: to indicate a command from console.
  69. print("/Command/ExecuteConsoleCommand:say Hello World;");
  70. }
  71. }
  72. else
  73. {
  74. print('Websend: Unknown command.;');
  75. }
  76.  
  77.  
  78. //Stop editing here.
  79. }
  80. else
  81. {
  82. print('Authorization Failed;');
  83. }
  84. }
  85. else
  86. {
  87. print("No (enough) data provided.;");
  88. }
  89. ?>
  90. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement