RA-PlatformDetector

A tiny Paper 1.21.x plugin that detects whether a player is on Java or Bedrock through Floodgate and exposes the result as PlaceholderAPI placeholders.

Author: RajaAditya Website: rajaaditya.my.id Version: 1.0.0 API: Paper 1.21.x (Java 17)


Features

  • Detects the player's platform with the Floodgate API (isFloodgatePlayer), instead of guessing from the UUID, so it stays correct if Floodgate changes internally
  • Placeholders for scoreboards, tab lists, chat formats, and menus
  • A command to check any player's platform
  • Without Floodgate installed, every player is treated as Java
  • Without PlaceholderAPI installed, the placeholders are not registered but the command still works

Dependencies

PluginRequiredPurpose
FloodgateNo (softdepend, recommended)Detects Bedrock players
PlaceholderAPINo (softdepend)Enables %raplatform_*% placeholders

Installation

  1. Place RA-PlatformDetector.jar into your plugins/ folder
  2. Restart the server

There is nothing to configure.


Commands

CommandDescriptionAccess
/raplatform <player>Show whether a player is on Java or BedrockEveryone

Permissions

PermissionDefaultDescription
raplatformdetector.commandtrueUse /raplatform

PlaceholderAPI

Identifier: raplatform.

PlaceholderOutput
%raplatform_type%Java or Bedrock
%raplatform_short%JE or BE
%raplatform_is_bedrock%true or false
%raplatform_is_java%true or false

License

Developed by RajaAditya — rajaaditya.my.id