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