# Changelog

> Release notes for sky_coinsystem.

<u-changelog-versions>
<u-changelog-version date="2026-11-17" title="Version 2.6.0" badge="Current">
<template v-slot:body="">

**Highlights**

- Fixed an issue where a player leaving a shop test drive could return to the default routing bucket instead of the instance they started in.

**Changed Files**

- `sky_coinsystem/fxmanifest.lua`
- `sky_coinsystem/source/*` — delete and reinsert
- `sky_coinsystem/config/locales/*`

<update-guide from="2.5.1" resource="sky_coinsystem" to="2.6.0">
<template v-slot:simplified="">

### 1. Back up and stop

Download Sky Coin System V2 2.6.0. Start from 2.5.1 or complete the intervening update guides first. Back up the installed resource and its configuration and data, then stop the server.

### 2. Install the matching files

Open the installed `sky_coinsystem` folder containing `fxmanifest.lua`. Delete the old `source/` folder and copy in the complete new one. Replace `fxmanifest.lua` and the entire `config/locales/` directory from the same package, then reapply your own translations.

### 3. Keep settings and configure

Keep the existing `config/config.lua` you downloaded from the online Configurator. Keep your shop catalogue, prices, stock settings and VIP tier IDs. Coin System uses file settings.

### 4. Database, items and assets

Keep the existing database, balances, VIP receipts and subscriptions. This update needs no SQL import, item changes or asset updates.

### 5. Start and check

Start Sky Base before Coin System. End a shop test drive that starts in a non-default instance and confirm the player returns to that same instance.

</template>

<template v-slot:prepare="">

Download Sky Coin System V2 2.6.0. Start from 2.5.1 or complete the intervening update guides first. Back up the installed resource and its configuration and data, then stop the server.

</template>

<template v-slot:files="">

Open the installed `sky_coinsystem` folder containing `fxmanifest.lua`. Delete the old `source/` folder and copy in the complete new one. Replace `fxmanifest.lua` and the entire `config/locales/` directory from the same package, then reapply your own translations.

</template>

<template v-slot:config="">

Keep the existing `config/config.lua` you downloaded from the online Configurator. Keep your shop catalogue, prices, stock settings and VIP tier IDs. Coin System uses file settings.

</template>

<template v-slot:data="">

Keep the existing database, balances, VIP receipts and subscriptions. This update needs no SQL import, item changes or asset updates.

</template>

<template v-slot:verify="">

Start Sky Base before Coin System. End a shop test drive that starts in a non-default instance and confirm the player returns to that same instance.

</template>
</update-guide>
</template>
</u-changelog-version>
</u-changelog-versions>

<u-changelog-version date="2026-11-11" title="Version 2.5.1">
<template v-slot:body="">

**Highlights**

- Fixed an issue where claiming a first protected Tebex VIP purchase awarded no coins.

**Notable Changes**

- Improved first-purchase handling so inherited tier deliveries identify the purchase and only the highest delivered tier's coin bonus is awarded.
- Improved late tier deliveries so first purchases receive only the missing coin difference, while upgrades award no extra coins and keep the existing expiry.
- Fixed an issue where the shop could fail to load during startup or a resource restart.

**Other Changes**

- Updated the protected-subscription guide with the required lowest-tier command and guidance for older payment receipts.

**Changed Files**

- `sky_coinsystem/TEBEX_VIP.md`
- `sky_coinsystem/config/locales/*`
- `sky_coinsystem/fxmanifest.lua`
- `sky_coinsystem/import.sql`
- `sky_coinsystem/source/*` — delete and reinsert

<update-guide from="2.5.0" resource="sky_coinsystem" to="2.5.1">
<template v-slot:simplified="">

### 1. Back up and stop

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.

### 2. Install the matching files

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`.

### 3. Keep settings and check protected subscriptions

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:

<table>
<thead>
  <tr>
    <th>
      Tebex event
    </th>
    
    <th>
      Server command
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Package purchased, including upgrades
    </td>
    
    <td>
      <code>
        savevipsubscriptioncode {transaction} gold 30
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Subscription renews
    </td>
    
    <td>
      <code>
        saveviprenewalcode {transaction} gold 30
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Package removed/expires
    </td>
    
    <td>
      <code>
        removevipredeemcode {transaction}
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Refund
    </td>
    
    <td>
      <code>
        removevipredeemcode {transaction}
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Chargeback
    </td>
    
    <td>
      <code>
        removevipredeemcode {transaction}
      </code>
    </td>
  </tr>
</tbody>
</table>

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](/docs/scripts/coinsystem/vip-tiers).

### 4. Keep payment history and let the database update

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.

### 5. Start and check

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.

</template>

<template v-slot:prepare="">

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.

</template>

<template v-slot:files="">

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`.

</template>

<template v-slot:config="">

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:

<table>
<thead>
  <tr>
    <th>
      Tebex event
    </th>
    
    <th>
      Server command
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Package purchased, including upgrades
    </td>
    
    <td>
      <code>
        savevipsubscriptioncode {transaction} gold 30
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Subscription renews
    </td>
    
    <td>
      <code>
        saveviprenewalcode {transaction} gold 30
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Package removed/expires
    </td>
    
    <td>
      <code>
        removevipredeemcode {transaction}
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Refund
    </td>
    
    <td>
      <code>
        removevipredeemcode {transaction}
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Chargeback
    </td>
    
    <td>
      <code>
        removevipredeemcode {transaction}
      </code>
    </td>
  </tr>
</tbody>
</table>

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](/docs/scripts/coinsystem/vip-tiers).

</template>

<template v-slot:data="">

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.

</template>

<template v-slot:verify="">

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.

</template>
</update-guide>
</template>
</u-changelog-version>

<u-changelog-version date="2026-11-09" title="Version 2.5.0">
<template v-slot:body="">

**Highlights**

- Added protected Tebex VIP subscription commands that separate first purchases and upgrades from paid renewal coin rewards.
- Improved customization purchases with localized error messages that preserve the player's entered plate, phone number or name.

**Notable Changes**

- Improved VIP delivery handling so repeated payment commands cannot repeatedly award coins or extend the same membership.
- Improved upgrades so an existing paid membership keeps its expiry and cumulative tier commands select the highest applicable tier.
- Added payment-linked VIP removal that works for online and offline owners without revoking a newer payment's membership.
- Improved phone-number purchases with validation before payment and clearer confirmed-refund or unconfirmed-purchase messages.
- Fixed an issue where repeated shop entries using the same limited-stock key could attempt to create the stock row more than once.

**Other Changes**

- Improved name customization so nonempty first and last names are preserved instead of being reduced to ASCII word fragments.
- Improved VIP changes so the open shop reflects a removed membership immediately.
- Included a protected-subscription setup guide with the downloaded resource.

**Changed Files**

- `sky_coinsystem/DATABASE_MIGRATION.md`
- `sky_coinsystem/INSTALL.md`
- `sky_coinsystem/README.md`
- `sky_coinsystem/TEBEX_VIP.md`
- `sky_coinsystem/config/locales/*`
- `sky_coinsystem/fxmanifest.lua`
- `sky_coinsystem/import.sql`
- `sky_coinsystem/source/*` — delete and reinsert

<update-guide from="2.4.7" resource="sky_coinsystem" to="2.5.0">
<template v-slot:simplified="">

### 1. Back up and stop

Back up the installed `sky_coinsystem` folder and all Coinsystem database tables, preserving balances, VIP memberships, stock, redeem codes, pending rewards and payment history. Stop the server for maintenance. Download **Coinsystem 2.5.0** and update **Sky Base to 1.52.0**. Use **oxmysql** in Base for the new transactional VIP subscription commands. Jobs Base is not required.

### 2. Install the matching files

Delete the installed `sky_coinsystem/source` directory and insert the complete new `source` directory. Replace `fxmanifest.lua`, `import.sql`, `DATABASE_MIGRATION.md`, `INSTALL.md`, `README.md` and `TEBEX_VIP.md` from the same download. Refresh the full `config/locales` directory, including the new `customization.lua`. Preserve explicitly edited message values in matching new entries and keep every supplied key.

### 3. Keep settings and configure the update

Keep `config/config.lua`, current tier IDs/order, prices, custom shop entries, stock settings and identity mode unchanged. No new Config value is needed. `/jobconfig` does not manage Coinsystem. The new customization messages follow `Locales.locale`; older configurations without that marker use the selected Base language.

**Optional: convert Tebex subscriptions to protected deliveries.** Existing manual codes can keep their current behavior. To use the new subscription path, finish the resource/database update first, then configure every subscription package in the Tebex control panel:

1. Match every command's tier ID to `Config.VIP.tiers` in `config/config.lua`, with tiers ordered from lowest to highest in both the file and Tebex. Choose the intended game server and allow offline execution.
2. Replace old subscription `savevipredeemcode` commands. Remove separate purchase/upgrade coin rewards such as `saveredeemcode`, `givecoins` and global package rewards, so they do not pay an additional bonus.
3. For a tier whose exact ID is `gold`, configure these event commands:

<table>
<thead>
  <tr>
    <th>
      Tebex event
    </th>
    
    <th>
      Server command
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Package purchased, including upgrades
    </td>
    
    <td>
      <code>
        savevipsubscriptioncode {transaction} gold 30
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Subscription renews
    </td>
    
    <td>
      <code>
        saveviprenewalcode {transaction} gold 30
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Package removed/expires
    </td>
    
    <td>
      <code>
        removevipredeemcode {transaction}
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Refund
    </td>
    
    <td>
      <code>
        removevipredeemcode {transaction}
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Chargeback
    </td>
    
    <td>
      <code>
        removevipredeemcode {transaction}
      </code>
    </td>
  </tr>
</tbody>
</table>

1. Replace `gold` with your actual tier ID. Keep the same day count across tiers; 30 is the default, and whole values from 1 to 366 are supported. This is a fixed day count rather than a calendar month. Use one subscription per purchase and schedule removal at the actual end of the paid period, including after cancellation.
2. In `config/config.lua`, find `Config.Menu.showRedeemCode` and keep it `true` so players can claim their payment ID using the shop code field. First purchases and upgrades award zero coins. Paid renewals award the tier's `monthlyCoins` once. A payment period starts when Tebex delivery is recorded; an upgrade retains the current membership's expiry.
3. Keep all claimed and removed delivery rows. Removal blocks that payment code and revokes only a membership linked to that payment; it does not remove a newer payment's membership or subtract coins already awarded. Already-claimed legacy memberships cannot be linked retroactively. Do not resend old transactions as new deliveries.

Full setup: [Tebex VIP Tiers](/docs/scripts/coinsystem/vip-tiers).

### 4. Database, items and assets

Coinsystem's existing startup migrator automatically creates `coinsystem_vip_deliveries`, adds `coinsystem_users.vip_delivery_code` and its index, and checks the required schema before the resource becomes ready. The database user needs CREATE/ALTER and read/write permission. There is no new AutoExecute switch and no manual SQL import is needed for this update; the included `import.sql` is the current schema reference. Do not reset or replay the old V1 migration.

Keep `coinsystem_vip_deliveries` in backups: its claimed/revoked history protects against replay after restarts and links memberships to their removal payments. Fix any schema-permission failure before using the new commands. No new inventory item, image or streamed asset is required.

### 5. Start and check the result

Start the existing SQL/framework/inventory/phone and other configured integrations, then `sky_base`, then `sky_coinsystem`; wait for successful database readiness and reconnect after the full restart. If using Sky Phone number customization, install the matching Phone update supporting number-change validation before Base/Coinsystem; keep its device/SIM setup.

Try invalid customization input: the error should follow the selected language and preserve the entered value. If a purchase or refund result is unconfirmed, check the actual balance/provider result before buying again.

If enabling protected Tebex subscriptions, use controlled test payments to check first purchase, upgrade, paid renewal, repeated delivery, removal before and after claiming, offline removal, and removing an older payment after a newer membership is active.

</template>

<template v-slot:prepare="">

Back up the installed `sky_coinsystem` folder and all Coinsystem database tables, preserving balances, VIP memberships, stock, redeem codes, pending rewards and payment history. Stop the server for maintenance. Download **Coinsystem 2.5.0** and update **Sky Base to 1.52.0**. Use **oxmysql** in Base for the new transactional VIP subscription commands. Jobs Base is not required.

</template>

<template v-slot:files="">

Delete the installed `sky_coinsystem/source` directory and insert the complete new `source` directory. Replace `fxmanifest.lua`, `import.sql`, `DATABASE_MIGRATION.md`, `INSTALL.md`, `README.md` and `TEBEX_VIP.md` from the same download. Refresh the full `config/locales` directory, including the new `customization.lua`. Preserve explicitly edited message values in matching new entries and keep every supplied key.

</template>

<template v-slot:config="">

Keep `config/config.lua`, current tier IDs/order, prices, custom shop entries, stock settings and identity mode unchanged. No new Config value is needed. `/jobconfig` does not manage Coinsystem. The new customization messages follow `Locales.locale`; older configurations without that marker use the selected Base language.

**Optional: convert Tebex subscriptions to protected deliveries.** Existing manual codes can keep their current behavior. To use the new subscription path, finish the resource/database update first, then configure every subscription package in the Tebex control panel:

1. Match every command's tier ID to `Config.VIP.tiers` in `config/config.lua`, with tiers ordered from lowest to highest in both the file and Tebex. Choose the intended game server and allow offline execution.
2. Replace old subscription `savevipredeemcode` commands. Remove separate purchase/upgrade coin rewards such as `saveredeemcode`, `givecoins` and global package rewards, so they do not pay an additional bonus.
3. For a tier whose exact ID is `gold`, configure these event commands:

<table>
<thead>
  <tr>
    <th>
      Tebex event
    </th>
    
    <th>
      Server command
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Package purchased, including upgrades
    </td>
    
    <td>
      <code>
        savevipsubscriptioncode {transaction} gold 30
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Subscription renews
    </td>
    
    <td>
      <code>
        saveviprenewalcode {transaction} gold 30
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Package removed/expires
    </td>
    
    <td>
      <code>
        removevipredeemcode {transaction}
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Refund
    </td>
    
    <td>
      <code>
        removevipredeemcode {transaction}
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Chargeback
    </td>
    
    <td>
      <code>
        removevipredeemcode {transaction}
      </code>
    </td>
  </tr>
</tbody>
</table>

1. Replace `gold` with your actual tier ID. Keep the same day count across tiers; 30 is the default, and whole values from 1 to 366 are supported. This is a fixed day count rather than a calendar month. Use one subscription per purchase and schedule removal at the actual end of the paid period, including after cancellation.
2. In `config/config.lua`, find `Config.Menu.showRedeemCode` and keep it `true` so players can claim their payment ID using the shop code field. First purchases and upgrades award zero coins. Paid renewals award the tier's `monthlyCoins` once. A payment period starts when Tebex delivery is recorded; an upgrade retains the current membership's expiry.
3. Keep all claimed and removed delivery rows. Removal blocks that payment code and revokes only a membership linked to that payment; it does not remove a newer payment's membership or subtract coins already awarded. Already-claimed legacy memberships cannot be linked retroactively. Do not resend old transactions as new deliveries.

Full setup: [Tebex VIP Tiers](/docs/scripts/coinsystem/vip-tiers).

</template>

<template v-slot:data="">

Coinsystem's existing startup migrator automatically creates `coinsystem_vip_deliveries`, adds `coinsystem_users.vip_delivery_code` and its index, and checks the required schema before the resource becomes ready. The database user needs CREATE/ALTER and read/write permission. There is no new AutoExecute switch and no manual SQL import is needed for this update; the included `import.sql` is the current schema reference. Do not reset or replay the old V1 migration.

Keep `coinsystem_vip_deliveries` in backups: its claimed/revoked history protects against replay after restarts and links memberships to their removal payments. Fix any schema-permission failure before using the new commands. No new inventory item, image or streamed asset is required.

</template>

<template v-slot:verify="">

Start the existing SQL/framework/inventory/phone and other configured integrations, then `sky_base`, then `sky_coinsystem`; wait for successful database readiness and reconnect after the full restart. If using Sky Phone number customization, install the matching Phone update supporting number-change validation before Base/Coinsystem; keep its device/SIM setup.

Try invalid customization input: the error should follow the selected language and preserve the entered value. If a purchase or refund result is unconfirmed, check the actual balance/provider result before buying again.

If enabling protected Tebex subscriptions, use controlled test payments to check first purchase, upgrade, paid renewal, repeated delivery, removal before and after claiming, offline removal, and removing an older payment after a newer membership is active.

</template>
</update-guide>
</template>
</u-changelog-version>

::
