#Deleted

1 messages · Page 1 of 1 (latest)

lilac wyvern
#

There is no easy event sadly

#

You could do something like this

#

or alternatively you could create a new class per player to handle this (would make it feasible to unsubscribe from the event on unload)

#

like
(pseudo code)

class PlayerEvents : IDisposable
    readonly UnturnedPlayer player;
    PlayerEvents()
        Subscribe to Events
    Dispose()
        Unsubscribe from events
    OnEvent(byte Value)
        Either handle request here OR trigger parent event handler MyPlugin.Instance.ParentEventHandler(player, Value);