1. Added auto adding new functions only to the config
(I don’t know how well it will work)
2. Added plugin logs that will be written to the sFixEnchant\logs\log.yml file
3. Added two new lines to the config:
Code (YAML):
#Whether to enable logging when a player uses an enchantment above level 5
#Включить ли создание логов когда игрок использует уровень зачарование выше 5
log-enabled
: true
#Time format for using logs
#Формат времени, для использования логов
time-format-log
: yyyy-MM-dd HH:mm:ss
4. Add before the localization file
messages_en.yml:
Code (YAML):
#Log message as it should be
#Available placeholders:
#%level% - Shows the level and name of the enchantment
#%timestamp% - Shows the date and time in the log
#%player% - Shows the player's nickname in the log
#%item% - Shows the name of the item
log-message
: '
%timestamp% | %player% used item %item% with enchantment %level%'