Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transactions

GitHub release (latest by date) GPLv3 License

Transactions is an SCP: SL plugin using the Exiled framework. The plugin is supposed to be used as a base for other developers to build ontop of.

Authors

Installation

Download Transactions.dll from the latest release and place inside of the Plugins folder. You will also need to download LiteDB.dll and Heisenberg3666/ConsentManager aswell so that the plugin works.

Support

For support, please create an issue on GitHub or message me on Discord (Heisenberg#3666).

Features

  • Provides a base for other plugins to use to create an economy.
  • Can be used to reduce the amount of databases.

Developers

API Examples

using Transactions.API;
...
Player player = Player.Get("Heisenberg");
TransactionsApi.SpawnCoin(player, 100);
...
if (TransactionsApi.PlayerExists(player)) // Checks if a player exists within the database
{
    Log.Debug(TransactionsApi.GetPoints(player)); // Gets the amount of points that a player has
    TransactionsApi.AddPoints(player, 100); // Give points to a player
    Log.Debug(TransactionsApi.FormatPoints(100)); // Formats the integer into a string customised in the Config
}
else
{
    TransactionsApi.AddPlayer(player); // Registers a player in the database if they are not in there
    TransactionsApi.SetPoints(player, 100); // Sets the amount of points a player has
}
...
TransactionsApi.RemovePoints(player, 100); // Removes points from a player
TransactionsApi.RemovePlayer(player); // Removes a player from the database.

License

GPLv3

About

Transactions is an SCP: SL plugin using the Exiled framework. The plugin is supposed to be used as a base for other developers to build ontop of.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages