5zig-reborn / 5zig-reborn/The-5zig-Mod

You can see chat messages and hear sounds from all of the accounts. AFK timer is also instantiated for each account.

Open
#125 3 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
Java
Stars
111
Forks
12
PR merge metrics
No merged PRs in 30d

Description

This bug is related to #96.

**Describe the bug**
Switching to another account makes you see chat messages from all of the accounts. You can also hear any sounds played to any account if the account you're currently controlling is in the range of a sound played at the specific coordinates.
This also makes 5zig have more than one instance of the AFK timer.
I own only two minecraft accounts so I couldn't test it with more. I suppose that you'd see messages and hear sounds not only from two of the logged in accounts.

**To Reproduce**
1. Log in with one account on any server. My choice was Mineplex because of the many sounds you hear on the lobby spawn.
2. Go to a lobby where there are players talking in the chat.
3. Go to a place where you can frequently hear sounds.
4. Write down the coordinates you are at (including Y).
5. Switch to the other account.
6. Disconnect from the server and join a singleplayer world.
❌ You can see the messages received by the other account.
7. Teleport to the previously written down coordinates of the other account.
❌ You can hear all the sounds the other account is hearing.
8. Stay AFK for 10 minutes (or change your system time to +10min) to make 5zig show you a notification about you being AFK.
❌ You will see more than one notification about being AFK.
9. Move your mouse on the window.
❌ You will see more than one notification about not being AFK now.

**Expected behavior**
- to not see the messages received by accounts other than the active one,
- to not hear the sounds played to accounts other than the active one,
- to not see multiple afk notifications.

**Screenshots**
(230V on the screenshot is my other account)
two accounts on one server (the same lobby) = you see doubled messages:
![image](https://user-images.githubusercontent.com/43796685/101286691-366f3780-37ec-11eb-8145-a908c2d56635.png)
two accounts on different servers (or the same server but different lobbies) = you can see messages from both servers/lobbies:
![image](https://user-images.githubusercontent.com/43796685/101287426-851ed080-37f0-11eb-988f-bf231ab94c1f.png)
multiple afk notifications:
![image](https://user-images.githubusercontent.com/43796685/101289136-e21f8400-37fa-11eb-97af-f6a966f4ca2d.png)
![image](https://user-images.githubusercontent.com/43796685/101289144-f5325400-37fa-11eb-86cf-86c97f517ba3.png)

**Desktop (please complete the following information):**
- OS: windows 10
- Version: π.0

Contributor guide

No contributing guide indexed for this repository

Research direction

The bug is about cross-account state isolation in a Minecraft mod. Look at the chat, sound, and AFK timer handling in the codebase, likely in modules managing per-account instances. Start by reproducing the issue locally with two accounts, then trace where chat messages and sounds are dispatched and stored. Check if there's a central event bus or listener that isn't scoped per account. The fix will involve ensuring each account's UI components only receive events for that account.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.