reflexLabs
Search…
Features

Rewards based permission and cooldown time

The plugin allows you to create an unlimited amount of rewards based permission, cooldown and type.

Reward Storage data example:

1
rewards:
2
daily: # reward id - section
3
enabled: true
4
name: '&7&lDaily' // display name
5
permission: daily // %ultimaterewards_reward_daily%
6
cooldown: 1440 // X minutes
7
type: SINGLE // reward type
8
commands:
9
- eco give %player% 200
Copied!

Cooldown Storage data example:

1
cooldowns:
2
daily:
3
LvEUyJPqgYuSbAIa:
4
uuid: 69d883bf-5a0d-4609-9b4f-13afaef4456b
5
rewardID: daily
6
time: 1618166707796
Copied!

Reward Types

type: SINGLE : execute the first command on the list.

1
rewards:
2
daily:
3
type: SINGLE
4
commands:
5
- eco give %player% 200
Copied!

type: MULTIPLE : execute all commands on the list.

1
rewards:
2
gift:
3
type: MULTIPLE
4
commands:
5
- give %player% diamond 1
6
- give %player% emerald 1
7
- give %player% gold_ingot 1
8
- give %player% iron_ingot 1
Copied!

type: RANDOM : execute by random one command from the list.

1
rewards:
2
random:
3
type: RANDOM
4
commands:
5
- give %player% diamond 1
6
- give %player% emerald 1
7
- give %player% gold_ingot 1
8
- give %player% iron_ingot 1
Copied!

Purge System

To save memory and disk space, the purge system will purge every ended cooldown or unexists rewards in cooldown data file or ingame, you can customize the system as you want from config.yml:
1
autoPurge:
2
enabled: true // enable the auto purge
3
debug: false // debug the removed data
4
time: 5 // every x minutes to force purge
Copied!