So I want to mess around with players that have a cracked game. Things like randomly moving them and I can't figure out how to detect if they are a premium user. Is there maybe an API where I send a packet to mojang servers with a username and response is if the username is in the premium list?
Rollback Post to RevisionRollBack
Not doing mc modding that much anymore because I am making a full blown game that does not have limitations that mc has. (rip Magiology for now)
I may come back if MC fixes it's rendering pipeline.
Now I have looked into GameProfile and the legacy variable seems to be false at the all times! I am guessing that from looking at the code no setter and it's private. And I can't really find any place where it would be set via reflection. Sooo could someone explain how it works?
Rollback Post to RevisionRollBack
Not doing mc modding that much anymore because I am making a full blown game that does not have limitations that mc has. (rip Magiology for now)
I may come back if MC fixes it's rendering pipeline.
I have gone all out and made a PremiumHandeler. It works really good from what I can test!
But there is one little thing that is bugging me a little bit. I am using if(InetAddress.getByName("minecraft.net")!=null) to check if there is internet access. Is there maybe a value provided by mc that serves as "mc has access to internet"?
this will check if google is available but not if the minecraft login service is online (that can be useful in your case because premium players can't get access token in that case and will be considered offline players)
The Meaning of Life, the Universe, and Everything.
Join Date:
8/9/2013
Posts:
211
Minecraft:
HappyKiller1O1
Xbox:
HappyKiller101
Member Details
Cracked players can use any non-cracked name, and play as them. That is why servers have "online-mode" in the properties file, this detects if the player is cracked (telling Minecraft they are offline), and doesn't allow them to join a server with online-mode set to true.
So I want to mess around with players that have a cracked game. Things like randomly moving them and I can't figure out how to detect if they are a premium user. Is there maybe an API where I send a packet to mojang servers with a username and response is if the username is in the premium list?
Not doing mc modding that much anymore because I am making a full blown game that does not have limitations that mc has. (rip Magiology for now)
I may come back if MC fixes it's rendering pipeline.
I'm not really sure but if i'm right than cracked player don't have a UUID so you could check if they have a UUID or not.
get player instance then do instance.getGameProfile().isLegacy()
it returns a boolean that is if it is premium or not
P.S. sSMinecrafterSs the UUID in cracked player is generated with
sorry for my bad english I'm Italian
Thanks!
Not doing mc modding that much anymore because I am making a full blown game that does not have limitations that mc has. (rip Magiology for now)
I may come back if MC fixes it's rendering pipeline.
Now I have looked into GameProfile and the legacy variable seems to be false at the all times! I am guessing that from looking at the code no setter and it's private. And I can't really find any place where it would be set via reflection. Sooo could someone explain how it works?
Not doing mc modding that much anymore because I am making a full blown game that does not have limitations that mc has. (rip Magiology for now)
I may come back if MC fixes it's rendering pipeline.
Edit: also I have tried using my gmail and password as launch args and my skin loaded but the GameProfile#isLegacy() is still returning false
Not doing mc modding that much anymore because I am making a full blown game that does not have limitations that mc has. (rip Magiology for now)
I may come back if MC fixes it's rendering pipeline.
I never tried to do this and I thinked that it was right but I was wrong, sorry
sorry for my bad english I'm Italian
It's ok!
I have gone all out and made a PremiumHandeler. It works really good from what I can test!
But there is one little thing that is bugging me a little bit. I am using if(InetAddress.getByName("minecraft.net")!=null) to check if there is internet access. Is there maybe a value provided by mc that serves as "mc has access to internet"?
Not doing mc modding that much anymore because I am making a full blown game that does not have limitations that mc has. (rip Magiology for now)
I may come back if MC fixes it's rendering pipeline.
to get if there is internet connection I usually do this:
this will check if google is available but not if the minecraft login service is online (that can be useful in your case because premium players can't get access token in that case and will be considered offline players)
sorry for my bad english I'm Italian
Oh ok. Yeah so pretty much the same thing that I did. Ok thanks for help!
Not doing mc modding that much anymore because I am making a full blown game that does not have limitations that mc has. (rip Magiology for now)
I may come back if MC fixes it's rendering pipeline.
Cracked players can use any non-cracked name, and play as them. That is why servers have "online-mode" in the properties file, this detects if the player is cracked (telling Minecraft they are offline), and doesn't allow them to join a server with online-mode set to true.
HappyKiller1O1, I think he know that there is online-mode property but he want to "troll" the people that access using cracked profile
sorry for my bad english I'm Italian
Ssssssh! don't tell anybody!
I may have been inspired by this https://goo.gl/R2Y2Za
Not doing mc modding that much anymore because I am making a full blown game that does not have limitations that mc has. (rip Magiology for now)
I may come back if MC fixes it's rendering pipeline.