GithubHelp home page GithubHelp logo

jecon's Introduction

Jecon

Economy base plugin for Bukkit/Spigot
日本語解説

Features

  • UUID Ready
  • 1.15 Ready
  • Vault Ready
  • MySQL(+SQLite) Ready
  • Command tab complete
  • Easy to use
  • API available

Installation

  1. Download this plugin.
  2. drop in plugins directory.
  3. Server start.
  4. config edit.
  5. reload.

Command/Permission

Command Permission Description Default
/money jecon.show Show your balance. ALL
/money show [player] jecon.show.other Show [player] balance. OP
/money pay <player> <amount> jecon.pay Send <amount> to <player>. ALL
/money set <player> <balance> jecon.set Set the balance of <player> to <balance>. OP
/money give <player> <amount> jecon.give Give <amount> to <player>. OP
/money take <player> <amount> jecon.take Take <amount> on <player>. OP
/money create <player> [balance] jecon.create Create <player> account. OP
/money remove <player> jecon.remove Remove <player> account. OP
/money top [page] jecon.top Show billionaires ranking. OP
/money convert jecon.convert Convert database. OP
/money reload jecon.reload Reload the config. OP
/money version jecon.version Show version and check new version. OP
/money help N/A Show helps. ALL

API

Maven

<project>
    <repositories>
        <repository>
            <id>himajyun-repo</id>
            <url>https://himajyun.github.io/mvn-repo/</url>
        </repository>
    </repositories>
    
    <dependencies>
        <dependency>
            <groupId>jp.jyn</groupId>
            <artifactId>Jecon</artifactId>
            <version>2.2.1</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
</project>

Usage

public class Main extends JavaPlugin {
    private Jecon jecon;

    @Override
    public void onEnable() {
        // get plugin
        Plugin plugin = Bukkit.getPluginManager().getPlugin("Jecon");
        if(plugin == null || !plugin.isEnabled()) {
            // not available
            getLogger().warning("Jecon is not available.");
        }

        this.jecon = (Jecon) plugin;
    }

    public void usage(UUID uuid) {
        // get
        jecon.getRepository().getDecimal(uuid);

        // set
        jecon.getRepository().set(uuid, BigDecimal.ZERO);
    }
}

jecon's People

Contributors

himajyun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jecon's Issues

the plugin is not successfully hooked into Vault.

steps to reproduce:
Install Jecon and another plugin that hooks into Vault (iConomy, Essentials, etc...)
show balance from these plugins.

expected behavior:
show the same amount of money.

actual behavior:
showing differently.
bbc4e8c0437337d3ad80247fb6a24a81

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.