Skip to content

Module Test

shmitzas edited this page Nov 10, 2026 · 1 revision

VIP_Test

A trial VIP players take themselves with !viptest, a set number of times. Kind: granter. Requires VIPCore 1.3.0+ and Cookies, which keeps each player's count and cooldown.


Commands

Command Aliases Permission Description
!viptest — None Take a trial VIP
!viptest_reset — viptest.reset Reset every player's trial count, offline players included

!viptest refuses a player who is already VIP, has used every trial or is still on cooldown, and says which. The trial is a local grant: it shows in VIP users and ends like any other.

!viptest_reset sets every count to 0 — 1 for a player whose trial is running — and keeps cooldowns. It reads Cookies' table through the cookies database connection.


Configuration

addons/swiftlys2/configs/plugins/VIP_Test/config.jsonc. Restart after editing.

{
  "vip_test": {
    "VipTestEnabled": true,
    "VipTestDuration": 3600,
    "VipTestCooldown": 86400,
    "VipTestGroup": "group_name",
    "VipTestCount": 2
  }
}
Setting Default Description
VipTestEnabled true false turns !viptest off
VipTestDuration 3600 Trial length in seconds
VipTestCooldown 86400 Seconds from taking a trial until the next can be taken
VipTestGroup "group_name" Group given. Must be in vip_groups.jsonc
VipTestCount 2 Trials per player

Troubleshooting

Problem Cause Solution
Players take trials without limit Cookies isn't installed, so counts aren't kept Install Cookies
The trial has no features VipTestGroup is still group_name Set a group from vip_groups.jsonc
!viptest_reset says Cookies API not available Cookies isn't installed Install it

Clone this wiki locally