-
Notifications
You must be signed in to change notification settings - Fork 1
PLUGINS EVENTS ECONOMY ROOMS
Host.Economy() exposes configured currency types and bounded balance
operations. Grant accepts a signed delta; Set accepts a non-negative
absolute balance. Both run through native validation. Plugin-originated
mutations use actor plugin and the scoped audit reason
plugin:<plugin-name>:grant or plugin:<plugin-name>:set.
Listen to currency.grant to cap or veto any signed grant before persistence:
host.Events().Listen(event.CurrencyGrantName, event.ListenerOptions{}, func(_ context.Context, current event.Event) error {
grant := current.(*event.CurrencyGrant)
if grant.Amount > 100 {
grant.Amount = 100
}
return nil
})inventory.currency_changed is a typed post-commit notification with the
resulting balance, delta, currency type, actor kind, and player snapshot.
Host.Rooms() reads immutable room snapshots, lists active occupant ids,
updates validated settings with optimistic locking, and controls active-room
mute-all state.
-
room.createruns after native layout and content validation and before the room and its tags are inserted. See PLUGINS-EVENT-ROOM-CREATE. -
room.updatecan replace any optionalParamsfield or cancel persistence. Pixels reapplies native normalization, category policy, profanity policy, password hashing, and value validation after callbacks. -
room.enter.attemptruns after native access authorization but before the player or active room is mutated. -
room.unit.movecan redirectTargetX/TargetYor cancel the movement. The redirected point is validated again. The hot path checksHasListenersbefore constructing the event. -
room.moderation.actioncan veto authorized local kick/mute/unmute/ban/unban operations.
Use PLUGINS-EVENTS-REALMS for post-commit room facts.
Pixels
Getting Started
Architecture
Architecture Internals
Authentication
Users
Navigator
Inventory
Furniture
Rooms
Decoration
Games
Plugins
- PLUGINS-OVERVIEW
- PLUGINS-CREATING
- PLUGINS-LISTENERS
- PLUGINS-EVENTS-REALMS
- PLUGINS-EVENTS-ECONOMY-ROOMS
- PLUGINS-EVENTS-MODERATION-TRADES
- PLUGINS-EVENTS-COMMERCE-WORLD
- PLUGINS-EVENT-FURNITURE-MOVE
- PLUGINS-EVENT-FURNITURE-PICKUP
- PLUGINS-EVENT-ROOM-CREATE
- PLUGINS-EVENT-MARKETPLACE-LIST
- PLUGINS-EVENT-MARKETPLACE-BUY
- PLUGINS-EVENT-PLAYER-PROFILE-UPDATE
- PLUGINS-EVENT-BOT-SPEECH
- PLUGINS-EVENT-GROUP-MEMBERSHIP-CHANGE
- PLUGINS-EVENT-MESSENGER-FRIEND-REQUEST
- PLUGINS-EVENT-MESSENGER-FRIEND-ACCEPT
- PLUGINS-EVENT-CRAFTING-CRAFT
- PLUGINS-WIRED
- WIRED
- PLUGINS-COMMANDS
- PLUGINS-SDK
- PLUGINS-DEPLOYMENT