19cbceb120
The Command base class, Commands registry, FeedbackMessageType enum, and four CommandOrigin subclasses (Player/Entity/Block/Server) that every CLI command in this branch depends on. Without these files the new commands fail to resolve imports at module load. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
13 lines
344 B
JavaScript
13 lines
344 B
JavaScript
import { CommandOrigin } from "./CommandOrigin";
|
|
import { FeedbackMessageType } from "./FeedbackMessageType";
|
|
|
|
export class ServerCommandOrigin extends CommandOrigin {
|
|
getSource() {
|
|
return this.source.sourceType;
|
|
}
|
|
|
|
sendMessage(message) {
|
|
console.log(message);
|
|
return FeedbackMessageType.ConsoleInfo;
|
|
}
|
|
} |