You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 26, 2018. It is now read-only.
A command to allow the ability to set or reset an individual user's (or all users) kit usage counter. Also the ability to increment/decrement.
The command syntax envisioned is similar to:
/kit setuse <kit> <player|all> [#|+|-]
where:
<kit> = kit name
<player> = player name
= applies to all players
[#] = value to set current number of uses
[+] = increment current number (stops at a maxuses)
[-] = decrement current number (stops at 0)
If last field is blank, the current number of uses is reset to 0
The permissions envisioned:
advancedkits.setuse.self.[kit|*] = allow a user to set for self (protect from Moderator/Admin cheating)
advancedkits.setuse.other.[kit|*] = allow a user to set for others
A configuration flag envisioned:
defaultuses the number of uses expended for a player when a kit is first unlocked. defaults to 0. cannot be greater than maxuses. This will allow for stacking 1 time use kits.
The main use scenario envisioned:
User buys a kit with service such as Buycraft or in-game currency.
Buycraft or game will do one of two things based on whether the purchase is a long term unlock or one time use:
set permission to use kit, then set permission to revoke after time period (Currently works as-is).
decrement the use counter (Requested feature).
If there is a problem with the purchase, a designated admin can manually set|reset|increment|decrement (Requested Feature).