Custom Dynamic
This feature is only available for v2.1+
What is Custom Dynamic?​
Custom Dynamic is a feature that can let you decide which dynamic key you want to use.
For example, you want to display the server's online text, MOTD, and online/max player status at the same time.
You only need to use a single placeholder to easily complete it through Custom Dynamic. The template you created can also be used unlimited times.
TL;DR: The difference between dynamic and custom dynamic is that different content can be designed for different scenarios.
Some example​
Not using Custom Dynamic:
%serverpinger_online_example.com:25565% | %serverpinger_motd_example.com:25565% | %serverpinger_players_example.com:25565%/%serverpinger_max_example.com:25565%
Using Custom Dynamic
%serverpinger_dynamic_custom:exampletemplate_example.com:25565%
How to use it?​
The usage is straightforward. You only need to use this
placeholder format %serverpinger_dynamic_custom:<template-name>_<IP:Port>%
There is also a built-in example template called example, you can try it in your server too!
For instance, you want to use the example template,
the placeholder should look like: %serverpinger_dynamic_custom:example_mycoolserver.com:25565%
Create a Custom Dynamic​
It is also easy to create a new custom dynamic template. You may need to follow an example configuration.
serverpinger:
...
dynamic:
...
custom:
<template-name>: # The template name you want
online: '&6&l<onlineplayers>/<max> &eplaying'
offline: '&c&l[ OFFLINE ]'
Note​
- Please avoid for using
_in your template name, it will cause problems.