Description
A simple Minecraft plugin for keeping out players that didn't pay their share of the server costs.
Disclaimer: This plugin does not handle monetary transactions. The users pay you via third party services, and you register the transaction in the accounting.csv file.
In-game commands
/oweCheck your debt/owe <user>Check another player's debt
Server config
The first time that the server runs on it have the PayToPlay plugin, it crates two new files.
config.ymlaccounting.csv
config.yml
PayToPlay:
HoursPerCharge: 15 # Number of hours to count as one charge
AmountPerCharge: 1 # Number of dollars/euros to make per charge
DebtToKick: 3 # Number of accumulated debt to kick a player, until they pay
CurrencyChar: € # Character to use for currency display
WorkerTicks: 1200 # Number of ticks to wait between debt checks (20 ticks = 1 second, 1200 ticks = 1 minute)
accounting.csv
This file is used to store the player's hours and the amount they paid.
- The first column is the player's name (case insensitive)
- The second column is the total of money that they have paid to you.
bruneo,32.0
johndoe,15.23
javasucks,0
Why is the db CSV instead of a SQLite or something else?
The reason is simple, for admin flexibility.
- If someone pays you, and you are on vacation or something:
- You can edit the CSV file from your phone (if you have server access).
- If someone pays you, and the server is offline:
- You can edit the CSV with the server offline
- With SQLite, the server would need to be active in order to update the database.

