Skip to main content
The Deno 2 Release Candidate is here
Learn more
method GiveSptCommand.prototype.isItemAllowed
import { GiveSptCommand } from "https://deno.land/x/sptaki@1.2.0/helpers/mod.ts";

A "simple" function that checks if an item is supposed to be given to a player or not

Parameters

templateItem: ITemplateItem

the template item to check

Returns

boolean

true if its obtainable, false if its not