Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mefrreex/queryplaceholders
Placeholders for displaying information about the server
https://github.com/mefrreex/queryplaceholders
nukkit nukkit-plugin nukkit-plugins pnx pnx-plugin
Last synced: about 1 month ago
JSON representation
Placeholders for displaying information about the server
- Host: GitHub
- URL: https://github.com/mefrreex/queryplaceholders
- Owner: MEFRREEX
- License: gpl-3.0
- Created: 2023-11-08T04:11:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-12T18:50:02.000Z (12 months ago)
- Last Synced: 2024-01-13T10:21:49.365Z (12 months ago)
- Topics: nukkit, nukkit-plugin, nukkit-plugins, pnx, pnx-plugin
- Language: Java
- Homepage: https://cloudburstmc.org/resources/queryplaceholders.960/
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ๐ฎ How to use
You can use query placeholders in any plugin that has PlaceholderAPI support**Player count placeholder**
In this placeholder you can specify multiple servers for online summation
Example: `%query_player_count%`## ๐จ๏ธ Placeholders
`%query_player_count%` - Placeholder for display the number of players`%query_max_players%` - Placeholder for display the maximum number of players
`%query_motd%` - Placeholder for display server motd
`%query_minecraft_version%` - Placeholder for display minecraft server version
## โ๏ธ Plugin ัonfiguration
```yml
# Timeout time for query request
timeout: 2000 # In milliseconds# Interval for updating query information
update: 1200 # In ticks# Servers for query
servers:
zeqa: # Server name
address: "zeqa.net" # Server address
port: 19132 # Server port
nethergames:
address: "play.nethergames.org"
port: 19132
```## ๐งฉ Addons
- [QueryPlaceholders-OnlineSummator](https://github.com/MEFRREEX/QueryPlaceholders-OnlineSummator)## ๐ API
Getting QueryPlaceholders class
```java
QueryPlaceholders queryPlaceholders = QueryPlaceholders.getInstance();
```
Getting query of server
```java
BedrockQueryResponse query = queryPlaceholders.getQuery("server_name");
```
Getting ServerEntry class by name
```java
ServerEntry serverEntry = queryPlaceholders.getServer("server_name");
```
Getting BedrockQuery class
```java
BedrockQuery bedrockQuery = BedrockQueryFactory.getBedrockQuery();
```## ๐ Maven
Repository
```xml
jitpack.io
https://jitpack.io
```
Dependency
```xmlcom.github.MEFRREEX
QueryPlaceholders
1.2```