Ping
Module info | |
---|---|
Configuration | ping in config.yml |
Manager | PingManager |
Support | 1.8+ |
Free version | ✔ |
Proxy-configurable | ❌ |
This module allows players to check theirs or another player's ping in milliseconds and offers custom placeholders. It is possible to configure ranges to colorize the ping based on its value.
Setup
The following snippet of code represents and explains the ping's configuration.
# ...mutes' settings...
ping:
update-timeout-ms: 5000 # timeout between updates, in milliseconds
qualities:
excellent: 20 # first quality's max latency, in milliseconds (0-20)
great: 50 # second quality's max latency, in milliseconds (21-50)
good: 68 # ... (51-68)
funny: 69 # ... (69-69)
good-2: 100
poor: 150
bad: 200 # ... (151-200)
unplayable: 201 # ... (201+)
# ...TPS's settings...
133
134
135
136
137
138
139
140
141
142
143
144
The first and last qualities determine the first and last ping ranges (0-20, 201+).
Adding qualities
To add a new quality or range, you just need to specify its ID and its max latency.
# ...ping's settings...
qualities:
# ...default qualities...
new-quality: 250
# ...TPS's settings...
135
136
137
138
NOTE
Order does matter in the configuration above: make sure to insert new qualities in the correct place; example: 250 > 201, so put it last.
Once done, open messages.yml
and any custom messages files present and insert the new quality's ID, color and text at ping
:
# ...mutes' messages...
ping:
# ...default qualities...
new-quality: # new quality's ID
color: '&0' # new quality's color
text: '&0about to crash'
# ...TPS's messages...
601
602
603
604
605
606
/ping
command
It is possible to check yours or another player's ping using the /ping
command:
Refer to the Getting started/Commands/User page for more info.
ChatPlugin - A complete yet lightweight plugin which handles just too many features!
This wiki is currently updated to version 1.9.10.
© 2024 Remigio07
Please report any mistakes and misspellings as described at Home/Reporting issues.