@throw-out-error/minecraft-mcfunction
Version:
A simple way to create your mcfunction files using Typescript syntax.
25 lines • 784 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.gamemode = exports.GamemodeCommand = void 0;
const __1 = require("../");
class GamemodeCommand extends __1.Command {
constructor(gamemode, target) {
super('gamemode');
this.gamemode = gamemode;
this.target = target;
}
get [__1.Command.ARGUMENTS]() {
const args = [this.gamemode];
if (this.target) {
args.push(this.target);
}
return args;
}
}
exports.GamemodeCommand = GamemodeCommand;
function gamemode(gamemode, target) {
return new GamemodeCommand(gamemode, target);
}
exports.gamemode = gamemode;
__1.Command.registerCommand('gamemode', gamemode);
//# sourceMappingURL=gamemode.js.map