UNPKG

ggejs

Version:

A powerful Node.js module for interacting with the server of Goodgame Empire & Goodgame Empire: Four Kingdoms

13 lines (12 loc) 405 B
const Crest = require("../../structures/Crest"); module.exports.name = "gem"; /** * @param {BaseClient} client * @param {number} errorCode * @param {Object} params */ module.exports.execute = function (client, errorCode, params) { if (!params) return; client.clientUserData.mayChangeCrest = params["MCE"] === 1; client.clientUserData.playerCrest = new Crest(client, params); }