Files
Construct-CN/packs/BP/scripts/classes/Errors/NotAPlayerError.js
T
2026-05-20 17:08:03 -07:00

13 lines
358 B
JavaScript

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' };
}
}