PayDay - Pay your players as they play


#1

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.


PayDay was originally created by HassanS6000 of NEGAFINITY. Original thread.

The plugin was updated to API 5 by Kostronor.


#2

Does it work like this one:

I really miss that plugin.


#3

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.


#4

A new version has been released for PayDay, it is available for download here.


Added ability to disable payments on join.


#5

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


#6

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?


#7

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.


#8

Wanted to way a day or 2 to see how it goes before I commented back. Thanks for the info, this is working great!!!


#9

A new version has been released for PayDay, it is available for download here.


  • Added integration with Nucleus AFK module
  • Target Sponge API 6.0.0

#10

A new version has been released for PayDay, it is available for download here.


  • Fixed config generation

#11

A new version has been released for PayDay, it is available for download here.


  • Updated to SpongeAPI 7.0.0

#12

A new version has been released for PayDay, it is available for download here.


Changes:

  • Added ability to modify messages