平台占位符
Platform Placeholders 是一款轻量级、高性能的 PlaceholderAPI 扩展,专为运行 Paper/Spigot 并集成 GeyserMC 与 Floodgate 的跨平台 Minecraft 服务器设计。
轻松检测玩家是从 Java 版 还是 基岩版 加入游戏,显示他们的平台图标,并在任何支持 PlaceholderAPI 的插件(聊天栏、TAB 列表、计分板、全息图、GUI 等)中展示其具体的设备操作系统。
功能特性
- 跨平台检测:通过 Floodgate API 自动识别 Java 版和基岩版玩家。
- 详细的设备识别:显示基岩版玩家的确切操作系统(Android、iOS、Windows、Xbox、PlayStation、Switch)。
- 轻量且高效:零延迟,完全异步的占位符扩展,无后台任务。
- 高度可定制:可在
config.yml 中开启或关闭任意占位符类别,并编辑图标/颜色。
- 广泛兼容:开箱即用,兼容 LPC、TAB、DeluxeMenus、ConditionalEvents、EssentialsX 以及 100 多种其他插件。
占位符
在服务器配置的任何位置使用这些占位符(需要 PlaceholderAPI):
| 占位符 |
描述 |
示例输出 |
%platform_type% |
以格式化文本形式显示玩家平台 |
Java / Bedrock |
%platform_icon% |
显示玩家平台的符号/图标 |
? / ? |
%platform_device% |
显示具体的操作系统/设备名称 |
Android, iOS, Windows, Xbox, PS4, Switch |
%platform_is_bedrock% |
返回布尔值用于条件逻辑 |
true / false |
配置 (config.yml)
轻松自定义颜色、图标,并单独开启或关闭各个占位符:
# PlatformPlaceholders Configuration
# Created by San Dreamin
# 1. %platform_type%
platform-type:
enabled: true
java: "&bJava"
bedrock: "&aBedrock"
# 2. %platform_icon%
platform-icon:
enabled: true
java: "?"
bedrock: "?"
# 3. %platform_device%
platform-device:
enabled: true
java: "&bJava Edition"
android: "&aAndroid"
ios: "&diOS"
windows: "&eWindows"
xbox: "&gXbox"
playstation: "&9PlayStation"
switch: "&cSwitch"
unknown: "&7Unknown"
要求
- Paper: Paper 26.2
- Java: 25
- PlaceholderAPI: 必需
- Floodgate: 必需(用于基岩版检测)
命令与权限
| 命令 |
权限 |
描述 |
/pp reload |
platformplaceholders.admin |
无需重启即可重新加载 config.yml |
Platform Placeholders
Platform Placeholders is a lightweight, high-performance PlaceholderAPI expansion designed for cross-play Minecraft servers running Paper/Spigot with GeyserMC & Floodgate.
Effortlessly detect whether your players are joining from Java Edition or Bedrock Edition, display their platform icons, and show their specific device operating systems across any plugin supporting PlaceholderAPI (Chat, TAB, Scoreboards, Holograms, GUIs, etc.).
Features
- Cross-Play Platform Detection: Automatically identifies Java and Bedrock players via Floodgate API.
- Detailed Device Identification: Displays the exact operating system of Bedrock players (Android, iOS, Windows, Xbox, PlayStation, Switch).
- Lightweight & Fast: Zero lag, fully asynchronous placeholder expansion with zero background tasks.
- Fully Customizable: Toggle any placeholder category on/off and edit icons/colors in
config.yml.
- Universal Compatibility: Works out-of-the-box with LPC, TAB, DeluxeMenus, ConditionalEvents, EssentialsX, and 100+ other plugins.
Placeholders
Use these placeholders anywhere in your server configuration (requires PlaceholderAPI):
| Placeholder |
Description |
Example Output |
%platform_type% |
Displays player platform as formatted text |
Java / Bedrock |
%platform_icon% |
Displays player platform symbol/icon |
? / ? |
%platform_device% |
Displays specific OS/Device name |
Android, iOS, Windows, Xbox, PS4, Switch |
%platform_is_bedrock% |
Returns boolean for conditional logic |
true / false |
Configuration (config.yml)
Easily customize colors, icons, and toggle individual placeholders on or off:
# PlatformPlaceholders Configuration
# Created by San Dreamin
# 1. %platform_type%
platform-type:
enabled: true
java: "&bJava"
bedrock: "&aBedrock"
# 2. %platform_icon%
platform-icon:
enabled: true
java: "?"
bedrock: "?"
# 3. %platform_device%
platform-device:
enabled: true
java: "&bJava Edition"
android: "&aAndroid"
ios: "&diOS"
windows: "&eWindows"
xbox: "&gXbox"
playstation: "&9PlayStation"
switch: "&cSwitch"
unknown: "&7Unknown"
Requirements
- Paper: Paper 26.2
- Java: 25
- PlaceholderAPI: Required
- Floodgate: Required (for Bedrock detection)
Commands & Permissions
| Command |
Permission |
Description |
/pp reload |
platformplaceholders.admin |
Reloads config.yml without restarting |
评论 0
登录后参与评分
还没有评论,来抢沙发吧