Plugin not handling chunk load/unload #164

Open
opened 2023-10-30 19:16:02 +00:00 by SBDeveloper · 1 comment
Owner

Describe the bug
The plugin currently does not handle chunk loading / unloading events. This means armorstand references are invalidated on unloaded and thus cause bugs like 'fake' entities.

To Reproduce

    1. /v give <Player> ExampleCar <Garage> 255 0 0
    1. /vgarage, spawn vehicle
    1. Enter seat, drive a bit.
    1. Leave seat, move to another point (far away) in the server.
    1. /vgarage, click on item to despawn.
    1. Click on item again to spawn.
    1. See vehicle on new location and on old location.

Expected behavior
It should stay on its place.

Screenshots or Video Recordings
https://www.dropbox.com/scl/fi/p7jwbly6my4got0ba1vzl/2023-10-30-15-54-08.mp4?rlkey=0q6gzgwn3ihi41o1u6ytoq3im&dl=0

Server and Plugin Information

  • Installed plugins: BKCommonLib, ProtocolLib, Spark, Vault, VehiclesPlus
  • VehiclesPlus Version: 3.0.0-PRE4
  • Server Platform and Version [eg: PaperSpigot 1.x.x #xxx]: Purpur 1.19.2 (1858)
  • Operating System (if applicable): N/A
**Describe the bug** The plugin currently does not handle chunk loading / unloading events. This means armorstand references are invalidated on unloaded and thus cause bugs like 'fake' entities. **To Reproduce** - 1. `/v give <Player> ExampleCar <Garage> 255 0 0` - 2. `/vgarage`, spawn vehicle - 3. Enter seat, drive a bit. - 4. Leave seat, move to another point (far away) in the server. - 5. `/vgarage`, click on item to despawn. - 6. Click on item again to spawn. - 7. See vehicle on new location and on old location. **Expected behavior** It should stay on its place. **Screenshots or Video Recordings** https://www.dropbox.com/scl/fi/p7jwbly6my4got0ba1vzl/2023-10-30-15-54-08.mp4?rlkey=0q6gzgwn3ihi41o1u6ytoq3im&dl=0 **Server and Plugin Information** - Installed plugins: BKCommonLib, ProtocolLib, Spark, Vault, VehiclesPlus - VehiclesPlus Version: 3.0.0-PRE4 - Server Platform and Version [eg: **PaperSpigot** 1.x.x #xxx]: Purpur 1.19.2 (1858) - Operating System (if applicable): N/A
SBDeveloper added the
Bug
High Priority
labels 2023-10-30 19:16:22 +00:00
Author
Owner

Applies both to v2 and v3.

Applies both to v2 and v3.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SBDevelopment/VehiclesPlus#164
No description provided.