mirror of
https://github.com/xoo0524tw/OpenHBedwars.git
synced 2026-12-05 22:16:02 +02:00
42e359bd5fdd877f9705df3e3c831ee99715f7f0
HBedWars v1.1-ARANDANO
A reconstructed, Maven-buildable Java 8 source project for the HBedWars Bukkit/Spigot BedWars plugin, ready to open directly in IntelliJ IDEA.
Overview
- Plugin Name / Version:
HBedWarsv1.1-ARANDANO(api-version: 1.13, original authorAxeelHeaven) - Main Class:
com.axeelheaven.hbedwars.BedWars - Key Subsystems:
- Arena & Match Management (
api/arena,arenas,listeners,commands): Public and private games, pre-game voting (map, health, time, shop mode), team respawns, beds, and state lifecycle (LOADING,WAITING,STARTING,FULL,GAME,END). - Worlds, Generators & Shopkeepers (
world,cuboid,generators,shopkeepers,items,menus): Custom world handling andSlimeWorldManagerintegration hooks, tiered resource generators, team traps and upgrades, categorized item shops, quick-buy favorites, and GUI menus. - Cosmetics & Display Integrations (
cosmetics,npcs,scoreboard,holograms,versions): Kill effects, victory dances, death cries, bed-destroy effects, sprays, projectile trails, glyphs, scoreboards, holograms, NPCs, economy/database storage, andV1_8_R3NMS/CraftBukkit version support. - Soft Dependencies (
plugin.yml):PlaceholderAPI,Parties,ntdLuckyBlock(plus compile-time integration against ProtocolLib, Vault, PlayerPoints, and SlimeWorldManager).
- Arena & Match Management (
Source
- Sourced from the BlackMinecraft resource page:
https://black-minecraft.com/resources/3756/ - The original BlackMinecraft user-ban check and license verification logic in
BedWars.onEnable()are preserved intact and unmodified.
Original Obfuscation & Reverse-Engineering Summary
- Original Obfuscation Design & Strength: The distributed binary (613 classes) applied multi-layered Java bytecode obfuscation, including heavy control-flow flattening and opaque predicates (ZKM-style comparison helpers and conditional jumps), bogus
ACC_SYNTHETICmember flags, malformed generic signatures, scrambled local variable tables,invokedynamiccall/string dispatch, caller-stack-sensitive AES string encryption (Throwable.getStackTrace()),<clinit>static string/character lookup arrays, and Category-1pop2stack manipulation. Together, these protections caused traditional decompilers such as JD-GUI to fail on 182 classes or emit broken control flow. - Reverse-Engineering Pipeline:
- 7-Stage ASM Bytecode Deobfuscation: Cleaned invalid signatures, bogus synthetic flags, and obfuscated local variable metadata; statically resolved all 207
invokedynamicsites and 58 AES-encrypted stack-trace-guarded strings; evaluated all 707 static table initializers; folded algebraic constants,String.length(), comparison helpers, and opaque predicates; normalized Category-1pop2sequences; and stripped 3,005 dead obfuscated methods and 914 dead fields (passing bytecode verification on 613/613 classes with 0 rollbacks). - Decompilation & Semantic Fixes: Decompiled the verified bytecode with Vineflower to 433 Java 8 source files alongside all 43 original resource files, generated compile-only NMS/CraftBukkit/1.20-bridge/external API stubs in
deps/provided-api-stubs.jar(never packaged into the output JAR), and resolved semantic decompilation discrepancies including 25<clinit>enum constant orderings, 194XTagstatic field dependencies, 9 self-recursiveArrayUtils.remove(...)overloads, generics, and private inner-class constructors. - Multi-Layer Verification: Verified across all 613 classes for ABI & enum ordering (
0failures), bytecode string/call/field/catch equivalence (0missing strings,0unexplained semantic diffs), and differential JVM execution on pure-Java subsystems.
- 7-Stage ASM Bytecode Deobfuscation: Cleaned invalid signatures, bogus synthetic flags, and obfuscated local variable metadata; statically resolved all 207
Building & IntelliJ IDEA Setup
- IntelliJ IDEA: Open the repository root directly; IDEA will automatically detect
pom.xml, UTF-8 source/resource encodings, Java 8 language level, and the-Xpkginfo:alwayscompiler option (select any local JDK 8+ when prompted). - Maven CLI:
mvn clean compile mvn package - Dependencies: Server APIs (
spigot-api:1.8.8-R0.1-SNAPSHOT) and soft-depend plugins are declared withprovidedscope;deps/provided-api-stubs.jarusessystemscope solely for compile-time resolution and is excluded from the built plugin JAR.
Languages
Java
100%