Custom Dynamic
📜 This pages contains all the information about Custom Dynamic.
What is Custom Dynamic?
Custom Dynamic is a feature can let you decide which dynamic key you want to use.
A brief explanation: The difference between dynamic and custom dynamic is that different content can be designed for different scenarios.
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 create can also be used unlimited times.
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 very simple. 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, you need to use this placeholder: %serverpinger_dynamic_custom:example_mycoolserver.com:25565%
It's very simple! Right?
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.
Last updated
Was this helpful?