This is a discussion topic for the Ore project, PayDay. View the full project on Ore for downloads and more information.
PayDay
PayDay is a Sponge plugin that pays players at set intervals.
Usage
A configuration file (payday.conf) is located in the Sponge configuration directory, and allows you to modify how the plugin functions.
timeamount="1"
payonjoin="true"
enableafkpay="true"
timeunit=Hours
payamounts={
"players"= {
"permission"= "*",
"amount"= 50.0
}
}
salarymessage="&6[PayDay]: &7It's PayDay! Here is your salary of {amount} {label}! Enjoy!"
joinmessage="&6[PayDay]: &7Welcome to the server! Here is {amount} {label}! Enjoy!"
Valid time units are:
Nanoseconds
Microseconds
Milliseconds
Seconds
Minutes
Hours
Days
Pay amounts are assigned using the following format:
payamounts={
"my group"= {
"permission"= "*",
"amount"= 50.0
},
"my group 2"= {
"permission"= "requires.this.permission",
"amount"= 19.99
}
}
If the permission is set to *, it will pay all players.
Integration
If the enableafkpay is set to false in the configuration file, and the Nucleus AFK Module is enabled, PayDay will check if the player is AFK before paying them. If the player is found to be AFK, the player will not receive any currency.
It depends on what part of that plugin you want. For this plugin I just stuck with HassanS6000’s basic plugin idea: It will pay players every x minutes (or another time unit). This plugin does not track player time on the server, and the only reward it offers players is payment using the Sponge economy API.
I was looking at this (trying to find a replacement for the Bukkit TimeIsMoney now that I’m using a server that doesn’t support Bukkit plugins). I think this is exactly what I need but I have 1 question before I set it up. I see that different payment levels can be set based on permission levels. If someone is in a group with that permission, will they get the standard payment PLUS the payment for their permission level?
As I type this, I realized I can get around that issue by not setting a payment for * and just setting permission based payments for each rank but I still am curious as to how it would handle have 1 payment setting for * and 1 payment setting for VIP permissions
Also, with the permissions, do I just make one up and set it in my permissions system (using luckperms)
Wondering if I just add a permission to the members group "payday.member and to premium “payday.premium” and define those permission nodes in the payday config, that will work?
If a player has two of the permissions, they will receive both payments, not just one. For setting up the permissions, you make up any random permission, just make sure it is the same permission for LuckPerms and in the PayDay configuration.
Can get a player’s reward if he came from 00:00 to 23:59 ?
I would like the player to receive a reward once a day, no matter what time was in the game
I like the plugin and will be using it, thank you for making it available. I just wish it has a tiny bit more functionality such as,
Option to only pay the player on their first initial login to the server.
Option to pay players on every login to the server, but have a cooldown that can be set, so players can’t log in and out repeatedly to generate money.
Be able to set different pay amounts for login and salary that’s generated every so many time units.