Command messages

These are embedded error messages that are sent to sender if something goes wrong. You can overwrite them.

Internal error messages:

Tag
Message

#no-such-player

No such player was found

#no-such-world

No such world was found

#no-such-material

No such material was found

#no-such-enum

No such value for this enum was found

#not-a-number

It is not a number

#wrong-usage

Wrong usage of command

#no-perm

You have not permissions for this command!

#for-players-only

This command can use only players!

#unknown-error

Something went wrong

You can overwrite themor add your own:

commandManager.message("#wrong-usage") { it.sendMessage("New value") }

Getting message

You can get message by MessagesService:

val message = commandManager.readMessage("message tag")

Last updated