Modules 🚧 Maintenance

πŸ” Placeholders

On this page, you will find the placeholders that report whether a server is under maintenance and how long is left.

These are PlaceholderAPI placeholders, so they work anywhere PlaceholderAPI is read, including the scoreboard, the tablist and holograms.

Every one of them takes a server name. Behind a proxy that is the backend's name, or global for the whole network. On a standalone lobby, use the name of that server.

#Is it closed

Placeholder Returns
%phoenixlobby_inmaintenance_<server>% true / false

#How long is left

Placeholder Returns
%phoenixlobby_maintenance_<server>% The remaining time, written out as 2H 15m 3S

When the maintenance has no end time this returns Forever, and when nothing is running it returns None. Both words come from your translations file, so they follow whatever language you have set.

#A single unit

Adding _raw_ or _formatted_ and a unit reports just that unit, which is what a countdown showing only minutes needs.

Placeholder Example result
%phoenixlobby_maintenance_<server>_raw_minutes% 135
%phoenixlobby_maintenance_<server>_formatted_minutes% 135 Minutes
%phoenixlobby_maintenance_<server>_raw_hours% 2
%phoenixlobby_maintenance_<server>_formatted_hours% 2 Hours

The unit is one of seconds, minutes, hours, days, weeks, months or years. The singular spelling works too, and the case does not matter.

The whole remaining time is converted into that one unit rather than split across several, so two hours and fifteen minutes reads as 135 in minutes and 2 in hours.

circle-info

With no end time, _raw_ returns -1 and _formatted_ returns Forever. Check that before showing a countdown.

The MOTD has its own separate set of maintenance placeholders, written with braces instead: see MOTD Placeholders.

Last updated 41 minutes ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy