![[IMG]](//proxy.spigotmc.org/317d1b728b04a767ecacdd49f4584ee79a34b13e/68747470733a2f2f6170692e636f64656c6c612e61692f6170692f696d616765732f66336336626630613139353839356530346632313563386566313563323332372e706e67)
DISCLAIMER: THIS PLUGIN WAS MADE USING CODELLA IN 5 MINUTES. IT'S AN ADVANCED AI FOR MINECRAFT PLUGINS.
https://codella.ai
A powerful and flexible daily rewards plugin for Spigot/Paper servers. It allows server owners to create unlimited, fully customized rewards through simple configuration files, encouraging players to log in daily with engaging streak bonuses and a user-friendly GUI.
Features
Unlimited Custom Rewards: Create as many rewards as you want, each in its own YAML file for easy management.
Highly Configurable GUI: Customize the rewards GUI title, size, and filler items to match your server's theme.
Streak Bonuses: Reward player loyalty! Configure special commands to be executed when players claim rewards for several consecutive days.
Permission-Based Rewards: Assign a specific permission to each reward, making it easy to create rank-exclusive or donor-only rewards.
Customizable Item Display: Define a unique item appearance for each reward based on its status: available, already claimed (on cooldown), or locked (no permission).
Configurable Cooldown: Set a global cooldown for how often players can claim their rewards (e.g., every 24 hours).
Join Notifications: Gently remind players to claim their available rewards when they log in.
Full Message Customization: All messages, including the prefix, are fully translatable and customizable in `messages.yml`.
Commands & Permissions
|
/rewards | Opens the daily rewards GUI. Aliases: /daily, /dailyrewards | (None) |
Reward Permissions
You can set a unique permission for each reward in its individual configuration file (e.g., `rewards/vip.yml`).
|
codelladailyrewards.reward.vip | An example permission to claim a specific "vip" reward. |
Configuration
CodellaDailyRewards is managed through three main configuration areas.
config.yml
This file controls the core features of the plugin.
Code (YAML):
# CodellaDailyRewards Configuration
# GUI Settings
gui:
title
:
"&8Daily Rewards"
size
: 27
# Must be a multiple of 9
fill_item
:
"GRAY_STAINED_GLASS_PANE"
# Time in seconds until rewards reset (86400 seconds = 24 hours)
reward_cooldown
: 86400
# Streak Bonus Settings
streak:
enabled
: true
# Bonus commands to execute for each streak level. {player} is a placeholder.
bonuses:
"3"
:
# 3-day streak
-
"eco give {player} 100"
"5"
:
# 5-day streak
-
"eco give {player} 250"
-
"say {player} has a 5-day reward streak!"
# Settings for player join notifications
notifications:
on_join:
enabled
: true
delay
: 60
# Delay in ticks (20 ticks = 1 second)
messages.yml
This file allows you to customize all user-facing messages.
Code (YAML):
prefix
:
"&e[DailyRewards] &r"
# General Messages
reward_claimed
:
"{prefix}&aYou have successfully claimed your {reward_name} reward!"
reward_already_claimed
:
"{prefix}&cYou have already claimed this reward. Come back later!"
no_permission
:
"{prefix}&cYou do not have permission to claim this reward."
gui_opened
:
"{prefix}&aOpening the rewards menu..."
cooldown
:
"{prefix}&cYou must wait {time} before claiming another reward."
player_only
:
"{prefix}&cThis command can only be run by a player."
# Streak Messages
streak_bonus_received
:
"{prefix}&aCongratulations! You received a &e{streak}-day &astreak bonus!"
# Join Notification
join_notification
:
"{prefix}&aYou have pending daily rewards! Type &e/rewards &ato claim them."
rewards/default.yml
This is an example of a reward file. You can create more `.yml` files in the `plugins/CodellaDailyRewards/rewards/` directory to add more rewards.
Code (YAML):
# The GUI slot where the reward item will appear (starts from 0).
slot
: 10
# The name used in messages (e.g., in the 'reward_claimed' message).
display_name
:
"Daily"
# Optional: The permission node required to claim this reward.
# Leave blank or remove for no permission.
permission
:
""
# A list of commands to execute when the reward is claimed.
# Use {player} as a placeholder for the player's name.
commands
:
-
"give {player} diamond 1"
-
"msg {player} Here is your daily reward!"
# --- Item Display Settings ---
# Defines how the item looks in the GUI based on its state.
item_display
:
# When the reward is available to be claimed
available:
material
:
"CHEST"
name
:
"&aDaily Reward"
lore
:
-
"&7Click to claim your daily reward!"
-
""
- "&eRewards
: 1x Diamond
"
# When the reward has already been claimed and is on cooldown
unavailable:
material: "BARRIER
"
name: "&cReward Claimed
"
lore:
- "&7You have already claimed this today.
"
- "&7Please come back in &c
{time_left
}&7.
"
# When the player does not have the required permission
no-permission:
material: "RED_STAINED_GLASS_PANE
"
name: "&cPermission Required
"
lore:
- "&7You do not have permission
"
- "&7to claim this reward.
"
Dependencies
This plugin has no hard dependencies and will work out of the box. For economy-based rewards in commands, you will need a compatible economy plugin like EssentialsX or CMI.
Installation
1. Download the latest version of CodellaDailyRewards.
2. Place the `CodellaDailyRewards.jar` file into your server's `plugins` folder.
3. Restart your server. This will generate the default configuration files.
4. Configure the `config.yml`, `messages.yml`, and add your custom rewards in the `plugins/CodellaDailyRewards/rewards/` directory.
5. Run `/rewards reload` to apply the changes without needing another restart.
![[IMG]](//proxy.spigotmc.org/938118ac38955cb3236b1ec70ec016352bc0fbbb/68747470733a2f2f63736c2e6f72672f7465656e63616d702f77702d636f6e74656e742f75706c6f6164732f73697465732f31322f323032322f30312f646973636f72642e706e67)