UNPKG

@ohd-tools/rcon

Version:

An RCON Interface for Operation: Harsh Doorstop

19 lines (18 loc) 739 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PlayerPrivilegeAddRule = void 0; exports.PlayerPrivilegeAddRule = { regex: [ /^(?<addSuccess>Player was successfully granted admin privileges)/, /^(?<addFailed>Failed to add player to admin list, player is already marked as an admin)/, /^(?<addFailed>Failed to grant admin privileges to player by (ID number|name), no player with the (ID number|nickname) '(.*)' exists)/, ], format: (oargs) => { const args = oargs; const response = {}; response.success = args.groups?.addSuccess != null; if (!response.success) response.reason = args[0]; return response; }, };