Advent icon

Advent -----

Advent calendar to provide daily rewards from 1st to 24th december



Overview
This plugin provides a simple, yet customizable advent calendar, to reward your users with login rewards from 1st to 24th December.
upload_2021-11-27_23-1-7.png

Features
  • GUI based advent calendar
  • Customizable rewards (items or commands)
  • Customizable messages
  • Customizable open-up option
  • Functional only from 1st to 24th December
  • Different GUI items for normal days, Sundays, Christmas and decoration
  • Simple to use
Installation
  1. Download the plugin
  2. Drag and drop it to your servers "plugins" folder
  3. Restart the server
Commands
  • /advent - opens the GUI
  • /advent reset - Resets the advent calendar
  • /advent reset [Player] - Resets the advent calendar for a speciffic player only
  • /advent reload - Reloads the config.yml to apply changes
Permissions
  • advent.reset - allows resetting the advent calendar
  • advent.reload - allows reloading the config.yml
Config
Here you can edit the rewards, their value, GUI items and messages.
Code (Text):

#===ADVENT CONFIG===

#For any item names, use https://helpch.at/docs/1.8/org/bukkit/Material.html as a reference

#Set the advent calendars name
adv_name: '§4§lAdvent calendar'

#Should the advent calendar open up for players that not yet obtained the reward of this day?
open_on_join: true

#Do you want to use commands to give out rewards? For yes, set this to true. If you want to directly give out items, leave it to false.
use_cmds: false

#Config the GUIS item materials
chr_item: 'NETHER_STAR' #Item that displays 24th december in the GUI
adv_item: 'RED_CANDLE' #Item that displays advent sundays
def_item: 'COAL' #Item for default days
fill_item: 'SPRUCE_LEAVES' #Fill items for decoration

chr_item_name: '§f§l2§4§l4 §f§l(§2§lC§4§lh§f§lr§4§li§f§ls§4§lt§2§lm§f§la§4§ls)'

#Set the message the player get when obtaining the reward of 24th december. You may use the usual color codes of minecraft, using a § as prefix. E. g. '§c' will make it light red.
chr_message: '§cHappy Christmas <3' #Message on 24th of December

#Set the item reward and the amount for every day
#If you set use_cmds to true, it will perform the command only. The item rewards will be ignored
#For the players name, clicking in the advent calendar, type [player]
rew_day1: 'DIAMOND'
rew_day1_val: 2
cmd_day1: 'money give [player] 100'

rew_day2: 'IRON_INGOT'
rew_day2_val: 16
cmd_day2: 'money give [player] 100'

rew_day3: 'FLOWERING_AZALEA_LEAVES'
rew_day3_val: 16
cmd_day3: 'money give [player] 100'

rew_day4: 'CAKE'
rew_day4_val: 2
cmd_day4: 'money give [player] 100'

rew_day5: 'TURTLE_SPAWN_EGG'
rew_day5_val: 1
cmd_day5: 'money give [player] 100'

rew_day6: 'AXOLOTL_BUCKET'
rew_day6_val: 1
cmd_day6: 'money give [player] 100'

rew_day7: 'TOTEM_OF_UNDYING'
rew_day7_val: 1
cmd_day7: 'money give [player] 100'

rew_day8: 'EXPERIENCE_BOTTLE'
rew_day8_val: 16
cmd_day8: 'money give [player] 100'

rew_day9: 'PISTON'
rew_day9_val: 4
cmd_day9: 'money give [player] 100'

rew_day10: 'JUKEBOX'
rew_day10_val: 1
cmd_day10: 'money give [player] 100'

rew_day11: 'MUSIC_DISC_FAR'
rew_day11_val: 1
cmd_day11: 'money give [player] 100'

rew_day12: 'AMETHYST_SHARD'
rew_day12_val: 5
cmd_day12: 'money give [player] 100'

rew_day13: 'NOTE_BLOCK'
rew_day13_val: 16
cmd_day13: 'money give [player] 100'

rew_day14: 'FIREWORK_ROCKET'
rew_day14_val: 32
cmd_day14: 'money give [player] 100'

rew_day15: 'POWDER_SNOW_BUCKET'
rew_day15_val: 5
cmd_day15: 'money give [player] 100'

rew_day16: 'GLOW_BERRIES'
rew_day16_val: 16
cmd_day16: 'money give [player] 100'

rew_day17: 'SPRUCE_SAPLING'
rew_day17_val: 12
cmd_day17: 'money give [player] 100'

rew_day18: 'BOOKSHELF'
rew_day18_val: 5
cmd_day18: 'money give [player] 100'

rew_day19: 'RED_CANDLE'
rew_day19_val: 4
cmd_day19: 'money give [player] 100'

rew_day20: 'NAME_TAG'
rew_day20_val: 1
cmd_day20: 'money give [player] 100'

rew_day21: 'LEGACY_BOOK_AND_QUILL'
rew_day21_val: 1
cmd_day21: 'money give [player] 100'

rew_day22: 'SPECTRAL_ARROW'
rew_day22_val: 64
cmd_day22: 'money give [player] 100'

rew_day23: 'PHANTOM_MEMBRANE'
rew_day23_val: 16
cmd_day23: 'money give [player] 100'

rew_day24: 'TRIDENT'
rew_day24_val: 1
cmd_day24: 'money give [player] 100'


#Set error messages
not_dec: '§cIt is not yet december...'
already_used: '§cYou already obtained this reward!'

#This error message is split. The first part is before the day, the 2nd behind
wrong_day_p1: '§cYou can only receive the reward for today. It is not the §6'
wrong_day_p2: '§6. December'
 
Known bugs
  • None so far
To report bugs, use the "Discussion" tab on top of this page or DM me.

Planed features
To suggest any features, please use the discussion tab
Added features
  • Reset for only a specific player✅
  • Generate the GUI automatically for every year✅
  • Replace .yml storage with a SQLite Database✅
  • Rewrite parts of the code to work more efficient✅
  • Vault support ✅
  • Add an option to perform a console command instead of just giving out items✅
  • Add a confirmation prompt when resetting✅
TERMS OF SERVICE
  1. Do not decompile the resource
  2. Do not re-upload this resource
  3. Do not claim this resource as your own
  4. Do not modify the resource (you can always request to add/edit features via DM or discussion tab)
Credits:
  • Font used in the icon: Penguin Attack
  • Ressoucepacks used for pictures: Lithos & Luna
Resource Information
Author:
----------
Total Downloads: 781
First Release: Nov 27, 2021
Last Update: Dec 5, 2023
Category: ---------------
All-Time Rating:
3 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings