TimeGivesYouMoney
Important Information
Update to Version 1.2.0 ASAP. Fixed a security bug.
After updating to Version 1.2.0, you need to replace all the ATM signs.
Description
A plugin which gives players that are online money. Which they need to take out via a command or a ATM, it can also be configured to automatically to given to the player.
You can specify how much money the plugin should payout to different player groups.
Features
- Different payout per minute for different groups.
- A AFK timeout option to ensure that that players that are AFK won't be rich.
- Ability to save the progress on logout and on the shutdown of the server.
- ATM support.
- Support for adding a max earn per day and per session.
Configuration
Configuring the plugin is really simple:
SettingsVersion: 1 #The version of the settings file, You should never change this value! SaveProgressOnShutdown: true #If the server should save the money of all players when it shutdowns Group: #Below here are the configure groups Default: #The Default group AFKTimeout: 5.0 #How long the plugin should wait before stopping paying the player. In minutes! -1 will disable the timeout. MoneyPerMinute: 2.0 #How much money the player should get. In minutes! InstantPayout: false #If the plugin should auto cashout the money, for the player. MaxMoneyEarnPerDay: 20000.0 #How much money the player can earn per 24 hours, from when the server was started. -1 will disable the max money per day. MaxMoneyEarnPerSession: 10000.0 #How much money the can earn from when the player connected. -1 will disable the max money per session. SaveProgressOnLogout: true #If the players money should be saved when he/she logout Language: en-US #The language file TimeGivesYouMoney should use
If you want to add your own group just add a new section with the name under Group. And add AFKTimeout, MoneyPerMinute, InsantPayout, MaxMoneyEarnPerDay and MaxMoneyEarnPerSession. And configure it for your liking.
Like this:
... Group: Default: ... Custom: AFKTimeout: 10.0 MoneyPerMinute: 10.0 InstantPayout: true MaxMoneyEarnPerDay: -1 MaxMoneyEarnPerSession: 100.0 ...
And to make the group active for some players just add the permission tgym.group.custom
Commands
/tgym help - Shows this help. /tgym reload - Reloads the config. /tgym stats - Shows the money earned. /tgym stats [Player] - Shows the money earned for [Player]. /tgym cashout - Cash out your money to your bank account. /tgym cashout [Player] - Cash out [Player]s money to their bank account. /tgym add <Player> <Money> - Add cash to <Player>s TGYM account. /tgym remove <Player> <Money> - Remove cash from <Player>s TGYM account.
Permissions
tgym.reload - Adds the abillity to use /tgym reload tgym.stats.self - Adds the ability to use /tgym stats tgym.stats.other - Adds the ability to use /tgym stats [Player] tgym.cashout.self - Adds the ability to use /tgym cashout tgym.cashout.other - Adds the ability to use /tgym cashout [Player] tgym.add - Adds the ability to use /tgym add <Player> <Money> tgym.remove - Adds the ability to use /tgym remove <Player> <Money> tgym.atm.use - Adds the ability to use ATMs. tgym.atm.create - Adds the ability to create ATMs. tgym.all - Adds all the permissions
Create a ATM
You need to have the tgym.atm.create permissions node in order to create a ATM.
The creation of an ATM is really simple. Just place a sign and type on the first line "[ATM]" and write what you want on the other lines and press done.
And if the text turns a different color, you have done it right!
After that you can either just have the sign which you can right click to cashout you money, or you can place buttons, levers and pressure plates next to the sign and use them for activating the cashout.
Example:
Dependencies
This plugin requires Vault
MCStats
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
You are free to opt-out of submitting data whenever you wish. This will immediately stop sending data for any plugins that supports MCStats / Plugin Metrics. Simply edit plugins/PluginMetrics/config.yml and change opt-out: false to true.
Github
The code is licensed under GPLv2.
Donate
If you want to support me, you can donate.