@ariusii/intersect.ts
Version:
The Intersect Engine API Client Library based on TS.
31 lines • 1.61 kB
TypeScript
/**
* This is the Players Class, it contains all the methods to handle the Players.
* Those actions do not require any Query Role.
* @class Players
* @link https://docs.freemmorpgmaker.com/en-US/api/v1/endpoints/players.html
* @author AriusII
*/
export declare class Players {
private _url;
private _token;
constructor(_url: string, _token: string);
playersList(page: number, pageSize: number, limit: number): Promise<any>;
playerRank(page: number, pageSize: number, limit: number, sort: string): Promise<any>;
playersOnline(page: number, count: number): Promise<any>;
playerOnlineCount(): Promise<any>;
playerLookup(player: string): Promise<any>;
playerVariables(player: string): Promise<any>;
playerVariable(player: string, variable: string): Promise<any>;
getPlayerVariableValue(player: string, variable: string): Promise<any>;
setPlayerVariableValue(player: string, variable: string, value: string): Promise<any>;
getPlayerItems(player: string): Promise<any>;
getPlayerInventoryItems(player: string): Promise<any>;
getPlayerBankItems(player: string): Promise<any>;
getPlayerBag(bag: string): Promise<any>;
givePlayerItem(player: string, item: string, amount: number, bankoverflow: boolean): Promise<any>;
takePlayerItem(player: string, item: string, amount: number): Promise<any>;
getPlayerSpells(player: string): Promise<any>;
givePlayerSpell(player: string, spell: string): Promise<any>;
takePlayerSpell(player: string, spell: string): Promise<any>;
}
//# sourceMappingURL=players.d.ts.map