Inconsistent Player IDs between Client and Server scripts.
Partner Team Reporting:
Syclone Studios
Partner Rank:
1
Verification builds and Platforms:
ver. 1.12.0.11
Summary:
Player ID passed to server & stored from Client eventminecraft:client_entered_world(event.data.player.id) does not match up with the same player entity's id as given by Server events such asminecraft:player_attacked_entityorminecraft:entity_carried_item_changed.
Impact:
Can not keep track of player data by using the id of the entity, as it differs from client to server.
Repro Steps:
1. Listen for eventminecraft:client_entered_worldand send player ID to server through custom event.
2. Listen for any Server event that involves player. The ID of the player involved in the event will be different from the ID previously passed to the server.
Observed Results:
Player ID does not seem consistent between Client and Server scripts.
Expected Result:
Consistency in ID values.
Regression Build:
N/A
Notes:
Could be solved by implementing a Server event for when the client joins, or a query to retrieve a list of online players.