Interface ServerEventsMap

interface ServerEventsMap {
    asap: (() => void);
    banned: ((player, username, reason) => void);
    clientError: ((client, error) => void);
    crash: (() => void);
    error: ((error) => void);
    listening: ((port) => void);
    newEntity: ((entity) => void);
    newPlayer: ((player) => void);
    pluginsReady: (() => void);
    seed: ((seed) => void);
    tick: ((delta, tickCount) => void);
    unhandledRejectionWarning: (() => void);
}

Hierarchy

  • ServerEvents
    • ServerEventsMap

Properties

asap: (() => void)

This event is emitted once all plugins are initialized. Use this event for working with properties / methods of other plugins.

Type declaration

    • (): void
    • This event is emitted once all plugins are initialized. Use this event for working with properties / methods of other plugins.

      Returns void

banned: ((player, username, reason) => void)

Type declaration

    • (player, username, reason): void
    • Parameters

      • player: Pick<Player, "username">
      • username: string
      • reason: string

      Returns void

clientError: ((client, error) => void)

Type declaration

    • (client, error): void
    • Parameters

      • client: Client
      • error: Error

      Returns void

crash: (() => void)

Type declaration

    • (): void
    • Returns void

error: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      • error: Error

      Returns void

listening: ((port) => void)

Type declaration

    • (port): void
    • Parameters

      • port: number

      Returns void

newEntity: ((entity) => void)

Type declaration

    • (entity): void
    • Parameters

      • entity: Entity

      Returns void

newPlayer: ((player) => void)

Type declaration

    • (player): void
    • Parameters

      • player: Player

      Returns void

pluginsReady: (() => void)

Type declaration

    • (): void
    • Returns void

seed: ((seed) => void)

Emit seed once the world is loaded

Type declaration

    • (seed): void
    • Emit seed once the world is loaded

      Parameters

      • seed: number

      Returns void

tick: ((delta, tickCount) => void)

Type declaration

    • (delta, tickCount): void
    • Parameters

      • delta: number
      • tickCount: number

      Returns void

unhandledRejectionWarning: (() => void)

Type declaration

    • (): void
    • Returns void

Generated using TypeDoc