Added title to error notification
This commit is contained in:
parent
a14074afcf
commit
9baffd1327
@ -19,12 +19,12 @@ export default class MapCreateEvent extends BaseEvent {
|
||||
this.logger.info(`GM ${(await this.getCharacter())!.getId()} has created a new map via map editor.`)
|
||||
|
||||
if (data.name === '') {
|
||||
this.socket.emit('notification', { message: 'Map name cannot be empty.' })
|
||||
this.socket.emit('notification', { title: 'Error', message: 'Map name cannot be empty.' })
|
||||
return callback(false)
|
||||
}
|
||||
|
||||
if (data.width < 1 || data.height < 1) {
|
||||
this.socket.emit('notification', { message: 'Map width and height must be greater than 0.' })
|
||||
this.socket.emit('notification', { title: 'Error', message: 'Map width and height must be greater than 0.' })
|
||||
return callback(false)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user