SimplePlayerProfileInfo

插件

· 作者 mikokiechan

一款轻量且高度可定制的 Minecraft 插件,允许玩家快速查看其他玩家的个人信息。

0 本站下载 0 关注 更新于 4 个月前

需要前置:PlaceholderAPI

最新 1.0.0 · 26.1.2 · Paper / Purpur

一键开服(送7天)

SimplePlayerProfileInfo

一款轻量级且高度可定制的 Minecraft 插件,允许玩家快速查看其他玩家的个人资料信息。


为什么选择 SimplePlayerProfileInfo?

与许多显示固定数据集合的玩家信息插件不同,SimplePlayerProfileInfo 让服务器管理员完全掌控所显示的信息内容。所有配置均通过 config.yml 进行设置,使您无需修改插件或编写任何代码即可自定义每位玩家的资料。

该插件可以显示 PlaceholderAPI 及其扩展提供的几乎所有与玩家相关的信息,包括:

  • 用户名
  • 权限组(Rank)
  • 等级
  • 游戏时长
  • 经济余额
  • 在线状态
  • 统计数据
  • 以及更多...

无论您是想创建简单的玩家资料还是显示详细的服务器统计信息,显示的内容完全由您决定。只需编辑配置文件,添加所需的占位符,插件将自动处理其余部分。


功能特性

  • 查看你当前注视的玩家的资料。
  • 使用用户名查看任意玩家的资料。
  • 完全通过 config.yml 进行配置。
  • 支持 PlaceholderAPI。
  • 显示几乎任何 PlaceholderAPI 占位符。
  • 轻松添加、移除或重新排序资料信息。
  • 轻量级且易于使用。

预览

聊天输出

Screenshot 2026-07-06 160034

(仅供参考。显示的信息完全取决于您的配置。)


工作原理

注视玩家

只需注视另一名玩家并执行以下命令:

/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 扩展的占位符,从而在显示的信息方面拥有完全的灵活性。


安装

  1. 下载最新版本。
  2. 将插件放入服务器的 plugins 文件夹中。
  3. 安装 PlaceholderAPI。
  4. 启动或重启服务器。
  5. 编辑 config.yml 以自定义显示的信息。
  6. 修改配置后重新加载或重启服务器。

依赖项

  • PlaceholderAPI 必需

注意:必须安装 PlaceholderAPI。如果没有它,占位符将无法解析,插件也无法按预期工作。


命令

Command Description
/profile 显示您当前注视的玩家的资料。
/profile <player> 显示指定玩家的资料。
/simpleplayerprofileinfo reload 重新加载插件。

权限

权限 描述
simpleplayerprofileinfo.use 允许玩家使用 /profile 命令。
simpleplayerprofileinfo.reload 允许玩家使用 /simpleplayerprofileinfo reload 命令。

未来计划

该插件目前采用基于聊天的界面,以保持其轻量、简单和快速。

GUI 版本是我正在考虑的未来更新内容之一。然而,我仍在评估最佳实现方案,特别是关于 Java 版与基岩版玩家之间的兼容性,因为基岩客户端具有不同的库存界面,这可能会影响整体用户体验。


反馈

欢迎提供建议、错误报告和功能请求。

如果您有能够改进该插件的想法,或者在使用过程中遇到问题,请随时在 GitHub 仓库中提交 issue。社区的反馈有助于让这个项目对所有人都变得更好。


许可证

本项目采用 MIT 许可证授权。有关更多信息,请参阅 LICENSE 文件。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源