
适用于我的 velocity playtime 插件的 PlaceholderAPI 扩展。
只需将 PlaytimeLink 添加到你的 bukkit 服务器,下载 velocity 插件的新版本更新,占位符即可立即生效——无需任何配置。(你只需将主 playtime 插件放置于 velocity 代理端,而此插件仅放置在你希望使用占位符的 bukkit 服务器上。)
如果你希望在 bukkit 服务器上执行 Rewards 命令,则需要在该插件的配置文件中添加它们。你可以使用权限 "vptlink.rewards.exempt" 来豁免玩家获得奖励。
可用的占位符:
- %VPTlink_years% - 玩家的年数游戏时长。
- %VPTlink_months% - 玩家的月数游戏时长。
- %VPTlink_weeks% - 玩家的周数游戏时长。
- %VPTlink_days% - 玩家的天数游戏时长。
- %VPTlink_hours% - 玩家的小时数游戏时长。
- %VPTlink_minutes% - 玩家的分钟数游戏时长。
- %VPTlink_seconds% - 玩家的秒数游戏时长。
- %VPTlink_totalyears% - 玩家的总年数游戏时长。
- %VPTlink_totalmonths% - 玩家的总月数游戏时长。
- %VPTlink_totalweeks% - 玩家的总周数游戏时长。
- %VPTlink_totaldays% - 玩家的总天数游戏时长。
- %VPTlink_totalhours% - 玩家的总小时数游戏时长。
- %VPTlink_totalminutes% - 玩家的总分钟数游戏时长。
- %VPTlink_totalseconds% - 玩家的总秒数游戏时长。
- %VPTlink_place% - 玩家在排行榜中的位置。
- %VPTlink_topname1% - 排名第一玩家的用户名
- %VPTlink_toptime1_years% - 排名第一玩家的年数游戏时长
- %VPTlink_toptime1_months% - 排名第一玩家的月数游戏时长
- %VPTlink_toptime1_weeks% - 排名第一玩家的周数游戏时长
- %VPTlink_toptime1_days% - 排名第一玩家的天数游戏时长
- %VPTlink_toptime1_hours% - 排名第一玩家的小时数游戏时长
- %VPTlink_toptime1_minutes% - 排名第一玩家的分钟数游戏时长
- %VPTlink_toptime1_seconds% - 排名第一玩家的秒数游戏时长
- %VPTlink_topname2% ... 依此类推 - 对排行榜上的每位玩家遵循此模式,此处也可使用总游戏时长,例如:
%VPTlink_toptime4_totalweeks%
自 v1.4.5 起,如果你想以小时为最大时间单位显示游戏时长(如旧版方式),你可以这样写:%VPTlink_totalhours% hours %VPTlink_minutes% minutes %VPTlink_playtime_seconds% seconds 作为示例。对于任何你想设为最高单位的时段,均可采用相同模式,只需将其设为 total,其余保持普通格式即可。
注意:该插件需要运行在 Java 21 或更高版本上。
github 欢迎提交错误报告和功能请求,感谢大家达成 1000 次下载。

PlaceholderAPI extension for my velocity playtime plugin.
Simply add PlaytimeLink to your bukkit servers, download the new update for my velocity plugin, and the placeholders will start working immediately —no configuration required. (You only need to put the main playtime plugin to your velocity proxy, and this plugin only to your bukkit servers where you want placeholders.)
If you want to execute Rewards commands on the bukkit server, you'll need to add them in this plugin's config file. You can use the permission "vptlink.rewards.exempt" to exempt players from getting rewards.
Available Placeholders:
- %VPTlink_years% - Playtime years of a player.
- %VPTlink_months% - Playtime months of a player.
- %VPTlink_weeks% - Playtime weeks of a player.
- %VPTlink_days% - Playtime days of a player.
- %VPTlink_hours% - Playtime hours of a player.
- %VPTlink_minutes% - Playtime minutes of a player.
- %VPTlink_seconds% - Playtime seconds of a player.
- %VPTlink_totalyears% - Total playtime of a player in years.
- %VPTlink_totalmonths% - Total playtime of a player in months.
- %VPTlink_totalweeks% - Total playtime of a player in weeks.
- %VPTlink_totaldays% - Total playtime of a player in days.
- %VPTlink_totalhours% - Total playtime of a player in hours.
- %VPTlink_totalminutes% - Total playtime of a player in minutes.
- %VPTlink_totalseconds% - Total playtime of a player in seconds.
- %VPTlink_place% - Toplist position of the player.
- %VPTlink_topname1% - Username of the top player
- %VPTlink_toptime1_years% - Playtime years of the top player
- %VPTlink_toptime1_months% - Playtime months of the top player
- %VPTlink_toptime1_weeks% - Playtime weeks of the top player
- %VPTlink_toptime1_days% - Playtime days of the top player
- %VPTlink_toptime1_hours% - Playtime hours of the top player
- %VPTlink_toptime1_minutes% - Playtime minutes of the top player
- %VPTlink_toptime1_seconds% - Playtime seconds of the top player
- %VPTlink_topname2% ... etc. - Continue this pattern for each player on the toplist, total playtime can also be used here, like: %VPTlink_toptime4_totalweeks%
Since v1.4.5, if you you wanna display playtime with hours as the max time format, like it used to be, you can do: %VPTlink_totalhours% hours %VPTlink_minutes% minutes %VPTlink_playtime_seconds% seconds for example. You can do the same pattern for any time unit you want to be the highest, you just need to put it as total, and the rest as normal.
Note: the plugin needs to be ran on Java 21 or newer.
Bug reports and feature requests are welcome on github, thank you for the 1000 downloads.
评论 0
登录后参与评分
还没有评论,来抢沙发吧