Skip to content

Release 1.2.0

Choose a tag to compare

@Akari-my Akari-my released this 16 Oct 17:25
· 10 commits to main since this release

BetterBedWars v1.2.0

A complete BedWars minigame for PocketMine-MP 5.0 — fork of Sergittos/BedWars (BedwarsPM), maintained under the BetterLite name.

🛠️ Bug fixes (25+)

Crashes

  • Fixed crash on every player quit (session removed before game cleanup)
  • Fixed Game::reset() loop that spammed world deletion tasks
  • Fixed CreateMapTask / DeleteMapTask storing non-serializable World objects in AsyncTasks
  • Fixed MySQL LoadSessionTask crash on empty results
  • Fixed exception when using setup items with uppercase names ("Claiming_wand", ...)
  • Fixed "It's a trap" name mismatch (trap was purchasable unlimited times)

Logic

  • Tracker Shop now works (own team no longer blocks the check)
  • Claim protection now checks the actual placed blocks
  • Player-placed TNT now ignites correctly
  • Fixed unset($arr[array_search()]) removing the wrong player
  • Fixed MySQL loading_data race (redundant DB writes / stat loss)
  • ColorUtils::getDye no longer crashes on unknown colors
  • Session::kill() without a team no longer crashes on respawn
  • Map deletion now cleans up active games and the waiting world
  • Listener side effects (onExhaust, onExplosionPrime, onMerge) scoped to BedWars only
  • Spectator settings now persist (SQLite & MySQL)
  • Spectators get the proper game scoreboard
  • Added hasTeam() guards on chest/bed interactions
  • Map names with illegal characters are now rejected

Robustness

  • Default values for uninitialized Session properties
  • Safe registry lookups for bedwars items
  • Defaults for missing JSON/SQLite data and corrupt maps.json

✨ Completed TODOs

  • Final kill detection (40 coins + "FINAL KILL!" broadcast)
  • Trap trigger sounds
  • Mode enum for players-per-team (Solo/Duos/Squads)
  • ShopId enum for shops
  • Deduplicated maps.json read/write into MapFactory

Full details: see changelogs/1.2.0.md