Skip to content

Bug: Home count shows '?' for max homes when player has unlimited #8

@derrickmehaffy

Description

@derrickmehaffy

Plugin Version

2.8.2

Operating System

Linux

Bug Description

In the HyperHomes GUI (Homes List page), the home count display shows a ? character for the maximum homes value when the player has unlimited homes (e.g., admin with hyperhomes.unlimited permission). The display reads something like 3/? instead of showing a meaningful value like 3/unlimited or 3/∞.

Steps to Reproduce

  1. Ensure you have the hyperhomes.unlimited permission (or are an admin/op)
  2. Set at least one home with /sethome test
  3. Open the homes GUI with /homes
  4. Observe the home count display in the GUI header

Expected Behavior

The home count should display a clear indication that the player has unlimited homes, such as:

  • 3/Unlimited
  • 3/unlimited
  • 3/∞

Instead of showing 3/? which is confusing and looks like a bug to the player.

Logs

No relevant logs — this is a display issue.

Code Snippets

The issue likely originates in the HomesListPage.java where the home limit is displayed. When HomeManager.getHomeLimit() returns -1 (unlimited), the display formatting doesn't handle this case properly.

Media

No screenshots available yet.

Additional information

This only affects players with unlimited homes (typically admins with hyperhomes.unlimited permission). Players with a finite home limit see the correct count (e.g., 3/5).

Confirmation

  • I have searched existing issues to ensure this is not a duplicate
  • I have provided all requested information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions