Hey,
With the help of Angelo753 I created a new plugin called Namedays. The plugin writes every day 0:00 (according to a configurable timezone in the config file) who has nameday on that day. I used api from this site:
https://nameday.abalin.net/ so special thanks to the creator of the api. <3
The supported languages:
AT, BG, CZ, DE, DK, EE, ES, FI, FR, GR, HR, HU, IT, LT, LV, PL, RU, SE, SK, US.
Translation can also be set in the config file.
--------------------------------------------------------------------------------------------------
Commands:
- /nameday - shows who has a nameday
- /nameday reload - reloads plugin config
--------------------------------------------------------------------------------------------------
Plugin Config:
Code (YAML):
#https://www.php.net/manual/en/timezones.php
timezone
: Europe/Prague
#Supported countries: at, bg, cz, de, dk, ee, es, fi, fr, gr, hr, hu, it, lt, lv, pl, ru, se, sk, us
country
: cz
announcements:
regular-enabled
: true
new-day-enabled
: true
#After what time will the regular message repeat itself in seconds
interval
: 1200
#20 minutes
messages:
regular-announce
:
"&b{PLAYER} &ahas a nameday today."
new-day-announce
:
"&aNew day has come and &b{PLAYER} &ahas a nameday today!"
wrongUsage
:
"&cWrong argument usage"
reload
:
"&aConfig reloaded"
noPerms
:
"&cYou don't have enough permissions!"