Skip to content

Conversation

@Jsinco
Copy link
Contributor

@Jsinco Jsinco commented Feb 18, 2025

Hi, I was having some issues on my Minecraft server where players were reporting that /searchshop wasn't working, but seemingly at random. After a few weeks, I narrowed down the issue to players relogging. Once a player relogs from the server, the Player object used in PlayerMenuUtility becomes stale and no longer points to the new Player object. I replaced owner with a reference to the player's UUID and the getPlayer() method now gets the new player object straight from Bukkit.

I also did a bit of cleanup in the handler class for /searchshop when I was searching for this bug.

I've only discovered, and tested this bug/fix on MC 1.21.4.

@myzticbean myzticbean self-requested a review February 19, 2025 03:07
@myzticbean myzticbean merged commit 54a0a68 into myzticbean:master Feb 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants