ggejs
Version:
A powerful Node.js module for interacting with the server of Goodgame Empire & Goodgame Empire: Four Kingdoms
13 lines (12 loc) • 468 B
JavaScript
const Good = require("../../structures/Good");
module.exports.name = "gcu";
/**
* @param {BaseClient} client
* @param {number} errorCode
* @param {{C1: number, C2: number}} params
*/
module.exports.execute = function (client, errorCode, params) {
if (!params) return;
if (params.C1) client.clientUserData.setGlobalCurrency(new Good(["C1", params.C1]));
if (params.C2) client.clientUserData.setGlobalCurrency(new Good(["C2", params.C2]));
}