Integrations
MF-AutoRestart has two meaningful optional integration surfaces: PlaceholderAPI and BungeeCord-compatible plugin messaging.
PlaceholderAPI
Section titled “PlaceholderAPI”Status: Optional
plugin.yml declares PlaceholderAPI as softdepend. The integration class is only initialized when PlaceholderAPI is enabled. MF-AutoRestart core operation remains available when PlaceholderAPI is absent.
The expansion identifier is:
mfautorestartPlaceholders
Section titled “Placeholders”| Placeholder | Output |
|---|---|
%mfautorestart_active% |
true while restart state is COUNTDOWN or COMMITTED; otherwise false. |
%mfautorestart_seconds_remaining% |
Integer countdown seconds, or 0 when no countdown is active. |
%mfautorestart_time_remaining% |
Countdown formatted as MM:SS; returns 00:00 when no countdown is active. |
%mfautorestart_time_remaining_formatted% |
Human-readable countdown such as 45s or 2m 5s; empty string when the value is zero. |
%mfautorestart_next_restart% |
Next scheduled countdown start as English EEE HH:mm in the configured timezone, or None. |
%mfautorestart_next_remaining% |
Time until the next schedule such as 42s, 12m, or 2h 15m, or None. |
The placeholders are not player-specific even though PlaceholderAPI passes an OfflinePlayer to the expansion.
The expansion uses persist() = true and MF-AutoRestart explicitly unregisters it when the plugin disables.
BungeeCord-Compatible Player Handoff
Section titled “BungeeCord-Compatible Player Handoff”Status: Optional
When a restart becomes COMMITTED, MF-AutoRestart registers/uses the BungeeCord outgoing plugin channel and sends:
Connect<settings.lobby-server>to each online player that does not have mfautorestart.bypass.
After settings.redirection-grace-period, players still on the server without the bypass permission are kicked before the Paper restart request.
If a compatible proxy/channel setup is not present or the transfer does not complete, the fallback kick still handles remaining non-bypass players. Core countdown scheduling does not require a proxy.
See Permissions for bypass behavior and Restart Flow for the handoff sequence.