Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- execute console command "/runbashcommand cp /root/sniper/template.php /root/sniper/%{temp.%player%.desiredacctname}%.php"
- wait 5 ticks
- execute console command "/runbashcommand cp /root/sniper/template.html /root/sniper/%{temp.%player%.desiredacctname}%.html"
- wait 5 ticks
- message "&3[&aDebug&3]&d Directory /sniper/queue/%{temp.%player%.desiredacctname}% exists! Securing info now..."
- # I cba to implement security. We'll just say that to keep the customers happy....
- wait 10 ticks
- set {_uuid} to uuid of "%{temp.%player%.currentacctname}%" parsed as offline player
- message "&3[&aDebug&3]&d Data Secured."
- wait 5 ticks
- message "&3[&aDebug&3]&d Loading info into the sniper... (This could take 5+ seconds.)"
- message "&3[&aDebug&3]&7 Detected UUID:&9 %{_uuid}%"
- set {_usercheck-url} to text from url "https://api.mojang.com/users/profiles/minecraft/%{temp.%player%.desiredacctname}%"
- set {_usercheck::*} to {_usercheck-url} split at ","
- set {_usercheck2::*} to {_usercheck::1} split at ":"
- set {_usercheck3::*} to {_usercheck2::2} split at """"
- set {_prevnames} to text from url "https://api.mojang.com/user/profiles/%{_usercheck3::2}%/names"
- set {_prevnames2::*} to {_prevnames} split at ","
- set {_OldName} to "%{_prevnames2::3}%"
- set {_nameOld::*} to {_oldName} split at ":"
- set {_NameOldSingle} to {_nameOld::2}
- replace """" in {_nameOldSingle} with ""
- replace "}" in {_nameOld::2} with ""
- replace "]" in {_nameOldSingle} with ""
- set {_timetosniper} to {_nameOld::2} parsed as number
- add 3196800 to {_timetosniper}
- set {_timetosnipe} to convert unix "%{_timetosniper}%" to date formated as "yyyy-MM-dd HH:mm:ss"
- message "&3[&aSniper&3]&7 Chearful's og sniper will snipe @ %{_timetosnipe}%"
- 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."
- execute console command "/setline /root/sniper/%{temp.%player%.desiredacctname}%.php 9 $newName = '%{temp.%player%.desiredacctname}%'; //Desired new username"
- execute console command "/setline /root/sniper/%{temp.%player%.desiredacctname}%.php 8 $accountPassword = '%{temp.%player%.mojangpassword}%'; //Current account password"
- execute console command "/setline /root/sniper/%{temp.%player%.desiredacctname}%.php 7 $accountUsername = '%{temp.%player%.currentacctname}%'; //Current in-game Minecraft username"
- execute console command "/setline /root/sniper/%{temp.%player%.desiredacctname}%.php 6 $accountLoginName = '%{temp.%player%.mojangemail}%'; //Current login username/email for Mojang.com"
- execute console command "/setline /root/sniper/%{temp.%player%.desiredacctname}%.php 5 date_default_timezone_set('EST');"
- message "&3[&aDebug&3]&d It looks like we've uploaded all the data to the sniper."
- message "&3[&aDebug&3]&d Sprinkling Chearful's fairy dust on the sniper now! :D"
- execute console command "/runbashcmd php -f /root/sniper/%{temp.%player%.desiredacctname}%.php > output_%{temp.%player%.desiredacctname}% &"
- message "&3[&aDebug&3]&d Fairy dust sprinkled!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement