Is Minecraft Vanillea's server jar obsfucated?

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

FigT

Java Developer
Supreme
Feedback score
7
Posts
47
Reactions
37
Resources
1
Yes, it is obfuscated, although obfuscation mappings do exist (MCP/Searge’s, official mappings as of more recent updates, etc.)
 

BOOP

Director of Ops @ Zelphra
Supreme
Feedback score
23
Posts
2,384
Reactions
1,095
Resources
0
Why do you need it edited?
 

MrChayut

Feedback score
0
Posts
6
Reactions
4
Resources
0
Mojang uses Name Obfuscation technique to protect their product from being leaked or reverse engineered.

Why do you need it edited?
I think he wanna make a custom fork or something
 
Last edited:

KaydenSux

Banned
Feedback score
0
Posts
101
Reactions
56
Resources
0
Mojang uses Name Obfuscation technique to protect their product from being leaked or reverse engineered.


I think he wanna make a custom fork or something
No, I am running a pure vanilla server and just want a lil few modifications in terms of cosmetic design (like chat, etc)
 
Banned forever. Reason: Doxing (https://builtbybit.com/threads/trying-to-find-a-scammer.635939/#post-4717505)

pol_vallverdu

Student + Developer and Content Creator
Supreme
Feedback score
8
Posts
102
Reactions
44
Resources
0
No, I am running a pure vanilla server and just want a lil few modifications in terms of cosmetic design (like chat, etc)
You can pretty do all that stuff with plugins. If you don't want modify Vanilla Gameplay, I don't recommend it, but use bukkit instead of spigot.
 

KaydenSux

Banned
Feedback score
0
Posts
101
Reactions
56
Resources
0
doesn't bukkit & vanilla have different world generations?
 
Banned forever. Reason: Doxing (https://builtbybit.com/threads/trying-to-find-a-scammer.635939/#post-4717505)

KaydenSux

Banned
Feedback score
0
Posts
101
Reactions
56
Resources
0
Banned forever. Reason: Doxing (https://builtbybit.com/threads/trying-to-find-a-scammer.635939/#post-4717505)

MrChayut

Feedback score
0
Posts
6
Reactions
4
Resources
0
You can pretty do all that stuff with plugins. If you don't want modify Vanilla Gameplay, I don't recommend it, but use bukkit instead of spigot.
From my experience (owning 1 Minecraft server/network) I think the best way to run a server with plugins is Paper Spigot (Tunity if you running 1.15+ or higher)

PaperSpigot adds a few methods to allow developers to easily develop their plugins without accessing the NMS at all

for example
Code:
PacketPlayOutPlayerListHeaderFooter packet = new PacketPlayOutPlayerListHeaderFooter();
        Object header = new ChatComponentText("MCMarket");
        Object footer = new ChatComponentText("We are not an official Minecraft product and are not approved by or associated with Mojang.");
        try {
            Field a = packet.getClass().getDeclaredField("a");
            a.setAccessible(true);
            Field b = packet.getClass().getDeclaredField("b");
            b.setAccessible(true);

            a.set(packet, header);
            b.set(packet, footer);
            Player player = e.getPlayer();
            ((CraftPlayer)player).getHandle().playerConnection.sendPacket(packet);
turns into this
Code:
e.getPlayer().setPlayerListHeader("MCMarket")
e.getPlayer().setPlayerListFooter("We are not an official Minecraft product and are not approved by or associated with Mojang.")

efficient and less confusing right?

As you can tell from code above (the normal one) the NMS methods looks very obfuscated by the class name right?
If you've decompiled an obfuscated JARs before, you would see something like that.
 

pol_vallverdu

Student + Developer and Content Creator
Supreme
Feedback score
8
Posts
102
Reactions
44
Resources
0
From my experience (owning 1 Minecraft server/network) I think the best way to run a server with plugins is Paper Spigot (Tunity if you running 1.15+ or higher)

PaperSpigot adds a few methods to allow developers to easily develop their plugins without accessing the NMS at all

for example
Code:
PacketPlayOutPlayerListHeaderFooter packet = new PacketPlayOutPlayerListHeaderFooter();
        Object header = new ChatComponentText("MCMarket");
        Object footer = new ChatComponentText("We are not an official Minecraft product and are not approved by or associated with Mojang.");
        try {
            Field a = packet.getClass().getDeclaredField("a");
            a.setAccessible(true);
            Field b = packet.getClass().getDeclaredField("b");
            b.setAccessible(true);

            a.set(packet, header);
            b.set(packet, footer);
            Player player = e.getPlayer();
            ((CraftPlayer)player).getHandle().playerConnection.sendPacket(packet);
turns into this
Code:
e.getPlayer().setPlayerListHeader("MCMarket")
e.getPlayer().setPlayerListFooter("We are not an official Minecraft product and are not approved by or associated with Mojang.")

efficient and less confusing right?

As you can tell from code above (the normal one) the NMS methods looks very obfuscated by the class name right?
If you've decompiled an obfuscated JARs before, you would see something like that.

That's the thing, it optimizes and changes a lot of things, which in the end, it doesn't work like vanilla. So if you want a vanilla experience is better using Bukkit (Not recommended) or Spigot (which has little optimizations that doesn't affect vanilla gameplay)
 

MrChayut

Feedback score
0
Posts
6
Reactions
4
Resources
0
That's the thing, it optimizes and changes a lot of things, which in the end, it doesn't work like vanilla. So if you want a vanilla experience is better using Bukkit (Not recommended) or Spigot (which has little optimizations that doesn't affect vanilla gameplay)
Agreed! If you just want normal vanilla survival.


to answer this entire thread with proof:
upload_2020-10-22_17-37-31.png

upload_2020-10-22_17-37-55.png

(You can find more by extracting it)
Minecraft didn't obfuscate some classes because they also need to code the client too
 

Attachments

  • upload_2020-10-22_17-37-31.png
    upload_2020-10-22_17-37-31.png
    15.2 KB · Views: 46
  • upload_2020-10-22_17-37-55.png
    upload_2020-10-22_17-37-55.png
    19.5 KB · Views: 44
Status
This thread has been locked.
Top