Atlas Token Bank

Verified Atlas Token Bank 1.0

No permission to download

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Website User Information:

On GameServersHub, developers can earn a "Verified" prefix tag for their resources. This tag indicates that the developer has been granted a website role to upload verified resources, which are generally of higher quality than unverified ones. By consistently providing dedicated and quality results for the gaming community, developers can earn this tag and showcase their commitment to providing top-notch content. So, if you're looking for the best gaming resources, be sure to keep an eye out for the "Verified" tag on GameServersHub.
Atlas Token Bank
Big credits To Michidu for the code concept!

Token Bank

This plugin was created mainly for other plugins to use as an API and central database for Tokens. As a plugin developer, if you have functions or commands you want to control by tokens, you can use this plugin's API to allow server owners to limit the use of specific commands.
Whether a command can be executed or not by a player depends on the amount of tokens that they have stored.
Server owners can decide to either set up different types of token, or have everything connected to one token type.

Supported Plugins:
Dino Colour Commands
Dino Tracker
More TBA

Dependencies:
MySQL / MariaDB

What it's supposed to do:
- Store/control tokens in MySQL/MariaDB
- Handle API to other plugins
- Display tokens for players
- More functions to come!

What it's not supposed to do:
- Handle logic for tokens checks
- Other plugins command

Commands:
Chat: /tokens - Display all tokens for the player

Console & RCON:
AddTokens <steam_id> <amount> <token_type> - Add the specified token type and the token amount
ChangeTokens <steam_id> <amount> <token_type> - Change the specified token type and the token amount (And updates Spent if it's decreasing)
SetTokens <steam_id> <amount> <token_type> - Sets the specified token type and the token amount (Updates only Tokens)
GetPlayerTokens <steam_id> <token_type> - Returns the specified token type and the token amount
ResetTokens - Resets All player's tokens to 0!

For Developers Only:
Token Bank API: https://cdn.discordapp.com/attachments/840771104829472858/845064403540115456/TokenBank_API.zip

C++:
bool TokenBank::Tokens::AddTokens (int amount, uint64 steam_id, std::string type)
Example: TokenBank::Tokens::AddTokens (10, steam_id, command_name)

bool TokenBank::Tokens::SpendTokens (int amount, uint64 steam_id, std::string type)
Example: TokenBank::Tokens::SpendTokens (10, steam_id, command_name)

bool TokenBank::Tokens::SetTokens(uint64 steam_id, int amount std::string type)
Example: TokenBank::Tokens::SpendTokens (10, steam_id, command_name)

int TokenBank::Tokens::GetTokens (uint64 steam_id, std::string type)
Example: TokenBank::Tokens::GetTokens (steam_id, command_name)

int TokenBank::Tokens::GetTotalSpentTokens (uint64 steam_id, std::string type)
TokenBank::Tokens::GetTotalSpentTokens (steam_id, command_name)

Latest updates

  1. 1.0

    Initial Release
Tempest Dedicated Servers
Tebex
Back
Top