Your Cart ()

You may also like:

4serverinfo New

The “new” version (v2.x, released 2025) adds:

# ----------------------------------------------------------------- # Placeholders – built‑in tokens you can use in messages. # ----------------------------------------------------------------- placeholders: # Player counts online: "<online>" # players currently online max: "<max>" # server's max player capacity total: "<total>" # total across network (proxy mode) 4serverinfo new

public class UptimeExpansion extends PlaceholderExpansion @Override public String getIdentifier() return "4si"; @Override public String getAuthor() return "YourName"; @Override public String getVersion() return "1.0"; The “new” version (v2

After compiling and dropping the JAR in plugins/ , run /papi reload and you can now use uptime in any format line. You can define static placeholders that map to other placeholders or text: The “new” version (v2.x

# ----------------------------------------------------------------- # Message groups – reusable blocks that can be referenced later. # ----------------------------------------------------------------- messages: header: - "&6=== &eServer Info &6===" footer: - "&6=== &eEnd of Info &6==="

@Override public String onPlaceholderRequest(Player p, String params) if (params.equalsIgnoreCase("uptime")) long seconds = (System.currentTimeMillis() - Bukkit.getServer().getWorlds().get(0).getFullTime()) / 1000; return String.format("%02d:%02d:%02d", seconds/3600, (seconds%3600)/60, seconds%60); return null;