GlowstoneMC / Glowstone

A fast, customizable and compatible open source server for Minecraft: Java Edition
https://glowstone.net
Other
1.89k stars 271 forks source link

[WIP] implement getters/setter in GlowPlayerProfile #980

Closed crashdemons closed 5 years ago

crashdemons commented 5 years ago

This is my relatively primitive attempt to implement the remaining getters/setters in GlowPlayerProfile that are currently unsupported.

While this seems pretty basic I think it should have a similar enough behavior to other implementations, since I don't think others resolve input id's during set/construction either.

Since there's not an internal object used to hold the owner here, I had to remove the final from the name. You may also may want to decide if it should be volatile now that it can be changed by different threads.

This is not ready for merging without changes after review. Let me know.