Code (YAML):
# The Return Message from the /playtime Command
CMD_SUC_PT_OWN
: |-
Your Playtime is
%[0]d %[1]h %[2]m %[3]s
Your Sessiontime is
%[4]d %[5]h %[6]m %[7]s
# The Return Message from the /playtime <player> Command
CMD_SUC_PT_OTHER
: |-
§6
%[0]§a's Playtime is %[1]d %[2]h %[3]m %[4]s
§6
%[5]§a's Sessiontime is %[6]d %[7]h %[8]m %[9]s
# The Return Message from the /playtime <offlineplayer> Command
CMD_SUC_PT_OTHER_OFFLINE
: §6
%[0]§a's Playtime is %[1]d %[2]h %[3]m %[4]s
# The First Part of the /Playtimetop Command
CMD_SUC_PTTOP_HEADER
: '§7Listing the top §b
%[0] §7Playtimes:'
# This Message gets printed once for each Entry from the /Playtimetop Command
CMD_SUC_PTTOP_ENTRY
: '§6
%[0]§7: §b%[1]§7 - has played %[2]d %[3]h %[4]m and %[5]s'
# The first Part of the /Playtimerewards list Command
CMD_SUC_PTR_LIST_HEADER
: |-
§7Listing
all §b
%[0]§7 Rewards:
§8Internal Name -- DisplayName -- CountType
# This Message gets printed once for each Entry from the /Playtimerewards list Command
CMD_SUC_PTR_LIST_ENTRY
: §3
%[0] §8-- §1%[1] §8-- §7%[2]
# The Return Message from the /Playtimerewards reload Command
CMD_SUC_PTR_RELOAD_SUCCESS
: §aSuccessfully reloaded the external Data!
# A Error Message when too many Requests are sent from a Player using /pt <offlineplayer>
CMD_ERR_TOO_MANY_REQUESTS
: §4You can't do that right now. Try again later!
# The No Permission Message from all Commands
CMD_ERR_NO_PERMISSION
: §4You don't have the Permission to do this.
# The No-Player-Found Error Message from all Commands
CMD_ERR_PLAYER_NOT_FOUND
: §4Can't find the Player '§6
%[0]§4'!
# The Notification upon Login when a new Version is available
NOTIF_UPDATE_AVAILABLE
: §6Version
%[0] of PlaytimeRewards is available (Running v%[1])!
# The Message sent to Players who get flagged as afk
NOTIF_AFK_USER_WENT_AFK
: §7You are now flagged as AFK
# The Message sent to Players when coming back
NOTIF_AFK_USER_CAME_BACK
: §7You are
no longer flagged as AFK
# The Format in which all Times get sent to the PlaceholderAPI
EXT_PAPI_TIME_FORMAT
: '
%[0]d %[1]h %[2]m %[3]s'
This File is rather simple, you may change it to your likings.
Every "%[x]" represents a Parameter to be filled in later by the Plugin,
so make sure to use all Parameters for a Message in the correct order.
You can find public language Files on
GitHub!
HexColors!
This Plugin supports Hex-Colors in your lang.yml File (since Plugin v0.1.5).
Just edit your lang.yml File using the Following Syntax:
For Simple Hex Colors:
§([HexColor])
Code (YAML):
# The Return Message from the /playtime Command
CMD_SUC_PT_OWN
: |-
§
(fc03ad
)Your Playtime is
%[0]d %[1]h %[2]m %[3]s
Your Sessiontime is
%[4]d %[5]h %[6]m %[7]s
This Code produces this Output:
For Hex Color Ranges:
§([HexRangeBeginning]-) [Some random Text] §(-[HexRangeEnding])
Code (YAML):
# The Return Message from the /playtime Command
CMD_SUC_PT_OWN
: |-
§
(031cfc-
)Your Playtime is
%[0]d %[1]h %[2]m %[3]s
Your Sessiontime is
%[4]d %[5]h %[6]m %[7]s §(-fc03ad)
And this Code produces this Output: