UNPKG

rce.js

Version:

A wrapper for Rust Console Edition (RCE) that allows you to use RCON to create integrations.

16 lines 546 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class CommandManager { static _commands = new Map(); static add(command) { this._commands.set(`${command.identifier}:${command.uniqueId}`, command); } static remove(command) { this._commands.delete(`${command.identifier}:${command.uniqueId}`); } static get(identifier, uniqueId) { return this._commands.get(`${identifier}:${uniqueId}`); } } exports.default = CommandManager; //# sourceMappingURL=commandManager.js.map