Skip to content
Economy plugin for Bukkit/Spigot
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
src/main
.editorconfig
.gitignore
LICENSE
README.md
pom.xml

README.md

Jecon

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

Features

  • UUID Ready
  • 1.13, 1.14 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.
/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.1.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);
    }
}
You can’t perform that action at this time.