feat: rework commands and fix bugs
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
export class NotAPlayerError extends Error {
|
||||
import { CommandResponseError } from "./CommandResponseError";
|
||||
|
||||
export class NotAPlayerError extends CommandResponseError {
|
||||
constructor(message = 'Command requires a player source.') {
|
||||
super(message);
|
||||
this.name = 'NotAPlayerError';
|
||||
}
|
||||
|
||||
getRawMessage() {
|
||||
return { translate: 'construct.commands.error.notAPlayer' };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user