[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. 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. |
Comment by Airtheon Thesalion [ 12/Nov/20 ] |
Do you have an example of a plugin using the NMS to do this? |