From 5b9ee3de0733ab398e0c9a378b153140238a3694 Mon Sep 17 00:00:00 2001 From: GeekFrog Date: Mon, 25 Jun 2018 18:43:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8E=A9=E5=AE=B6=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E4=B8=96=E7=95=8C=EF=BC=8CHD=E7=A7=B0=E5=8F=B7?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 ++- config/plugin.yml | 4 +- pom.xml | 2 +- src/main/gg/frog/mc/base/config/LangCfg.java | 2 +- .../mc/nametags/listener/TagsListener.java | 8 + src/resources/lang/en.yml | 2 +- src/resources/lang/zh-cn.yml | 2 +- src/resources/plugin.yml | 4 +- 帖子代码.txt | 166 ++++++++++++++++-- 9 files changed, 187 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index e8261b6..f5b619b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # PermissionsTime -### 支持跨服的权限限时插件 +### 支持跨服的权限限时插件(+称号功能) ##### [插件使用说明](https://github.com/geekfrog/PermissionsTime/wiki/PermissionsTime-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E) ##### 构建地址:[http://ci.frog.gg/](http://ci.frog.gg/) @@ -21,6 +21,26 @@ ![image](http://i.imgur.com/bqvIVvz.jpg) ![image](http://i.imgur.com/NFK3WKa.jpg) +#### 称号功能: +
+查看详细
+1.支持Placeholder变量、HolographicDisplays显示称号(解决称号长度限制问题)
+2.可以设置称号功能开关、默认称号、是否 修改displayname、是否使用HolographicDisplays、以及称号刷新时间(使用Placeholder变量的话)
+3.自带Placeholder变量: %pttag_fullname% %pttag_prefix% %pttag_suffix% 来显示displayname、prefix+color、suffix
+ +![image](http://i.imgur.com/o7tZTQp.jpg) +![image](http://i.imgur.com//E3SNYNj.jpg) + +![image](http://i.imgur.com/zRAOpFf.jpg) +![image](http://i.imgur.com/tP66jxF.jpg) + +![image](http://i.imgur.com/FGxa96D.jpg) +![image](http://i.imgur.com/ovCir3l.jpg) +![image](http://i.imgur.com/1oel29B.jpg) + +![image](http://i.imgur.com/w702i9I.jpg) + +
#### 已知问题(作者提醒): diff --git a/config/plugin.yml b/config/plugin.yml index d0f6326..de8c166 100644 --- a/config/plugin.yml +++ b/config/plugin.yml @@ -1,5 +1,5 @@ name: ${project.name} -version: 0.4.2-SNAPSHOT +version: 0.4.2-SNAPSHOT-b1002 main: gg.frog.mc.base.PluginMain author: - GeekFrog @@ -34,7 +34,7 @@ permissions: description: View your packages. default: true permissionstime.tag: - description: View your color/prefix/suffix tags. + description: Set your color/prefix/suffix of tags. default: true permissionstime.reload: description: Reloads the config file. diff --git a/pom.xml b/pom.xml index 12706bc..4dcf744 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 gg.frog.mc permissionstime - 0.4.2-SNAPSHOT-b1001 + 0.4.2-SNAPSHOT-b1003 jar PermissionsTime 支持跨服的权限限时插件 diff --git a/src/main/gg/frog/mc/base/config/LangCfg.java b/src/main/gg/frog/mc/base/config/LangCfg.java index c59159d..b61c3b5 100644 --- a/src/main/gg/frog/mc/base/config/LangCfg.java +++ b/src/main/gg/frog/mc/base/config/LangCfg.java @@ -128,7 +128,7 @@ public class LangCfg extends PluginConfig { CMD_HELP = getConfig().getString("cmd.help", "/{0} help \\n&7 - Show commands."); CMD_ME = getConfig().getString("cmd.me", "&6/{0} me \\n&7 - View your packages."); - CMD_TAG = getConfig().getString("cmd.tag", "&6/{0} tag \\n&7 - View your color/prefix/suffix tags."); + CMD_TAG = getConfig().getString("cmd.tag", "&6/{0} tag \\n&7 - Set your color/prefix/suffix of tags."); CMD_PACKAGES = getConfig().getString("cmd.packages", "&6/{0} packages [packageName] \\n&7 - View packages."); CMD_GET = getConfig().getString("cmd.get", "&6/{0} get \\n&7 - View player packages."); CMD_GIVE = getConfig().getString("cmd.give", "&6/{0} give