本帖最后由 名副其实 于 2022-7-19 19:34 编辑
【前言】
2022/7/17 1:15
我先浅浅翻一个小片段在这,免得到时候有人我说没弄完。
HelpChat?后面那个公会和什么什么的插件谁顶得住翻译啊,烂尾..也不好说出去,只好拿能够吃掉的先开开胃了。
2022/7/19 19:34
终于翻译完了,虽然只弄了几个小时。
但还是好累。 XP
原帖地址: https://github.com/Rosewood-Development/PlayerPoints/wiki
插件地址: https://www.spigotmc.org/resources/playerpoints.80745/
【导引】
【前言】
2022/7/17 1:15
我先浅浅翻一个小片段在这,免得到时候有人我说没弄完。
HelpChat?后面那个公会和什么什么的插件谁顶得住翻译啊,烂尾..也不好说出去,只好拿能够吃掉的先开开胃了。
2022/7/19 19:34
终于翻译完了,虽然只弄了几个小时。
但还是好累。 XP
原帖地址: https://github.com/Rosewood-Development/PlayerPoints/wiki
插件地址: https://www.spigotmc.org/resources/playerpoints.80745/
【导引】
主体内容 主页 安装本插件 依赖插件 PlaceholderAPI 支持 命令与权限 API 用法 入门教程 需要帮助? 加入我们的 Discord 服务器吧! |
本帖最后由 名副其实 于 2022-8-1 22:39 编辑
主页

什么是 PlayerPoints?
PlayerPoints 是一个简单高效的多经济插件,允许服主管理玩家的点数(译者注:国内称之为“点券”)。它可以被许多直接支持本插件的插件使用,也可以通过 Vault 为那些插件提供间接的支持。
支持
若你在使用我们的插件时遇到了问题,或者是有什么想问的问题,以及任何想要反馈的漏洞,又或者只是想聊个天,你都可以加入我们的 Discord 群组服!我们在我们的群组服里会提供所有的援助,因此当你遇到问题需要帮助时,我们总是会在 Discord 等着你!
下载与安装
如何安装
若要安装本插件,你需要访问我们的 Spigot 插件发布页并点击那个大大的下载按钮。这会提供给你一个 .jar 后缀的文件。首先你需要确保你的服务器是关闭想,然后将你的 .jar 后缀文件,放入服务器的 /plugins 文件夹下。这之后你就可以直接启动你的服务器,当服务器启动完毕之后,你应该能在你的插件文件夹中发现 PlayerPoints,这里存储着所有有关本插件的配置文件与数据。
依赖插件
当然不会有!可选地,我们建议你安装 Vault 和 PlaceholderAPI,对于 Vault 的 Hook 默认是关闭的,但你可以在 config.yml (译者注:即本插件的配置文件,位于 /plugins/PlayerPoints/config.yml)下开启该设置。
另类的安装方式
有另一种更高级的安装方法,你可以从我们的 GitHub 自行编译本插件的源码。本插件通过 Gradle 编译。若要使用本方法,在本项目的根目录下运行命令 ./gradlew build 来构建插件。完成构建后,插件文件可以在 ./build/libs 下被找到。
主页
什么是 PlayerPoints?
PlayerPoints is a simple and efficient currency plugin, adding the ability to manage points for players. Its features can be used by plugins that directly support PlayerPoints, or optionally through Vault.
PlayerPoints 是一个简单高效的多经济插件,允许服主管理玩家的点数(译者注:国内称之为“点券”)。它可以被许多直接支持本插件的插件使用,也可以通过 Vault 为那些插件提供间接的支持。
支持
If you need any help with our plugins, including any questions to ask, any bugs to report, or you just want to chat, join our Discord server! We offer all support through our server, so feel welcome to join if you need any assistance.
若你在使用我们的插件时遇到了问题,或者是有什么想问的问题,以及任何想要反馈的漏洞,又或者只是想聊个天,你都可以加入我们的 Discord 群组服!我们在我们的群组服里会提供所有的援助,因此当你遇到问题需要帮助时,我们总是会在 Discord 等着你!
下载与安装
如何安装
To install the plugin, visit our Spigot page and hit the big download button. This will download a jar file. Make sure your server is turned off first, and then put that jar file into your server's /plugins folder. After it's in the folder, go ahead and start up your server. After your server is finished starting up, you should be able to find a PlayerPoints folder in the /plugins/PlayerPoints directory, which contains all of the configuration files and data files for PlayerPoints.
若要安装本插件,你需要访问我们的 Spigot 插件发布页并点击那个大大的下载按钮。这会提供给你一个 .jar 后缀的文件。首先你需要确保你的服务器是关闭想,然后将你的 .jar 后缀文件,放入服务器的 /plugins 文件夹下。这之后你就可以直接启动你的服务器,当服务器启动完毕之后,你应该能在你的插件文件夹中发现 PlayerPoints,这里存储着所有有关本插件的配置文件与数据。
依赖插件
Dependencies
None! Optionally, we support Vault and PlaceholderAPI. The hook for Vault is disabled by default but can be enabled in the config.yml.
当然不会有!可选地,我们建议你安装 Vault 和 PlaceholderAPI,对于 Vault 的 Hook 默认是关闭的,但你可以在 config.yml (译者注:即本插件的配置文件,位于 /plugins/PlayerPoints/config.yml)下开启该设置。
另类的安装方式
In a more advanced method, you can compile the plugin yourself from the GitHub. PlayerPoints uses Gradle to compile and build the plugin. To use this method, run ./gradlew build in the project's root directory to build the jar. The plugin jar should be located in ./build/libs when finished.
有另一种更高级的安装方法,你可以从我们的 GitHub 自行编译本插件的源码。本插件通过 Gradle 编译。若要使用本方法,在本项目的根目录下运行命令 ./gradlew build 来构建插件。完成构建后,插件文件可以在 ./build/libs 下被找到。
本帖最后由 名副其实 于 2022-7-19 18:13 编辑
PlaceholderAPI 支持
介绍
在本插件中变量有两个不同的用法。首先是本插件提供的预设变量(下方可查阅)。其次是可以在本插件所有消息内使用的内建变偶娘。在你的本地文件中可编辑这些变量的运用。
变量
PlaceholderAPI 支持
介绍
There are two different uses for PlaceholderAPI in PlayerPoints. The first is using the custom placeholders that PlayerPoints provides, which can be found below. The second is the ability to use any placeholder in any message in PlayerPoints. These messages can be edited in your locale file.
在本插件中变量有两个不同的用法。首先是本插件提供的预设变量(下方可查阅)。其次是可以在本插件所有消息内使用的内建变偶娘。在你的本地文件中可编辑这些变量的运用。
变量
变量符 | 返回值描述 |
%playerpoints_points% | 直接返回玩家所拥有的的点券数量,如 1337 |
%playerpoints_points_formatted% | 返回玩家拥有的点券数量,但经过规整,例如每三位数字插入一个逗号(译者注:该变量在国内较少应用)。如 1,337 |
%playerpoints_points_shorthand% | 返回玩家拥有的点券数量,但经过规整,例如特定级别的数字会被一个字母代替。如: 1.37k |
%playerpoints_leaderboard_<#>% | 处于第 # 位的玩家名字 |
%playerpoints_leaderboard_<#>_amount% | 处于第 # 位的玩家所拥有的的点券数量 |
%playerpoints_leaderboard_<#>_amount_formatted% | 与第二个变量返回值相同,将第 # 位玩家拥有的点券数格式化输出,为其每三位数字添加一个逗号。 |
%playerpoints_leaderboard_<#>_amount_shorthand% | 与第三个变量返回值相同,将第 # 位玩家拥有的点券数格式化输出,将特定级别的数字用字母代替。 |
%playerpoints_leaderboard_position% | 特定玩家所处点券排行榜的的排名 |
%playerpoints_leaderboard_position_formatted% | 特定玩家所处点券排行榜的排名,以逗号分隔格式化输出。 |
本帖最后由 名副其实 于 2022-7-19 18:56 编辑
命令与权限
介绍
本页面包含了本插件所有的命令与权限。
我如何使用它们?
权限用法为了使用这些命令,你需要拥有与它们相关的权限。如果你是服务器中的管理员(或OP)默认情况下你拥有所有权限,因此你不需要手动添加这些权限。
如果你不愿意将 OP 给予所有玩家(这无疑是大多数服主不喜欢碰到的!),你需要一个权限插件,以将这些权限给予到对应的玩家。我们建议使用 LuckPerms 来设置这些权限。它也有一个维基解释你所有想知道的东西,包括如何设置插件本身。
命令用法本插件[注1]的等价命令有 /points,/playerpoints 和 /p。你可以用这三个命令中的任意一个来代替上述命令与权限列表中的 /points 命令。参数是一个能够让命令正常运转的东西,你必须将它们填入一些命令中,以使其按预期正常工作。你需要去掉参数中那些各种各样的括号,将它们以对应的参数一一代替。
其他帮助如果你实在搞不清一些东西,你可以访问我们的 Discord 群组服来获得更多帮助。但我们不能提供任何有关权限插件安装及其本身问题的帮助。但我们可以帮助你解决有关本插件[注1]的任何问题。
【脚注】
[注1] 原本 Wiki 此处写作 RoseLoot,是作者的另一个插件。此处应当是作者的笔误。
命令与权限
介绍
This page contains all of the commands and permissions for PlayerPoints.
本页面包含了本插件所有的命令与权限。
命令用法 | 命令描述 | 权限节点 |
/points | 显示插件的基本信息。 | |
/points help | 显示插件的帮助命令。 | |
/points reload | 重载插件文档并应用所有改动。 | playerpoints.reload |
/points pay <玩家名> <数量> | 将特定数量的点券支付给其他玩家。 | playerpoints.pay |
/points give <玩家名> <数量> | 给予玩家特定数量的点券。 | playerpoints.give |
/points giveall <数量> | 给予服务器内所有在线玩家特定数量的点券。 | playerpoints.giveall |
/points take <玩家名> <数量> | 拿走玩家特定数量的点券 | playerpoints.take |
/points set <玩家名> <数量> | 将玩家的点券数量设置为特定数 | playerpoints.set |
/points reset <玩家名> | 将玩家的点券数量设置为初始状态 | playerpoints.reset |
/points look <玩家名> | 查看玩家的点券数量 | playerpoints.look |
/points me | 查看自己的点券数量 | playerpoints.me |
/points load [next(下一页)/prev(前一页)/特定页码] | 查看点券排行榜 | playerpoints.lead |
/points broadcast <玩家名> | 在服务器里公布特定玩家所拥有的点券数量 | playerpoints.broadcast |
/points export | 将保存的玩家数据导出为 storage.yml | playerpoints.export |
/points import | 从 storage.yml 导入已有的玩家数据 | playerpoints.import |
我如何使用它们?
权限用法
To use these commands, you are required to have the permission nodes that are associated with them. If you are /OP on your server, you are typically given all of the permissions for your plugins, so you don't have to assign them manually.
If you are not someone to give OP status to all of your members (which is definitely something that most people avoid!), you will need a permissions plugin in order to assign these permissions to your members. We suggest using LuckPerms to set up permissions. It has an extensive wiki that explains everything you need to know in order to set it up.
如果你不愿意将 OP 给予所有玩家(这无疑是大多数服主不喜欢碰到的!),你需要一个权限插件,以将这些权限给予到对应的玩家。我们建议使用 LuckPerms 来设置这些权限。它也有一个维基解释你所有想知道的东西,包括如何设置插件本身。
命令用法
Aliases for PlayerPoints commands include /points, /playerpoints, and /p. You can use any of these to replace the /points that appears before the command arguments that are listed above.
For these commands, if you ever see text within <brackets>, you will need to include them in your command arguments. Arguments are things that you need to include in the command to make them work in the way that you want. You will ignore the brackets themselves, but will write what you want in place of the listed argument.
其他帮助
If something is confusing to use, please visit our Discord server for more help. We can't offer support for any issues or setup for permissions plugins, but we can help you with any PlayerPoints issues or questions you might have.
【脚注】
[注1] 原本 Wiki 此处写作 RoseLoot,是作者的另一个插件。此处应当是作者的笔误。
API 用法
介绍
本插件有一个接口,允许寻找并修改玩家的点券数量。
初次使用
我推荐你使用 Gradle 或 Maven 以将该插件用作你的项目的前置。请勿将本插件以 shade 方法塞进你的插件,它应当仅作为一种实现方法而存在。使用前置管理器相似的方式是将该插件下载并在你的代码编辑软件中手动引用这些代码。
将 $VERSION$ 代替为你的插件正在使用的版本。3.0.0 或更高版本是可用的。
Gradle 代码
Maven 代码
API 接口用法
若要使用本插件的 API,你必须先在你的插件输入 API 的相关内容。下列示例代码可以找到 API 所提供的接口内容。
软前置
你需要在你的插件 plugin.yml 下添加 softdepend: [PlayerPoints](作软前置) 或 depend: [PlayerPoints](作硬前置)来设置你的插件对于 PlayerPoints 的依赖度。
介绍
PlayerPoints contains an API for looking up and modifying a player's points balance.
初次使用
I recommend that you use either Gradle or Maven to include the dependency for PlayerPoints in your project. Do not shade the entire plugin into your jar, it should only be added as an implementation. An alternative to using a dependency manager is to download the jar and reference it within your IDE manually.
Replace $VERSION$ with the version of the plugin you are using. Versions 3.0.0 and newer are available.
我推荐你使用 Gradle 或 Maven 以将该插件用作你的项目的前置。请勿将本插件以 shade 方法塞进你的插件,它应当仅作为一种实现方法而存在。使用前置管理器相似的方式是将该插件下载并在你的代码编辑软件中手动引用这些代码。
将 $VERSION$ 代替为你的插件正在使用的版本。3.0.0 或更高版本是可用的。
Gradle 代码
repositories {
maven {
url = 'https://repo.rosewooddev.io/repository/public/'
}
}
dependencies {
compile 'org.black_ixx:playerpoints:$VERSION$'
}
Maven 代码
<repositories>
<repository>
<id>rosewood-repo</id>
<url>https://repo.rosewooddev.io/repository/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.black_ixx</groupId>
<artifactId>playerpoints</artifactId>
<version>$VERSION$</version>
<scope>provided</scope>
</dependency>
</dependencies>
API 接口用法
In order to use the API, you must first acquire an API instance. An example plugin class that does this can be found below.
import org.black_ixx.PlayerPointsAPI;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class Example extends JavaPlugin {
private PlayerPointsAPI ppAPI;
@Override
public void onEnable() {
if (Bukkit.getPluginManager().isPluginEnabled("PlayerPoints")) {
this.ppAPI = PlayerPoints.getInstance().getAPI();
}
// When you want to access the API, check if the instance is null
if (this.ppAPI != null) {
// Do stuff with the API here
}
}
}
软前置
You will need to add softdepend: [PlayerPoints] or depend: [PlayerPoints] to your plugin.yml depending on if your plugin requires PlayerPoints to be installed or not.
你需要在你的插件 plugin.yml 下添加 softdepend: [PlayerPoints](作软前置) 或 depend: [PlayerPoints](作硬前置)来设置你的插件对于 PlayerPoints 的依赖度。