S-Economy
Just a simple and lightweight economy system.
S-Economy
Overview
S-Economy is a simple and lightweight economy plugin, utilizing Vault as the backend. S-Economy requires the plugin Vault.
Features
- Reload the plugin directly in-game - Customizable messages - Update-Checker (Automatically checks for updates on startup and when an admin joins.) - Option to toggle/configure the commands in `commands.yml` - Balance command (Aliases: /balance, /bal, /money, /coins) - Economy command (Manage player balances) - Pay command (Transfer money to other players) - More features in development ...
Commands
- /s-economy about - Displays information about the plugin - /s-economy reload - Reloads the plugin in-game - /balance - Shows the own balance - /balance <player> - Shows the balance the given player has - /economy give <player> <amount> - Gives a player money - /economy take <player> <amount> - Takes a player money - /economy set <player> <amount> - Sets the money of a player to the given amount - /economy reset <player> - Resets a player's money - /economy check <player> - Checks a player money (Same as /balance) - /pay <player> <amount> - Sends the given amount of money to the other player - /pay * <amount> - Sends the given amount of money to all online players - /balancetop - Check top 10 players by balance
Permissions
- sEconomy.admin - sEconomy.command.balance.self - sEconomy.command.balance.other - sEconomy.command.eco.give - sEconomy.command.eco.take - sEconomy.command.eco.set - sEconomy.command.eco.reset - sEconomy.command.eco.check - sEconomy.command.pay - sEconomy.command.pay.all - sEconomy.command.balancetop - sEconomy.exempt.balancetop
Configs
View config.yml
```yml
This plugin utilizes MiniMessage for messages.
For more information, visit https://docs.adventure.kyori.net/minimessage.html
file-version: 1
The prefix before every message
prefix: "<#ECC868><b>S-Economy</b> <dark_gray>⚡ <gray>"
The messages file to use
langFile: 'english'
Settings for the update checker
updateChecker:
Send a message to the console when a new version is available
consoleMessage: true
Send a message to the player when a new version is available
This requires the permission 'sEconomy.admin' or to be an OP
playerMessage: true
All settings about economy
economy:
The name of the economy
economyName: singular: "Coin" plural: "Coins"
The starting balance of new players
startingBalance: 5000.0
The currency symbol
currencySymbol: "$"
The format of the balance
format: "%currencySymbol%%amount%"
Displayed decimals
fractionalDigits: 2
The format of the balances
decimalFormat:
Here you can define the format of the balance
format: "#,###.##"
Here you can define the decimal separator
Samples:
'EN' -> '1,000.00'
'DE' -> '1.000,00'
'FR' -> '1 000,00'
locale: 'EN'
Settings for the commands
commands: economy:
The amount completions for the /economy command
amountCompletions: [10, 50, 100] pay:
The amount completions for the /pay command
amountCompletions: [10, 50, 100]
The minimum amount of money to pay
minAmount: 5.0 ```
View commands.yml
```yml
This plugin utilizes MiniMessage for messages.
For more information, visit https://docs.adventure.kyori.net/minimessage.html
file-version: 1
Settings for /balance
balance:
Should the command be enabled?
enabled: true
What aliases should be used for this command?
aliases: - bal - balance - money - coins
Settings for /economy
economy: enabled: true aliases: - econ - eco
Settings for /pay
pay: enabled: true
'[]' means no aliases
aliases: []
Settings for /balancetop
balancetop: enabled: true aliases: - baltop - moneytop - coinstop ```
View english.yml
```yml
This plugin utilizes MiniMessage for messages.
For more information, visit https://docs.adventure.kyori.net/minimessage.html
file-version: 1
General messages
general: noPlayer: "<gray>You <red>must be a player<gray> to execute this command!" noPerms: "<gray>You <red>do not have permission<gray> to execute this command!" playerNotFound: "<gray>The given player <red>could not be found<gray>!"
Other messages
other: updateChecker: "<gray>An <yellow>update <gray>is available! You are using version <red>v%current-version%<gray>, the latest version is <green>%latest-version%<gray>!"
Command messages
commands:
Messages for the /s-economy command (main plugin command)
s-economy: usage: "<gray>Please use <red>/s-economy <about/reload><gray>!" about: "<gray>S-Economy v%version% <dark_gray>- <gray>%author%" reload: reloading: "<yellow>Reloading <gray>S-Economy..." reloaded: "<green>Successfully reloaded <gray>S-Economy! <dark_gray>(%time%ms)" error: "<gray>An <red>error occurred <gray>while reloading S-Economy! Check the console for details." balance: usage: "<gray>Please use <red>/balance <player><gray>!" self: "<gray>Your balance is <yellow>%balance%<gray>!" other: "<gray>The balance of <white>%player% <gray>is <yellow>%balance%<gray>!" economy: usage: "<gray>Please use <red>/economy <give/take/set/reset/check> <player> <?amount><gray>!" noAmount: "<gray>The given amount is <red>invalid<gray>!" give: usage: "<gray>Please use <red>/economy give <player> <amount><gray>!" success: "<gray>You have given <white>%player% <yellow>%balance%<gray>!" all: <gray>You have given <white>all players <yellow>%balance%<gray>! take: usage: "<gray>Please use <red>/economy take <player> <amount><gray>!" success: "<gray>You have taken <white>%player% <yellow>%balance%<gray>!" all: <gray>You have taken <white>from all players <yellow>%balance%<gray>! set: usage: "<gray>Please use <red>/economy set <player> <amount><gray>!" success: "<gray>You have set the balance of <white>%player% <gray>to <yellow>%balance%<gray>!" all: <gray>You have set the balance of <white>all players <gray>to <yellow>%balance%<gray>! reset: usage: "<gray>Please use <red>/economy reset <player><gray>!" success: "<gray>You have reset the balance of <white>%player%<gray>!" all: <gray>You have reset the balance of <white>all players<gray>! check: usage: "<gray>Please use <red>/economy check <player><gray>!" success: "<gray>The balance of <white>%player% <gray>is <yellow>%balance%<gray>!" allFailed: <gray>You <red>cannot check the balance of all players at once<gray>! Please specify a player. pay: usage: "<gray>Please use <red>/pay <player/*> <amount><gray>!" noAmount: "<gray>The given amount is <red>invalid<gray>!" notEnoughMoney: "<gray>You <red>do not have enough money<gray>!" selfPay: "<gray>You <red>cannot pay yourself<gray>!" success: player: "<gray>You have paid <white>%player% <yellow>%balance%<gray>!" target: "<gray>You have received <yellow>%balance%<gray> from <white>%player%<gray>!" all: "<gray>You have paid <white>all players <yellow>%balance%<gray>!" ```
View german.yml
```yml
This plugin utilizes MiniMessage for messages.
For more information, visit https://docs.adventure.kyori.net/minimessage.html
file-version: 1
Generelle Nachrichten
general: noPlayer: "<gray>Dies können <red>nur Spieler<gray> ausführen!" noPerms: "<gray>Du hast <red>keine Berechtigung<gray> für diesen Befehl!" playerNotFound: "<gray>Der angegebene Spieler <red>konnte nicht gefunden<gray> werden!"
Other messages
other: updateChecker: "<gray>Es ist ein <yellow>Update verfügbar<gray>! Die momentane Version ist die <red>v%current-version%<gray>, die neuste Version ist die <green>%latest-version%<gray>!"
Befehlsnachrichten
commands:
Nachrichten für den /s-economy Befehl (Hauptbefehl des Plugins)
s-economy: usage: "<gray>Bitte nutze <red>/s-economy <about/reload><gray>!" about: "<gray>S-Economy v%version% <dark_gray>- <gray>%author%" reload: reloading: "<gray>S-Economy <yellow>wird neugeladen<gray>..." reloaded: "<gray>S-Economy wurde <green>erfolgreich neugeladen<gray>! <dark_gray>(%time%ms)" error: "<red>Fehler beim Neuladen <gray>von S-Economy! Überprüfe die Konsole für Details." balance: usage: "<gray>Bitte nutze <red>/balance <Spieler><gray>!" self: "<gray>Dein Kontostand beträgt <yellow>%balance%<gray>!" other: "<gray>Der Kontostand von <white>%player% <gray>beträgt <yellow>%balance%<gray>!" economy: usage: "<gray>Bitte nutze <red>/economy <give/take/set/reset/check> <Spieler> <?Betrag><gray>!" noAmount: "<gray>Der angegebene Betrag ist <red>ungültig<gray>!" give: usage: "<gray>Bitte nutze <red>/economy give <Spieler> <Betrag><gray>!" success: "<gray>Du hast <white>%player% <yellow>%balance%<gray> gegeben!" take: usage: "<gray>Bitte nutze <red>/economy take <Spieler> <Betrag><gray>!" success: "<gray>Du hast <white>%player% <yellow>%balance%<gray> abgezogen!" set: usage: "<gray>Bitte nutze <red>/economy set <Spieler> <Betrag><gray>!" success: "<gray>Du hast den Kontostand von <white>%player% <gray>auf <yellow>%balance%<gray> gesetzt!" reset: usage: "<gray>Bitte nutze <red>/economy reset <Spieler><gray>!" success: "<gray>Du hast den Kontostand von <white>%player%<gray> zurückgesetzt!" check: usage: "<gray>Bitte nutze <red>/economy check <Spieler><gray>!" success: "<gray>Der Kontostand von <white>%player% <gray>beträgt <yellow>%balance%<gray>!" pay: usage: "<gray>Bitte nutze <red>/pay <Spieler/*> <Betrag><gray>!" noAmount: "<gray>Der angegebene Betrag ist <red>ungültig<gray>!" notEnoughMoney: "<gray>Du hast <red>nicht genügend Geld<gray>!" selfPay: "<gray>Du kannst <red>dir selbst kein Geld geben<gray>!" success: player: "<gray>Du hast <white>%player% <yellow>%balance%<gray> gegeben!" target: "<gray>Du hast <yellow>%balance%<gray> von <white>%player%<gray> erhalten!" all: "<gray>Du hast <white>allen Spielern <yellow>%balance%<gray> gegeben!" ```
Contact
If you encounter any issues or bugs, or have a request for a new feature, please contact me via Discord or join my Discord-Server.
> My discord-name is Losterixx.
> My Discord-Server: Link