Coder Social home page Coder Social logo

tutur1004 / milebanks Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 120 KB

Minecraft Bukkit money management plugin. Tag-based player groups, Elasticsearch logs transactions and visualizes detailed history. Developers can control custom tags using API

Java 100.00%
bukkit economy minecraft plugin graph kibana dashboard data

milebanks's Introduction

MileBanks - Minecraft Banking Plugin

MileBanks is a powerful Minecraft plugin developed by Milekat, designed to bring a comprehensive banking system to your Minecraft server. The plugin includes an API and various commands for managing player accounts and their associated tags.

Features

  • Command: /money

    • Admin command requiring 'mile-banks.admin' permission.
    • Perform actions such as adding, withdrawing, and setting money in a player's account.
    • View tags associated with a player.
  • Tag System

    • Central to the plugin, the tag system allows custom parameters to be associated with players.
    • Players can be grouped into different categories using tags.
    • Enables players to have accounts in multiple groups.
  • Complete Transaction History and Player Account Storage

    • MileBanks ensures a comprehensive record of all transactions and player accounts.
    • Leveraging Elasticsearch, the plugin provides the foundation for powerful analytics and data visualization.
    • Explore possibilities with Elastic + Kibana for creating real-time in-game graphs, enriching the server experience.
  • API

    • The plugin includes a robust API ('banks-api') that provides complete control over player accounts.
    • Developers can leverage the API to manage accounts programmatically.
    • Offers flexibility for creating custom features and integrations with other plugins.

Requirements

  • Elasticsearch Server
    • MileBanks requires an Elasticsearch server with a minimum version of 7.
    • Connection information should be configured in the config.yml file.
  • Bukkit/Spigot/Paper Server
    • MileBanks is a Bukkit plugin and requires a Bukkit/Spigot/Paper server to run.
    • The plugin is compiled with Java 17, to support minor version, please rebuild by yourself.
    • The plugin has been tested on Paper 1.20.4.

Installation

  1. Download the MileBanks plugin from MileBanks GitHub Repository.

  2. Ensure that Elasticsearch server is set up with version 7 or higher.

  3. Fill the Elasticsearch connection details in the config.yml file.

  4. Add the "banks-api" to your project:

    • Find the API in the GitHub packages of the project here.
    • Include the API in your plugin by calling MileBanksAPI#getApi.
    • Handle the potential exception "ApiUnavailable."

Example Code (Loading API and adding money to a player's account)

try {
    // Get the API
    MileBanksAPI mileBanksAPI = MileBanksAPI.getApi();
    // Use the API for further functionality ...
    ...
    // Example: Deposit 1000 to the player's account with tags
    Map<String, String> tags = new HashMap<>();
    tags.put("uuid", player.getUniqueId().toString());
    tags.put("squad", "eagle");
    tags.put("faction", "north");
    // Update the player's tags
    mileBanksAPI.setPlayerTags(playerUuid, tags);
    // Add money to the player's account (It will affect all the tags also)
    mileBanksAPI.addMoneyByTags(player.getUniqueId(), tags, 1000, "He killed a dragon!");
} catch (ApiUnavailable e) {
    // Handle API unavailability
    e.printStackTrace();
}

Credits

Support and Issues

For support and reporting issues, please visit the MileBanks GitHub Issues page.

Feel free to contribute to the development of MileBanks by submitting pull requests or suggesting improvements.

Happy gaming!

milebanks's People

Contributors

tutur1004 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.