2.0.2 tons of internal refactoring, pinger bugfixes, added PlaceholderInjector internally, more
2.0.2
Leave a rating and like if you <3 PlaceholderAPI
Improved: Tons of internal refactoring to keep things clean when a plugin hook requires a repeating task, or a cache, and a few other things.
Fixed: pinger placeholders will no longer spam console on every ping, also fixed the "online"/"offline" bug.
Added: %date_<date format>% placeholders
These placeholders allow you to specify the format you want to use to get the current time / date / etc. These require you use valid date and time patterns. Once a valid pattern is used in a placeholder, it is cached for faster use later. Valid patterns can be found here:
http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
Added: Placeholder injector system directly inside of PlaceholderAPI.
This function does require ProtocolLib and optionally HolographicDisplays if you want to use placeholders in holograms. This system is completely optional and is only enabled / disabled on server startup. Any changes made to the "injector" section of the config will not refresh using the plugin reload command.
If you are currently using PlaceholderInjector, you can delete it from your plugins folder.
New config:
Code (YAML):
# PlaceholderAPI version 2.0.2
# Created by extended_clip
#
# Placeholder hooks:
#
# To enable placeholders of a specific type, you MUST have the hook set to true
# in the placeholder_hooks section of this config.
# Hooks are refreshed with /placeholderapi reload
#
# In order to use a placeholder from a specific plugin, you must use the hook identifier
# specified in this config followed by the placeholder value identifier:
# %<hook identifier>_<value identifier>%
#
#
# Injector information:
#
# REQUIREMENT: (ProtocolLib)
#
# The injector function allows you to use placeholders in many plugins / functions
# without the need for the plugin you want to use placeholders in to support / hook into
# PlaceholderAPI.
# All injectors are optional and can be enabled / disabled as you wish.
# NOTE: injector only loads on startup and a full restart is required to enable / disable specific
# injector functions.
#
# Allow placeholders in any chat window message from any plugin
# If you want to use placeholders in your essentials chat formatting
# you must use {<placeholder>} instead of %<placeholder>%
# injector:
# chat:
# enabled: true/false
#
# Allow placeholders in any ItemStack name, lore, or inventory title
# injector:
# inventory:
# enabled: true/false
#
# Allow placeholders in any title or subtitle from any plugin
# injector:
# title:
# enabled: true/false
#
# Allow placeholders in the tab list header and footer
# injector:
# tab:
# enabled: true/false
#
# Allow placeholders in signs:
# injector:
# signs:
# enabled: true/false
# update_interval: <time in seconds to update sign placeholders, 0 to disable>
#
# Allow placeholders in HolographicDisplays holograms
# injector:
# holographicdisplays:
# enabled: true/false
# update_interval: <time in seconds to update holo placeholders>
#
#
# To add placeholders in chat messages, you need the permission node:
# placeholderapi.injector.chat.bypass
#
# To add placeholders in sign lines, you need the permission node:
# placeholderapi.injector.signs.bypass
#
# To add placeholders to items in anvils, you need the permission node:
# placeholderapi.injector.anvil.bypass
boolean:
'true'
: '
yes'
'false'
: '
no'
date_format
: MM/dd/yy HH:mm:ss
placeholder_hooks:
bungeecord
: false
redisbungee
: false
invcheck
: false
javascript
: true
player
: true
nmsplayer
: false
server
: true
statistic
: true
pinger
: true
date
: true
acidisland
: false
askyblock
: false
autorank
: true
autosell
: false
chatcolor
: false
chatreaction
: false
checknamehistory
: false
deluxetags
: false
enjin
: false
essentials
: false
ezblocks
: false
ezprestige
: false
ezrankslite
: false
ezrankspro
: false
factions
: false
factionsuuid
: false
galistener
: false
gangsplus
: false
heroes
: false
islandworld
: false
jobs
: false
killstats
: false
leaderheads
: false
lwc
: false
marriagemaster
: false
mcinfected
: false
mcinfected-ranks
: false
mcmmo
: false
minecrates
: false
mvdw
: false
nicknamer
: false
nicky
: false
ontime
: false
playerpoints
: false
plotsquared
: false
prisongangs
: false
pvpstats
: false
quicksell
: false
royalcommands
: false
simpleclans
: false
simplecoinsapi
: false
simpleprefix
: false
simplesuffix
: false
skillapi
: false
skywarsreloaded
: false
sqlperms
: false
sqltokens
: false
sttitles
: false
superbvote
: false
tokenenchant
: false
towny
: false
ultimatevotes
: false
uskyblock
: false
vaulteco
: true
vault
: true
voteparty
: false
voteroulette
: false
wickedskywars
: false
bungeecord:
check_interval
: 60
pinger:
check_interval
: 10
online
: '&aOnline'
offline
: '&cOffline'
injector:
enabled
: true
chat:
enabled
: true
inventory:
enabled
: true
title:
enabled
: true
tab:
enabled
: true
signs:
enabled
: true
update_interval
: 30
holographicdisplays:
enabled
: true
update_interval
: 30