update README

This commit is contained in:
LabyStudio
2022-06-18 07:45:22 +02:00
parent 4d8ce1688e
commit 2e42d482ed
3 changed files with 21 additions and 2 deletions
@@ -1,4 +1,5 @@
import Command from "../Command.js";
import FontRenderer from "../../render/gui/FontRenderer.js";
export default class HelpCommand extends Command {
@@ -7,7 +8,7 @@ export default class HelpCommand extends Command {
}
execute(minecraft, args) {
minecraft.addMessageToChat("&2--- Showing help page ---");
minecraft.addMessageToChat(FontRenderer.COLOR_PREFIX + "2--- Showing help page ---");
minecraft.commandHandler.commands.forEach(command => {
minecraft.addMessageToChat("/" + command.command + " " + command.usage + " - " + command.description);
});