Configuration

This page details the various configuration settings exposed by NDailyRewards plugin.


Configuration values may change with plugin updates. If you cannot find what you're looking for or think something may be wrong, contact us through our Discord server.

Configuration Viewer

NDailyRewards Configuration

check-updates: true
database:
type: "sqlite"
sqlite:
file: "ndailyrewards.db"
mariadb:
jdbc: "jdbc:mariadb://localhost:3306/ndailyrewards"
username: "root"
password: "password"
cachePrepStmts: true
prepStmtCacheSize: 250
prepStmtCacheSqlLimit: 2048
useServerPrepStmts: true
useLocalSessionState: true
rewriteBatchedStatements: true
cacheResultSetMetadata: true
cacheServerConfiguration: true
elideSetAutoCommits: true
maintainTimeStats: false
events:
auto-claim-reward: false
auto-claim-delay: 10
open-gui-when-available: false
notify-when-available: true
rewards:
reset-when-all-claimed: true
first-join-reward: false
cooldown: 24
reset-time: 24
unlock-after-midnight: false
days:
1:
position: 10
lore:
- "&7&lRewards:"
- "&6- &e1x &6Diamond"
actions:
- "[console] give <player> diamond 1"
- "[message] &6You have claimed your reward!"
- "[sound] ENTITY_EXPERIENCE_ORB_PICKUP:1:1"
2:
position: 11
lore:
- "&7&lRewards:"
- "&6- &e2x &6Diamond"
actions:
- "[console] give <player> diamond 2"
- "[message] &6You have claimed your reward!"
- "[sound] ENTITY_EXPERIENCE_ORB_PICKUP:1:1"
3:
position: 12
lore:
- "&7&lRewards:"
- "&6- &e3x &6Diamond"
actions:
- "[console] give <player> diamond 3"
- "[message] &6You have claimed your reward!"
- "[sound] ENTITY_EXPERIENCE_ORB_PICKUP:1:1"
4:
position: 13
lore:
- "&7&lRewards:"
- "&6- &e4x &6Diamond"
actions:
- "[console] give <player> diamond 4"
- "[message] &6You have claimed your reward!"
- "[sound] ENTITY_EXPERIENCE_ORB_PICKUP:1:1"
5:
position: 14
lore:
- "&7&lRewards:"
- "&6- &e5x &6Diamond"
actions:
- "[console] give <player> diamond 5"
- "[message] &6You have claimed your reward!"
- "[sound] ENTITY_EXPERIENCE_ORB_PICKUP:1:1"
6:
position: 15
lore:
- "&7&lRewards:"
- "&6- &e6x &6Diamond"
actions:
- "[console] give <player> diamond 6"
- "[message] &6You have claimed your reward!"
- "[sound] ENTITY_EXPERIENCE_ORB_PICKUP:1:1"
7:
position: 16
lore:
- "&7&lRewards:"
- "&6- &e7x &6Diamond"
actions:
- "[console] give <player> diamond 7"
- "[message] &6You have claimed your reward!"
- "[sound] ENTITY_EXPERIENCE_ORB_PICKUP:1:1"
gui:
reward:
title: "&6Daily Rewards"
size: 27
display:
available:
material: "EMERALD_BLOCK:1"
name: "&aDay <dayNum>"
lore:
- "&7Your Reward Awaits"
- "&7Click Me to claim your prize!"
- ""
- "<reward-lore>"
claimed:
material: "COAL_BLOCK:1"
name: "&aDay <dayNum>"
lore:
- "&7You have claimed this reward"
- ""
- "<reward-lore>"
next:
material: "COAL_BLOCK:1"
name: "&aDay <dayNum>"
lore:
- "&7Your Reward Will Be Here Soon"
- "&7Wait <time-left>"
- ""
- "<reward-lore>"
unavailable:
material: "BARRIER:1"
name: "&aDay <dayNum>"
lore:
- "&7You have not reached this day yet"
- ""
- "<reward-lore>"
filler:
enable: true
material: "GRAY_STAINED_GLASS_PANE:1"
name: "&7"
lore: []
custom: []
sound:
open:
enabled: true
type: "BLOCK_BARREL_OPEN:1:1"

Config modifications

You can use some new features in the config file, like HEX colors, custom model data, and more.

HEX Colors

In addition to the standard colors defined using the & symbols, more detailed colors can be utilized through HEX coding. You can employ the following format within any text: #ffffff - representing the color white.

You can use this website to pick HEX colors.

Gradient

To apply a gradient effect, you can use this simple format:

<#00FF00>Text with gradient</#FFFF00>

You can use alternative method to create gradient text by using this website.

Custom Model Data

You can use custom model data in the GUI configuration. This feature allows you to use custom textures for items in the GUI. To use this feature, you need to change material field.

gui:
  reward:
    title: "&6Daily Rewards"
    size: 27
    display:
      available:
        material: "CustomModel[<MATERIAL>:<QUANTITY>]{INT}"
        name: "&aDay <dayNum>"
        lore:
          - "&7Your Reward Awaits"
          - "&7Click Me to claim your prize!"
          - ""
          - "<reward-lore>"

Custom player head textures

You can use custom head textures in the GUI configuration. This feature allows you to set custom head for items in the GUI. To use this feature, you need to change material field. Plugin have some other types of custom player heads:

  • URL - Link to head texture
  • UUID - UUID of player
  • BASE64 - Base64 texture string
gui:
  reward:
    title: "&6Daily Rewards"
    size: 27
    display:
      available:
        material: "CustomSkull[PLAYER_HEAD:1]{URL:https://textures.minecraft.net/texture/dba489a53d9465f33836355ad09c22d5d2593e61bfab45fc19062a751c4005a2}"
        name: "&aDay <dayNum>"
        lore:
          - "&7Your Reward Awaits"
          - "&7Click Me to claim your prize!"
          - ""
          - "<reward-lore>"

Custom GUI Buttons

You can use custom GUI buttons in the GUI configuration and add actions to it as in rewards. To use this feature, you need to change custom field.

gui:
  reward:
    ...

    # Custom GUI items
    custom:
      example:
        position: 26
        material: "DIAMOND:1"
        name: "&6Example"
        lore:
          - "&7This is an example button"
        actions:
          - "[message] &6You clicked the example button!"
          - "[sound] ENTITY_EXPERIENCE_ORB_PICKUP:1:1"

In material field you can use all modifications that was written above.

Edit on GitHub

Last updated on