[SPIGOT-6140] ScoreChangedEvent Created: 14/Sep/20  Updated: 13/Nov/20

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Katzen48 | Tobi Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Version: 1.16.1
Guidelines Read: Yes

 Description   

Currently, it is not possible to track score changes with events.
A plugin developer has to use NMS and replace the objective to send those events himself, which breaks at every update.

Therefore there should be an event fired for every score change.



 Comments   
Comment by Katzen48 | Tobi [ 13/Nov/20 ]

I need to do this in one of my plugins (not public) for a gamemode to be able to sync states between the plugin and data packs/command blocks.

An event, when a score changes would be the best way to do this, than other solutions like nms, which breaks with every version and is not supported/recommended (https://www.spigotmc.org/threads/bukkit-craftbukkit-spigot-bungeecord-1-15-1.407454/), or continuously checking all players scores, which hits hard on performance and may be not that accurate as an event.
Also the needed effort for such an event is low.

Comment by Airtheon Thesalion [ 12/Nov/20 ]

Do you have an example of a plugin using the NMS to do this?

Generated at Sat Apr 05 09:53:45 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.