Skip to content

PlaceholderAPI Integration

InviteMe integrates with PlaceholderAPI to expose player invitation data as placeholders. Use these in scoreboards, tab lists, chat plugins, and more.

  • PlaceholderAPI installed on your server
  • InviteMe installed and configured

All InviteMe placeholders use the %inviteme_*% prefix.

These show how many invitations a player can make:

PlaceholderReturnsExample
%inviteme_max_invites%Maximum invitations allowed5 or
%inviteme_used_invites%Invitations already made3
%inviteme_remaining_invites%Remaining slots2 or
%inviteme_has_unlimited%Whether player has unlimited invitestrue / false

These show if/how a player was invited:

PlaceholderReturnsExample
%inviteme_is_invited%Player was invited by someonetrue / false
%inviteme_invited_by%Name of who invited this playerAlice or None
%inviteme_inviter_uuid%UUID of who invited this player550e8400-... or N/A
%inviteme_is_invited_temp%Invitation is temporarytrue / false
%inviteme_invite_expires_in%Time until expiry5 days / 3 hours / Permanent
%inviteme_invite_expires_formatted%Expiry date formatted15 Mar / Permanent
%inviteme_invite_date%Invitation date26/05/2026 or N/A
%inviteme_days_since_invite%Days since invitation15 or 0
%inviteme_invite_timestamp%Invitation timestamp (epoch)1716000000 or 0

These show who a player has invited:

PlaceholderReturnsExample
%inviteme_invited_players%Count of invitations made3
%inviteme_invited_list%Names of invited players (up to 5, then +X more)Alice, Bob, Charlie

These show XP boost progress:

PlaceholderReturnsExample
%inviteme_boost_active%Has active boost right now (online only)true / false
%inviteme_boost_partners%Number of active boost partners (online only)2
%inviteme_boost_multiplier%Configured XP multiplier (from config, not live state)1.5
%inviteme_boost_percentage%Boost bonus as a percentage ((multiplier − 1) × 100)50%

These show progress bars and rankings:

PlaceholderReturnsExample
%inviteme_invites_bar%Visual progress bar█████░░░░░
%inviteme_invites_percentage%Percentage used60%
%inviteme_status%Status summaryLimited / Full / Unlimited
%inviteme_rank%Ranking position5 or N/A

These return global server data:

PlaceholderReturnsExample
%inviteme_total_invites%Total invitations across server47
%inviteme_total_players%Total invited players43
%inviteme_top_inviter%Player with most invitesAlice
%inviteme_top_inviter_count%Top inviter’s count12

PlaceholderAPI is detected automatically. No extra configuration needed in InviteMe.

Verify it’s active:

/im debug

Test a placeholder in chat (requires a chat plugin that supports PlaceholderAPI):

/papi parse PlayerName %inviteme_used_invites%

Show invitation status before players join:

profiles:
# Temporary invites
- condition: "${player inviteme_is_invited} == true && ${player inviteme_is_invited_temp} == true"
motd:
- "<yellow>⏰ Temporary invite"
- "<gray>Expires in: ${player inviteme_invite_expires_in}"
- "<gray>Invited by: ${player inviteme_invited_by}"
- "<dark_gray>On: ${player inviteme_invite_date}"
# Permanent invites
- condition: "${player inviteme_is_invited} == true && ${player inviteme_is_invited_temp} == false"
motd:
- "<green>✓ Permanently invited!"
- "<gray>By: ${player inviteme_invited_by}"
- "<dark_gray>Since: ${player inviteme_invite_date} (${player inviteme_days_since_invite} days)"
# Not invited
- condition: "${player inviteme_is_invited} == false"
motd:
- "<red>❌ You are not invited"
- "<gray>Contact server staff for access"

Scoreboard (using CMI, Scoreboard-Revived, etc.)

Section titled “Scoreboard (using CMI, Scoreboard-Revived, etc.)”
lines:
- "&6Your Invitations"
- "&f%inviteme_used_invites%&7/&f%inviteme_max_invites%"
- "%inviteme_invites_bar%"
- ""
- "&6Invited by"
- "&f%inviteme_invited_by%"
header: "&6InviteMe Status"
footer: "&7Invites: &f%inviteme_used_invites%&7/&f%inviteme_max_invites% &7| Rank: &f%inviteme_rank%"
/hd create invites_stats &6Server Invitation Stats
/hd addline invites_stats &fTotal invitations: &6%inviteme_total_invites%
/hd addline invites_stats &fInvited players: &6%inviteme_total_players%
/hd addline invites_stats &fTop inviter: &6%inviteme_top_inviter% (&f%inviteme_top_inviter_count%&6)

Placeholders show as literal text (%inviteme_count% not replaced)

  1. Confirm PlaceholderAPI is installed and enabled:

    /plugins
    # Look for: PlaceholderAPI [enabled]
  2. Confirm InviteMe detects it:

    /im debug
    # Should show: PlaceholderAPI: Installed ✓
    # If "Not installed": PlaceholderAPI loaded after InviteMe → restart server
  3. Test the placeholder directly:

    /papi parse YourName %inviteme_used_invites%

%inviteme_inviter% returns empty

The player has no inviter recorded — they may have been added via /im sync or manually to the whitelist before InviteMe was installed. This is expected.

Placeholders work for some players but not others

This can happen if a player joined before InviteMe was installed. Their data may not be in InviteMe’s database. Run:

/im sync