Files
bd2/go/internal/server/events/skin_handler.go
T

16 lines
583 B
Go

package events
// SkinHandler restores skin ownership through the client's dedicated query.
type SkinHandler struct{ Economy *Economy }
func (h SkinHandler) Handle(path string, request []byte) (int, []byte, bool, error) {
return h.HandleSession(path, request, "local")
}
func (h SkinHandler) HandleSession(path string, request []byte, session string) (int, []byte, bool, error) {
if code, response, handled, err := h.Economy.OwnedItemInfo(path, request); handled || err != nil {
return code, response, handled, err
}
return h.Economy.HandleSession(path, request, session)
}