Closed BallkingCN closed 11 months ago
It does nothing? Are there any errors, does the plugin load? I'll try and test this on my test server nonetheless
Oops, apologies that was a misclick
Oops, apologies that was a misclick
the onlinereward cant be used
Online reward?
Online reward?
yes,it doesnt work since yesterday or 3 days ago
What do you mean by an online reward?
daily-playtime-goals.yml
Gotcha, thank you
Is this the only thing not working on Folia?
Is this the only thing not working on Folia?
maybe?i dont find other error
thanks for ur selfless help make me can use it on folia
Hi, CoolDCB
Sorry for using opening an issue way to request support.
I'm tech support on his server and let me supply more information about our situation.
We are running ActivityRewarder v2.1.3 on our Kaiiju(a folia fork) server.
It does nothing? Are there any errors, does the plugin load? I'll try and test this on my test server nonetheless
No, other functions like daily-rewards can work fine. No, there is no error when I reload the plugin.
We set the refresh-time value in the daily-playtime-goals.yml to 1 and I'm sure the daily-playtime-goals value in the config.yml has been set to true.
The daily-playtime-goals 's problem seems like, it's always setting the value of the last-collected-playtime on 0(I tried to edit it manually and reload the plugin) and never adding up.
daily-playtime-goals:
last-collected-playtime: 0
If you need more information to deal with this problem, just tell me.
Thanks for you selfless help!
Here are the logs when I try to reload. (in this case, I try to get daily-rewards)
[10:59:22 INFO]: Sorano_machi issued server command: /rewards reload
[10:59:22 INFO]: [ActivityRewarder] Successfully loaded 6 reward collections from 'daily-rewards'
[10:59:22 INFO]: [ActivityRewarder] Successfully loaded 7 reward collections from 'daily-goals'
[10:59:23 INFO]: [ActivityRewarder] Loaded item-template: default-reward
[10:59:23 INFO]: [ActivityRewarder] Loaded item-template: redeemable-reward
[10:59:23 INFO]: [ActivityRewarder] Loaded item-template: collected-reward
[10:59:23 INFO]: [ActivityRewarder] Loaded item-template: missed-reward
[10:59:23 INFO]: [ActivityRewarder] Loaded item-template: upcoming-reward
[10:59:23 INFO]: [ActivityRewarder] Loaded item-template: #
[10:59:23 INFO]: [ActivityRewarder] Loaded item-template: P
[10:59:25 INFO]: Sorano_machi issued server command: /rewards
[10:59:30 INFO]: Sorano_machi issued server command: /rewards claim
[10:59:30 INFO]: [Essentials] CONSOLE issued server command: /eco give Sorano_machi 5
This is the perfect place to put this! It's a bug in the plugin itself, I'll have a look into the issue and let you know when I have more information!
This version should resolve this issue, let me know ActivityRewarder-2.1.4-BETA.zip
I've spotted a small bug with this but am cleaning it up currently
Alrighty all should now work: ActivityRewarder-2.1.4-BETA.zip
Thanks for your work, but it is still not fixed. (at least on our server)
I updated and it still looks like before. No error report and the "last-collected-playtime" still does not work.
I opened the debug mode, so I offer you more information.
[14:03:05 INFO]: Sorano_machi issued server command: /rewards reload
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at 'daily-rewards.default'
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to -1
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 1
U[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to small
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@59b7b962
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
}[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from 'daily-rewards.default'
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at 'daily-rewards.day-1'
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to 0
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 0
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to small
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@5792275c
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from 'daily-rewards.day-1'
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at 'daily-rewards.day-7'
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to 0
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 0
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to small
2[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@3be3f0af
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from 'daily-rewards.day-7'
l[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at 'daily-rewards.day-12'
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to 0
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 0
V[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to medium
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@60d3d27
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
$[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from 'daily-rewards.day-12'
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at 'daily-rewards.day-24'
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to 0
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 0
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to medium
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@2446baac
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from 'daily-rewards.day-24'
l[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at 'daily-rewards.day-30'
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to 1
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 0
U[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to large
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@11a13c39
H[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from 'daily-rewards.day-30'
[14:03:05 INFO]: [ActivityRewarder] Successfully loaded 6 reward collections from 'daily-rewards'
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at '{category=small, play-minutes=1, rewards=[{type=command, commands=[eco give %user% 5, tell %user% 您收到了在线奖励]}]}'
Q[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to 0
P[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection minutes set to 1
2[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 0
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to small
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@3fa5fd00
H[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from '{category=small, play-minutes=1, rewards=[{type=command, commands=[eco give %user% 5, tell %user% 您收到了在线奖励]}]}'
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at '{category=small, play-minutes=3, rewards=[{type=command, commands=[eco give %user% 5, tell %user% 您收到了在线奖励]}]}'
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to 0
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection minutes set to 3
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 0
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to small
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@c1c638f
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from '{category=small, play-minutes=3, rewards=[{type=command, commands=[eco give %user% 5, tell %user% 您收到了在线奖励]}]}'
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at '{category=small, play-minutes=5, rewards=[{type=command, commands=[eco give %user% 10, tell %user% 您收到了在线奖励]}]}'
Q[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to 0
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection minutes set to 5
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 0
U[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to small
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@43114ff2
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from '{category=small, play-minutes=5, rewards=[{type=command, commands=[eco give %user% 10, tell %user% 您收到了在线奖励]}]}'
.[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at '{category=small, play-minutes=240, rewards=[{type=command, commands=[eco give %user% 15, tell %user% 您收到了在线奖励]}]}'
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to 0
R[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection minutes set to 240
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 0
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to small
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@5c8f3e13
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from '{category=small, play-minutes=240, rewards=[{type=command, commands=[eco give %user% 15, tell %user% 您收到了在线奖励]}]}'
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at '{category=small, play-minutes=360, rewards=[{type=command, commands=[eco give %user% 20, tell %user% 您收到了在线奖励]}]}'
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to 0
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection minutes set to 360
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 0
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to small
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@4cd2957f
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from '{category=small, play-minutes=360, rewards=[{type=command, commands=[eco give %user% 20, tell %user% 您收到了在线奖励]}]}'
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at '{category=medium, play-minutes=480, rewards=[{type=command, commands=[eco give %user% 30, tell %user% 您收到了在线奖励]}]}'
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to 0
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection minutes set to 480
Y[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 0
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to medium
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@23bd9771
H[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from '{category=medium, play-minutes=480, rewards=[{type=command, commands=[eco give %user% 30, tell %user% 您收到了在线奖励]}]}'
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load reward collection at '{category=large, play-minutes=600, rewards=[{type=command, commands=[eco give %user% 40, tell %user% 您收到了在线奖励]}]}'
Q[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection priority set to 0
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection minutes set to 600
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection repeat frequency set to 0
U[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection category set to large
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Reward collection item set to: me.dave.activityrewarder.utils.SimpleItemStack@6a1a322b
[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Attempting to load rewards
�[14:03:05 INFO]: [ActivityRewarder] DEBUG >> Successfully loaded 1 rewards from '{category=large, play-minutes=600, rewards=[{type=command, commands=[eco give %user% 40, tell %user% 您收到了在线奖励]}]}'
`[14:03:05 INFO]: [ActivityRewarder] Successfully loaded 7 reward collections from 'daily-goals'
�[14:03:06 INFO]: [ActivityRewarder] Loaded item-template: default-reward
[14:03:06 INFO]: [ActivityRewarder] Loaded item-template: redeemable-reward
[14:03:06 INFO]: [ActivityRewarder] Loaded item-template: collected-reward
H[14:03:06 INFO]: [ActivityRewarder] Loaded item-template: missed-reward
J[14:03:06 INFO]: [ActivityRewarder] Loaded item-template: upcoming-reward
x[14:03:06 INFO]: [ActivityRewarder] Loaded item-template: #
[14:03:06 INFO]: [ActivityRewarder] Loaded item-template: P
Last collected playtime will only update when you collect a reward, are daily playtime rewards being given to the player?
(I'm not good at English so there might be some understanding problems.)
I tried using the command /rewards claim
to claim the reward, but it didn't work
We set the refresh-time value in the daily-playtime-goals.yml to 1 and I'm sure the daily-playtime-goals value in the config.yml has been set to true.
and still no error report or else.
No worries!
I see, do you think you could send me your daily-playtime-goals.yml
and also the player who's testing's data file
Sure
name: Sorano_machi
minutes-played: 0
daily-rewards:
day-num: 0
streak-length: 3
highest-streak: 3
start-date: 17-10-2023
collected-dates:
- 16-10-2023
last-collected-date: 16-10-2023
daily-playtime-goals:
last-collected-playtime: 0
# Hourly playtime goals that reset daily
# Time in minutes between checking whether any online players need to receive rewards (-1 to disable)
refresh-time: 1
# Whether rewards should be given when claiming daily rewards
give-with-daily-rewards: false
daily-goals:
- category: small
play-minutes: 1 # 1 Hour
rewards:
- type: command
commands:
- "eco give %user% 5"
- "tell %user% &a&l您收到了在线奖励"
- category: small
play-minutes: 3 # 2 Hours
rewards:
- type: command
commands:
- "eco give %user% 5"
- "tell %user% &a&l您收到了在线奖励"
- category: small
play-minutes: 5 # 3 Hours
rewards:
- type: command
commands:
- "eco give %user% 10"
- "tell %user% &a&l您收到了在线奖励"
- category: small
play-minutes: 240 # 4 Hours
rewards:
- type: command
commands:
- "eco give %user% 15"
- "tell %user% &a&l您收到了在线奖励"
- category: small
play-minutes: 360 # 6 Hours
rewards:
- type: command
commands:
- "eco give %user% 20"
- "tell %user% &a&l您收到了在线奖励"
- category: medium
play-minutes: 480 # 8 Hours
rewards:
- type: command
commands:
- "eco give %user% 30"
- "tell %user% &a&l您收到了在线奖励"
- category: large
play-minutes: 600 # 10 Hours
rewards:
- type: command
commands:
- "eco give %user% 40"
- "tell %user% &a&l您收到了在线奖励"
# The gui is not currently available for this module
gui:
title: " ȑbf2&l每日游玩时间奖励"
# Available templates: DEFAULT, COMPACT
# Read https://dave-12.gitbook.io/activity-rewarder/configuring/gui-templates#custom-templates for more info on
# creating and using templates
template: "DEFAULT"
format:
- "#########"
- "#RRRRRRR#"
- "#########"
Minutes played is 0 is that how it should be?
It appears like playtime tracking was not working correctly on Folia
The issue should be resolved in this build: ActivityRewarder-2.1.4-BETA.zip
The issue should be resolved in this build: ActivityRewarder-2.1.4-BETA.zip
it is successful ,thanks for ur selfless help for us!
No worries at all! Glad I could get it working for you
No worries at all! Glad I could get it working for you
a suggestion,the reward only pay for players when they play,can we make a option to open or close it? "does not include time that players are idle/afk."
thanks for hearing my suggestion,its not a bug
I'm sorry I don't quite understand the suggestion, do you think you could make a new issue regarding this feature request
it dnothing