@rbxts/premium-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

PremiumWrapper (Redux)

PremiumWrapper is a wrapper module which makes it extremely simplistic to add benefits for premium users.

There is no documentation however, the API is marked with LuaDoc (supported by RobloxLSP) and TSDoc.

Examples

Lua:

local PremiumWrapper = require(path.to.pw);
local wrapper = PremiumWrapper.new(); -- Creates connections, returns the wrapper

wrapper:BindOnPremiumJoin(function(player)
    print(wrapper:PlayerIsPremium(player)); -- Always true

    -- Etc
end)

TypeScript:

import PremiumWrapper from '@rbxts/premium-wrapper';
let wrapper = new PremiumWrapper(); // Creates connections, returns the wrapper

wrapper.BindOnPremiumJoin((player) => {
    print(wrapper.PlayerIsPremium(player)) // Always true

    // Etc
})

Installation

Roblox model:

GitHub releases:

npm (for Roblox-ts users):

npm i @rbxts/premium-wrapper

Package Sidebar

Install

npm i @rbxts/premium-wrapper

Weekly Downloads

13

Version

1.0.0

License

MIT

Unpacked Size

38.2 kB

Total Files

9

Last publish

Collaborators

  • returnedtrue