UNPKG

ggejs

Version:

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

14 lines 460 B
module.exports.name = "vip"; /** * @param {BaseClient} client * @param {number} errorCode * @param {{VP:number,VRS:number,UPG:number,VRL:number}} params */ module.exports.execute = function (client, errorCode, params) { if (!params) return; const cud = client.clientUserData cud.vipPoints = params.VP; cud.vipTimeExpireTimestamp = params.VRS; cud.usedPremiumGenerals = params.UPG; cud.maxVIPLevelReached = params.VRL; }