MENU

Overseas Economic and Trade Zones

Confirm
Cancel
x

Ok
x
Sign into your account
Member ID or Email
Join Free

New — 4serverinfo

/4si toggle The plugin stores the toggle state per‑UUID, so it persists across restarts. /4si reload No server restart needed. The command reloads the config, re‑registers placeholders, and re‑initializes async tasks. 6.4 Sending a Webhook (Optional) If you turned on webhook.enabled: true in the config:

# Custom: you can add your own placeholders (see §7) 4serverinfo new

# ----------------------------------------------------------------- # Commands – define which messages are shown for each sub‑command. # ----------------------------------------------------------------- commands: # /serverinfo (default alias) default: permission: "4serverinfo.use" format: - "<header>" - "&aOnline: &fonline&7/&fmax" - "&aTPS: &ftps" - "&aRAM: &fram_usedMB / ram_maxMB &7(ram_percent%)" - "&aCPU: &fcpu%" - "<footer>" # Whether the command is visible in /help description: "Shows basic server statistics." /4si toggle The plugin stores the toggle state

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

# ------------------------------------------------- # 4ServerInfo – Main Config (v2.x) # ------------------------------------------------- # Enable/disable the plugin on this server instance. enabled: true

@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;

placeholders: welcome: "Welcome to &bserver_name&r!" Then use welcome wherever you like. This is handy for server‑branding messages. 8.1 Scoreboard & Tab List Integration Add a display: section to config.yml :