Skip to content

[Bug/Feature] Off-hand item loss, large arena memory crash, and arena creation stick issues #113

Description

@kedol0626

What happened?

Body

  1. Items in Off-Hand Disappear After Leaving Game

Issue: If a player joins an arena using /hg join while holding an item in their off-hand (left hand), the item disappears after leaving or finishing the game.

Expected Behavior: Off-hand items should be saved and restored properly, or players should be prevented/warned from joining with off-hand items.

  1. Server Crash / Out-of-Memory When Preparing Large Arenas

Issue: Joining a large arena (e.g., 1000 x 100 x 1000 blocks) causes the server to freeze or crash with an error in GameRegion.getBlocks() / PrepareArenaTask during the arena setup phase.

Context: In older versions of the plugin (such as the original Spigot HungerGames plugin), large maps of this size ran without crash issues.

Suggestion: Please optimize block-loading / arena-preparation tasks (e.g., using async or chunk-based loading) to prevent main-thread freezes and memory crashes on large arenas.

  1. Arena Creation Session & Selection Stick Issues

Issue 1 (First Attempt Glitch): Upon running /hg create for the first time, left-clicking a block with the selection stick breaks the block instead of setting corner 1. Running /hg create again says a creation session is already active. Restarting the server fixed the stick interaction, but this creates initial confusion.

Issue 2 (Lost Stick & Cancel Session): If a player accidentally drops or loses the selection stick, there is no way to regain it or cancel/reset the creation session.

Suggestion:

Add a command to cancel/abort the current creation session (e.g., /hg create cancel or /hg session cancel).

I think I'll be able to create a great minigame server thanks to your plugin. Thank you so much for developing it!

Steps to reproduce

Expected behavior

  • Off-hand items should be saved and restored properly, or players should be warned/prevented from joining with off-hand items.
  • The server should handle large arena block-loading without freezing or crashing.
  • The selection stick should work correctly on the first attempt without breaking blocks, and commands should be available to cancel a session or get a new stick.

HungerGames Version

5.1.1

Server Version

Purpur26.2

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue/PR needs a team member to look over

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions