PGM icon indicating copy to clipboard operation
PGM copied to clipboard

Match scoped Metadatable support

Open Electroid opened this issue 6 years ago • 0 comments

Bukkit has a Metadatable interface that allows for various things to have metadata. Right now, to create a FixedMetadataValue or LazyMetadataValue you need to access PGM.get() -- this is not a good pattern. Plus, nothing prevents these values from leaking across matches.

Similar to what we have done with Scheduler, there should be a "helper" class that assists in setting and getting metadata values. It can be scoped to a MatchScope and is removed when the Match leaves that scope.

Electroid avatar Nov 01 '19 15:11 Electroid