3 Commits
Author SHA1 Message Date
James Puleo 06cdbff2f8 Allow modifying of the spawn location (and thus, the spawn world) of
players joining through the PlayerJoinEvent.
2021-02-27 01:46:35 -05:00
James Puleo 3f60ffd1ef Track the players selected slot index with PacketPlayInHeldItemChange,
and allow changing of a players selected slot with
PacketPlayOutHeldItemChange.

Also introduces an event that can be used to change or cancel a player's
selected slot change.

I tried to follow the style and mannerisms of existing code, but what's
up with the Unsafe class? The class is okay, but why are the methods
named as such? Having all the methods named 'a' will be sure to cause
conflict once two methods take the same parameters.
2021-02-22 01:54:26 -05:00
James Puleo 00af9afe43 Reduce code duplication, tell client about new position if an event
handler used setTo
2021-02-22 00:40:08 -05:00