Economy base plugin for Bukkit/Spigot
日本語解説
- UUID Ready
- 1.15 Ready
- Vault Ready
- MySQL(+SQLite) Ready
- Command tab complete
- Easy to use
- API available
- Download this plugin.
- drop in plugins directory.
- Server start.
- config edit.
- reload.
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 |
<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>
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);
}
}