forked from noxious/server
#245 : Enhanced asset CRUD logic
This commit is contained in:
@@ -45,7 +45,7 @@ export abstract class BaseEvent {
|
||||
return character?.getRole() === 'gm'
|
||||
}
|
||||
|
||||
protected emitError(message: string): void {
|
||||
protected sendNotificationAndLog(message: string): void {
|
||||
this.socket.emit(SocketEvent.NOTIFICATION, { title: 'Server message', message })
|
||||
this.logger.error('Base event error', `Player ${this.socket.userId}: ${message}`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user