SimplePlayerProfileInfo
一款轻量级且高度可定制的 Minecraft 插件,允许玩家快速查看其他玩家的个人资料信息。
为什么选择 SimplePlayerProfileInfo?
与许多显示固定数据集合的玩家信息插件不同,SimplePlayerProfileInfo 让服务器管理员完全掌控所显示的信息内容。所有配置均通过 config.yml 进行设置,使您无需修改插件或编写任何代码即可自定义每位玩家的资料。
该插件可以显示 PlaceholderAPI 及其扩展提供的几乎所有与玩家相关的信息,包括:
- 用户名
- 权限组(Rank)
- 等级
- 游戏时长
- 经济余额
- 在线状态
- 统计数据
- 以及更多...
无论您是想创建简单的玩家资料还是显示详细的服务器统计信息,显示的内容完全由您决定。只需编辑配置文件,添加所需的占位符,插件将自动处理其余部分。
功能特性
- 查看你当前注视的玩家的资料。
- 使用用户名查看任意玩家的资料。
- 完全通过
config.yml 进行配置。
- 支持 PlaceholderAPI。
- 显示几乎任何 PlaceholderAPI 占位符。
- 轻松添加、移除或重新排序资料信息。
- 轻量级且易于使用。
预览
聊天输出
(仅供参考。显示的信息完全取决于您的配置。)
工作原理
注视玩家
只需注视另一名玩家并执行以下命令:
/profile
插件将显示您当前注视的玩家的已配置资料信息。
查询玩家
您也可以在不注视某人的情况下检查特定玩家的资料。
/profile <player>
示例:
/profile Steve
插件将显示指定玩家的已配置资料信息。
配置
所有显示的信息均由 config.yml 控制。
配置示例:
# SimplePlayerProfileInfo configuration
#
# You can add as many lines as you want under info-lines.
# PlaceholderAPI placeholders are supported, for example: %player_name%, %player_level%, %vault_eco_balance%.
# Important: for offline players, some PlaceholderAPI placeholders only work if that expansion supports OfflinePlayer.
look:
# Maximum distance used by /profile when no player name is typed.
max-distance: 20
# false = the player must be visible and not behind blocks.
# true = the command can target players through blocks.
through-blocks: false
settings:
# Used by the built-in %target_first_played% and %target_last_seen% placeholders.
date-format: "yyyy-MM-dd HH:mm:ss"
# Text used by built-in placeholders when the target is offline and the value only exists for online players.
unavailable-value: "N/A"
messages:
prefix: "&8[&bSimplePlayerProfileInfo&8] "
only-players: "&cOnly players can use this command."
no-permission: "&cYou do not have permission to use this command."
usage: "&cUsage: &e/profile [playername]"
plugin-command-usage: "&cUsage: &e/SimplePlayerProfileInfo reload"
must-look-or-type: "&cYou must be looking at a player or type &e/profile <playername>&c."
player-not-found: "&cPlayer not found."
reload-success: "&aConfiguration reloaded successfully."
# These lines are shown to the command sender.
#
# PlaceholderAPI placeholders use the TARGET player as the context.
# Example: %player_name% will be the target player's name, not the sender's name.
#
# Built-in placeholders included by this plugin:
# %target_name%
# %target_uuid%
# %target_online%
# %target_first_played%
# %target_last_seen%
# %target_level% online only
# %target_world% online only
# %target_health% online only
# %target_ping% online only
# %target_gamemode% online only
#
# Aliases based on your example:
# %player-name% -> same as %target_name%
# %player-level% -> same as %target_level%
info-lines:
- "&7&m-----------------------------"
- "&ePlayer Username: &f%player_name%"
- "&ePlayer Level: &f%player-level%"
- "&eUUID: &f%target_uuid%"
- "&eStatus: &f%target_online%"
- "&eFirst Joined: &f%target_first_played%"
- "&eLast Seen: &f%target_last_seen%"
- "&7&m-----------------------------"
由于该插件使用 PlaceholderAPI,因此您不仅限于默认的占位符。您可以使用来自数千个 PlaceholderAPI 扩展的占位符,从而在显示的信息方面拥有完全的灵活性。
安装
- 下载最新版本。
- 将插件放入服务器的
plugins 文件夹中。
- 安装 PlaceholderAPI。
- 启动或重启服务器。
- 编辑
config.yml 以自定义显示的信息。
- 修改配置后重新加载或重启服务器。
依赖项
注意:必须安装 PlaceholderAPI。如果没有它,占位符将无法解析,插件也无法按预期工作。
命令
| Command |
Description |
/profile |
显示您当前注视的玩家的资料。 |
/profile <player> |
显示指定玩家的资料。 |
/simpleplayerprofileinfo reload |
重新加载插件。 |
权限
| 权限 |
描述 |
simpleplayerprofileinfo.use |
允许玩家使用 /profile 命令。 |
simpleplayerprofileinfo.reload |
允许玩家使用 /simpleplayerprofileinfo reload 命令。 |
未来计划
该插件目前采用基于聊天的界面,以保持其轻量、简单和快速。
GUI 版本是我正在考虑的未来更新内容之一。然而,我仍在评估最佳实现方案,特别是关于 Java 版与基岩版玩家之间的兼容性,因为基岩客户端具有不同的库存界面,这可能会影响整体用户体验。
反馈
欢迎提供建议、错误报告和功能请求。
如果您有能够改进该插件的想法,或者在使用过程中遇到问题,请随时在 GitHub 仓库中提交 issue。社区的反馈有助于让这个项目对所有人都变得更好。
许可证
本项目采用 MIT 许可证授权。有关更多信息,请参阅 LICENSE 文件。
SimplePlayerProfileInfo
A lightweight and highly customizable Minecraft plugin that allows players to quickly view another player's profile information.
Why SimplePlayerProfileInfo?
Unlike many player information plugins that display a fixed set of data, SimplePlayerProfileInfo gives server owners complete control over what information is shown. Everything is configured through config.yml, allowing you to customize each player's profile without modifying the plugin or writing any code.
The plugin can display virtually any player-related information provided by PlaceholderAPI and its expansions, including:
- Username
- Rank
- Level
- Playtime
- Economy Balance
- Online Status
- Statistics
- And much more...
Whether you want to create a simple player profile or display detailed server statistics, the information shown is entirely up to you. Simply edit the configuration file, add the placeholders you need, and the plugin will handle the rest.
Features
- View the profile of the player you are looking at.
- View any player's profile using their username.
- Fully configurable through
config.yml.
- Supports PlaceholderAPI.
- Display virtually any PlaceholderAPI placeholder.
- Easily add, remove, or reorder profile information.
- Lightweight and simple to use.
Preview
Chat Output
(Example only. The displayed information depends entirely on your configuration.)
How It Works
Looking at a Player
Simply look at another player and execute:
/profile
The plugin will display the configured profile information of the player you are currently looking at.
Looking Up a Player
You can also check a specific player's profile without looking at them.
/profile <player>
Example:
/profile Steve
The plugin will display the configured profile information for the specified player.
Configuration
All displayed information is controlled through config.yml.
Sample configuration:
# SimplePlayerProfileInfo configuration
#
# You can add as many lines as you want under info-lines.
# PlaceholderAPI placeholders are supported, for example: %player_name%, %player_level%, %vault_eco_balance%.
# Important: for offline players, some PlaceholderAPI placeholders only work if that expansion supports OfflinePlayer.
look:
# Maximum distance used by /profile when no player name is typed.
max-distance: 20
# false = the player must be visible and not behind blocks.
# true = the command can target players through blocks.
through-blocks: false
settings:
# Used by the built-in %target_first_played% and %target_last_seen% placeholders.
date-format: "yyyy-MM-dd HH:mm:ss"
# Text used by built-in placeholders when the target is offline and the value only exists for online players.
unavailable-value: "N/A"
messages:
prefix: "&8[&bSimplePlayerProfileInfo&8] "
only-players: "&cOnly players can use this command."
no-permission: "&cYou do not have permission to use this command."
usage: "&cUsage: &e/profile [playername]"
plugin-command-usage: "&cUsage: &e/SimplePlayerProfileInfo reload"
must-look-or-type: "&cYou must be looking at a player or type &e/profile <playername>&c."
player-not-found: "&cPlayer not found."
reload-success: "&aConfiguration reloaded successfully."
# These lines are shown to the command sender.
#
# PlaceholderAPI placeholders use the TARGET player as the context.
# Example: %player_name% will be the target player's name, not the sender's name.
#
# Built-in placeholders included by this plugin:
# %target_name%
# %target_uuid%
# %target_online%
# %target_first_played%
# %target_last_seen%
# %target_level% online only
# %target_world% online only
# %target_health% online only
# %target_ping% online only
# %target_gamemode% online only
#
# Aliases based on your example:
# %player-name% -> same as %target_name%
# %player-level% -> same as %target_level%
info-lines:
- "&7&m-----------------------------"
- "&ePlayer Username: &f%player_name%"
- "&ePlayer Level: &f%player-level%"
- "&eUUID: &f%target_uuid%"
- "&eStatus: &f%target_online%"
- "&eFirst Joined: &f%target_first_played%"
- "&eLast Seen: &f%target_last_seen%"
- "&7&m-----------------------------"
Since the plugin uses PlaceholderAPI, you are not limited to the default placeholders. You can use placeholders from thousands of PlaceholderAPI expansions, allowing complete flexibility over what information is displayed.
Installation
- Download the latest release.
- Place the plugin into your server's
plugins folder.
- Install PlaceholderAPI.
- Start or restart your server.
- Edit
config.yml to customize the displayed information.
- Reload or restart the server after making configuration changes.
Dependencies
Note: PlaceholderAPI is required. Without it, placeholders cannot be parsed, and the plugin will not function as intended.
Commands
| Command |
Description |
/profile |
Displays the profile of the player you are currently looking at. |
/profile <player> |
Displays the profile of the specified player. |
/simpleplayerprofileinfo reload |
Reload the plugin. |
Permissions
| Permission |
Description |
simpleplayerprofileinfo.use |
Allows players to use the /profile command. |
simpleplayerprofileinfo.reload |
Allows players to use the /simpleplayerprofileinfo reload command. |
Future Plans
The plugin currently uses a chat-based interface to keep it lightweight, simple, and fast.
A GUI version is something I am considering for a future update. However, I am still evaluating the best implementation, especially regarding compatibility between Java Edition and Bedrock Edition players, since Bedrock clients have a different inventory interface that may affect the overall user experience.
Feedback
Suggestions, bug reports, and feature requests are always welcome.
If you have an idea that could improve the plugin or encounter an issue while using it, please feel free to open an issue on the GitHub repository. Community feedback helps make the project better for everyone.
License
This project is licensed under the MIT License. See the LICENSE file for more information.
评论 0
登录后参与评分
还没有评论,来抢沙发吧