Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. execute console command "/runbashcommand cp /root/sniper/template.php /root/sniper/%{temp.%player%.desiredacctname}%.php"
  2. wait 5 ticks
  3. execute console command "/runbashcommand cp /root/sniper/template.html /root/sniper/%{temp.%player%.desiredacctname}%.html"
  4. wait 5 ticks
  5. message "&3[&aDebug&3]&d Directory /sniper/queue/%{temp.%player%.desiredacctname}% exists! Securing info now..."
  6. # I cba to implement security. We'll just say that to keep the customers happy....
  7. wait 10 ticks
  8. set {_uuid} to uuid of "%{temp.%player%.currentacctname}%" parsed as offline player
  9. message "&3[&aDebug&3]&d Data Secured."
  10. wait 5 ticks
  11. message "&3[&aDebug&3]&d Loading info into the sniper... (This could take 5+ seconds.)"
  12. message "&3[&aDebug&3]&7 Detected UUID:&9 %{_uuid}%"
  13. set {_usercheck-url} to text from url "https://api.mojang.com/users/profiles/minecraft/%{temp.%player%.desiredacctname}%"
  14. set {_usercheck::*} to {_usercheck-url} split at ","
  15. set {_usercheck2::*} to {_usercheck::1} split at ":"
  16. set {_usercheck3::*} to {_usercheck2::2} split at """"
  17. set {_prevnames} to text from url "https://api.mojang.com/user/profiles/%{_usercheck3::2}%/names"
  18. set {_prevnames2::*} to {_prevnames} split at ","
  19. set {_OldName} to "%{_prevnames2::3}%"
  20. set {_nameOld::*} to {_oldName} split at ":"
  21. set {_NameOldSingle} to {_nameOld::2}
  22. replace """" in {_nameOldSingle} with ""
  23. replace "}" in {_nameOld::2} with ""
  24. replace "]" in {_nameOldSingle} with ""
  25. set {_timetosniper} to {_nameOld::2} parsed as number
  26. add 3196800 to {_timetosniper}
  27. set {_timetosnipe} to convert unix "%{_timetosniper}%" to date formated as "yyyy-MM-dd HH:mm:ss"
  28. message "&3[&aSniper&3]&7 Chearful's og sniper will snipe @ %{_timetosnipe}%"
  29. execute console command "/setline /root/sniper/%{temp.%player%.desiredacctname}%.php 10 $time = '%{_timetosnipe}%'; //Set the time that the account name should change. YYYY-MM-DD HH:MM:SS format."
  30. execute console command "/setline /root/sniper/%{temp.%player%.desiredacctname}%.php 9 $newName = '%{temp.%player%.desiredacctname}%'; //Desired new username"
  31. execute console command "/setline /root/sniper/%{temp.%player%.desiredacctname}%.php 8 $accountPassword = '%{temp.%player%.mojangpassword}%'; //Current account password"
  32. execute console command "/setline /root/sniper/%{temp.%player%.desiredacctname}%.php 7 $accountUsername = '%{temp.%player%.currentacctname}%'; //Current in-game Minecraft username"
  33. execute console command "/setline /root/sniper/%{temp.%player%.desiredacctname}%.php 6 $accountLoginName = '%{temp.%player%.mojangemail}%'; //Current login username/email for Mojang.com"
  34. execute console command "/setline /root/sniper/%{temp.%player%.desiredacctname}%.php 5 date_default_timezone_set('EST');"
  35. message "&3[&aDebug&3]&d It looks like we've uploaded all the data to the sniper."
  36. message "&3[&aDebug&3]&d Sprinkling Chearful's fairy dust on the sniper now! :D"
  37. execute console command "/runbashcmd php -f /root/sniper/%{temp.%player%.desiredacctname}%.php > output_%{temp.%player%.desiredacctname}% &"
  38. message "&3[&aDebug&3]&d Fairy dust sprinkled!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement