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: HBedWars v1.1-ARANDANO (api-version: 1.13, original author AxeelHeaven)
  • 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 and SlimeWorldManager integration 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, and V1_8_R3 NMS/CraftBukkit version support.
    • Soft Dependencies (plugin.yml): PlaceholderAPI, Parties, ntdLuckyBlock (plus compile-time integration against ProtocolLib, Vault, PlayerPoints, and SlimeWorldManager).

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_SYNTHETIC member flags, malformed generic signatures, scrambled local variable tables, invokedynamic call/string dispatch, caller-stack-sensitive AES string encryption (Throwable.getStackTrace()), <clinit> static string/character lookup arrays, and Category-1 pop2 stack manipulation. Together, these protections caused traditional decompilers such as JD-GUI to fail on 182 classes or emit broken control flow.
  • Reverse-Engineering Pipeline:
    1. 7-Stage ASM Bytecode Deobfuscation: Cleaned invalid signatures, bogus synthetic flags, and obfuscated local variable metadata; statically resolved all 207 invokedynamic sites 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-1 pop2 sequences; and stripped 3,005 dead obfuscated methods and 914 dead fields (passing bytecode verification on 613/613 classes with 0 rollbacks).
    2. 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, 194 XTag static field dependencies, 9 self-recursive ArrayUtils.remove(...) overloads, generics, and private inner-class constructors.
    3. Multi-Layer Verification: Verified across all 613 classes for ABI & enum ordering (0 failures), bytecode string/call/field/catch equivalence (0 missing strings, 0 unexplained semantic diffs), and differential JVM execution on pure-Java subsystems.

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:always compiler 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 with provided scope; deps/provided-api-stubs.jar uses system scope solely for compile-time resolution and is excluded from the built plugin JAR.
S
Description
No description provided
Readme
1.3 MiB
0 Stars 1 Watchers 0 Forks
Languages
Java 100%