Implements commands for overriding payouts

This commit is contained in:
2023-12-18 17:21:04 +01:00
parent 9ba486bab4
commit dfba6b2125
10 changed files with 319 additions and 33 deletions

View File

@ -1,4 +1,4 @@
# The default payout if the player has no overrides
# The default payout if the player has no overrides
defaultPayout: 10
# The amount of minutes to wait between each payment
paymentDelay: 60
@ -6,9 +6,9 @@ paymentDelay: 60
displayPaymentMessage: true
# The amount of hours until a bonus is given. Set to -1 to disable.
hoursUntilBonus: 100
# A multiplier used to increase or decrease the time bonus
# A multiplier used to increase or decrease the time bonus ((hours played / hours until bonus) * bonusMultiplier) + payout
bonusMultiplier: 1
# The percentage of the payment to pay AFK players
# The percentage of their normal payout to pay AFK players
afkPercentage: 0
# Overrides for specific groups
groupPayouts: [ ]

View File

@ -14,8 +14,25 @@ commands:
permission: timeismoney.reload
description: Reloads the plugin
usage: /<command>
setgrouppayout:
permission: timeismoney.admin
description: Sets the payout for a permission group
usage: /<command> <group name> <payout>
setplayerpayout:
permission: timeismoney.admin
description: Sets the payout for a player
usage: /<command> <player name/uuid> <payout>
permissions:
timeismoney.*:
description: Allows usage of all commands
default: false
children:
- timeismoney.reload
- timeismoney.admin
timeismoney.reload:
description: Allows usage of the /reload command
default: false
timeismoney.admin:
description: Allows usage of configuration commands
default: false