Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PlayerManager

Implements

Index

Constructors

constructor

Properties

_entities

_entities: EntityManager

_lastChunkUpdate

_lastChunkUpdate: number = 0

_server

_server: Server

_worlds

_worlds: WorldManager

banlist

banlist: {}

Type declaration

  • [index: string]: string

cache

cache: {}

Type declaration

  • [index: string]: {}
    • [index: string]: string

chunksToSend

chunksToSend: any[] = []

ipbanlist

ipbanlist: {}

Type declaration

  • [index: string]: string

players

players: {}

Type declaration

Methods

banIP

  • banIP(ip: string, reason?: string): void

banPlayer

  • banPlayer(id: string, reason?: string): void

create

exist

  • exist(id: string): boolean

get

  • get(id: string): Player | null

getAll

  • getAll(): {}

getBanReason

  • getBanReason(id: string): string

getIPBanReason

  • getIPBanReason(ip: string): string

isBanned

  • isBanned(id: string): boolean

isIPBanned

  • isIPBanned(ip: string): boolean

read

  • read(id: string): object | null

save

  • save(id: string, data: Object): void

saveBanlist

  • saveBanlist(): void

saveCache

  • saveCache(): void

sendMessageToAll

  • sendMessageToAll(msg: string | chat.ChatMessage): void

sendPacketAll

  • sendPacketAll(type: string, data: any): void

Generated using TypeDoc