Back up your installed sky_coinsystem folder and all Coinsystem database tables, including balances, memberships and coinsystem_vip_deliveries. Stop sky_coinsystem during maintenance and download Coinsystem 2.5.1. Keep Sky Base 1.52.0 or newer and oxmysql configured in Base for protected Tebex subscriptions. This patch does not require a new Base release.
Delete the installed sky_coinsystem/source directory and insert the complete source directory from the new download. Replace fxmanifest.lua, import.sql and TEBEX_VIP.md from that same download. Refresh the full config/locales directory; copy only your edited message values into matching new entries and keep every supplied key.
Keep your existing config/config.lua, prices, tier IDs and order, monthlyCoins, shop entries, identity mode and integrations. The download does not replace your generated config/config.lua.
No new configuration value or /jobconfig action is required. Existing manual VIP codes keep their behavior.
If you use protected Tebex subscriptions: open each VIP package in the Tebex control panel and check its game-server commands. For a tier whose configured ID is gold, use:
| Tebex event | Server command |
|---|
| Package purchased, including upgrades | savevipsubscriptioncode {transaction} gold 30 |
| Subscription renews | saveviprenewalcode {transaction} gold 30 |
| Package removed/expires | removevipredeemcode {transaction} |
| Refund | removevipredeemcode {transaction} |
| Chargeback | removevipredeemcode {transaction} |
Replace gold with that package's exact ID from Config.VIP.tiers in config/config.lua. Keep tiers ordered from lowest to highest in both places. Set the purchase command on every paid tier, including the lowest paid tier: its inherited delivery identifies a first purchase. Choose the intended game server and allow offline execution. Keep one subscription per purchase and the same whole day count, from 1 to 366, across all tiers; the omitted default is 30 days. Schedule removal at the actual end of the paid period, including after cancellation.
Replace any old subscription savevipredeemcode commands with the commands above and remove separate purchase/upgrade coin payouts such as givecoins, saveredeemcode or global package rewards. In config/config.lua, find Config.Menu.showRedeemCode and keep it true so players can claim the payment ID in the shop's code field.
Wait for all of Tebex's tier commands to complete before claiming. Claim the original purchase before an upgrade. First purchases and paid renewals award the highest delivered tier's monthlyCoins once per payment; upgrades award zero coins and retain the current membership's expiry. A later higher-tier delivery pays only the missing difference for a first purchase or renewal.
Keep all claimed and revoked delivery rows. Removal revokes only the membership linked to that payment; it preserves a newer payment's membership and does not deduct already awarded coins. Already-claimed legacy memberships cannot be retroactively linked to payment removal.
Full setup: Tebex VIP Tiers.
The existing startup migrator automatically adds initial_purchase and claimed_initial_purchase to coinsystem_vip_deliveries and checks the required schema. Keep database CREATE/ALTER and read/write permissions enabled. No manual SQL import is needed; the new import.sql is the current schema reference. Keep every existing payment row, including claimed and revoked rows. Do not reset the database or replay the old V1 migration.
Older receipts cannot establish whether an initial payment was a full first purchase. This patch does not automatically back-pay those older first purchases. Review the original payment and the player's actual balance before any correction; do not resend old transactions as new deliveries. No new inventory item, image or streamed asset is required.
Keep the existing framework, SQL and configured integrations running, start sky_base before sky_coinsystem, and wait for successful database startup without schema errors. Open the shop and check that it loads.
If you use protected subscriptions, use a controlled test payment after Tebex has finished its tier deliveries. A first purchase should credit the highest delivered tier's configured monthlyCoins; claiming it again should add nothing. An upgrade should keep the current expiry and add no coins; a paid renewal should award its bonus once. Keep all receipt history, and check the actual balance before retrying an unconfirmed claim.