Skip to content

HimaJyun/Jecon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jecon

Economy base plugin for Bukkit/Spigot
Build Status

Features

  • UUID Ready
  • 1.13 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 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

<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.0.0</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

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);
    }
}