Reworked crime-time system, Added placeholders, events, moved options from config.yml to lang...
WARNING: This is an update that highly changes many things in Karma. Please do not use it on a public server until everything works perfectly. Check the wiki or ask me on discord if you need some informations.
ADDED :
Placeholders:
%karma_player_wanted_time% : Displays the timestamp of the player wanted time.
%karma_player_wanted_time_display% : Shows the player wanted time but formatted like in config.yml.
%karma_player_wanted_status% : Displays if the player is wanted or innocent
%timestamp% (local) : Shows the timestamp of the server
%msg% (local) : Sends message to player instead of sending command
%msg-actionbar% -local): Sends message to player on actionbar instead of command or chat
%msg-title% (and optional %msg-subtitle%) (local) Sends message to player on title (and subtitle) instead of command or chat
Events:
PlayerWantedPeriodStartEvent : When player enters wanted state
PlayerWantedPeriodRefreshEvent : When players refresh his wanted state or connect on server while wanted
PlayerWantedPeriodEndEvent : When player exits Wanted state
Added title durations in general in config.yml
CHANGES :
Crime-time has been reworked to be the Wanted Time system with expressions to determinate a player wanted duration instead of just put a simple delay
Moved some messages from config.yml to the lang files
Moved delay between pvp messages from general to pvp in config.yml
Local player saves : last-attack becomes wanted-time