QueryPlaceholders

Experimental QueryPlaceholders 1.2

Compatible API Versions
1.0.0
Sourcecode
https://github.com/MEFRREEX/QueryPlaceholders
Contributors
MEFRREEX
🎮 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<zeqa;nethergames>%

🖨 Placeholders
%query_player_count<server_name>% - Placeholder for display the number of players
%query_max_players<server_name>% - Placeholder for display the maximum number of players
%query_motd<server_name>% - Placeholder for display server motd
%query_minecraft_version<server_name>% - Placeholder for display minecraft server version

⚙ Plugin сonfiguration
YAML:
# 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

🛠 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:
<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>
Dependency
XML:
<dependency>
    <groupId>com.github.MEFRREEX</groupId>
    <artifactId>QueryPlaceholders</artifactId>
    <version>1.0</version>
</dependency>
RuNukkitBanner.png
Author
MEFRREEX
Downloads
149
Views
347
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from MEFRREEX

Latest updates

  1. bStats

    Added bStats metrics
  2. Player count placeholder

    Changed the structure of placeholders in the code. Player count placeholder has been updated...

Latest reviews

bro can you add an option to be able to show all the players in the server motd
Top