v8.0.0-alpha

This commit is contained in:
Parker2991
2025-05-07 07:27:41 -04:00
parent 229f4c5664
commit a8a0b210be
104 changed files with 10962 additions and 11465 deletions
+18
View File
@@ -0,0 +1,18 @@
// TODO: Improve how messages are stringified
const ChatMessage = require("prismarine-chat")("1.20.2");
const stringify = (message) => new ChatMessage(message)?.toString();
class CommandError extends Error {
constructor(message, filename, lineError, useChat) {
super(stringify(message), filename, lineError, useChat);
this.name = "CommandError";
this._message = message;
return (this._useChat = useChat);
// this._useChat = useChat
}
get message() {
return stringify(this._message);
}
};
module.exports = CommandError