mirror of
https://e.coding.net/circlecloud/SimpleEssential.git
synced 2024-11-16 01:08:46 +00:00
fix Language file and versionchecker...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
0541042401
commit
f8eef535bc
@ -19,8 +19,8 @@ import com.google.common.base.Charsets;
|
||||
|
||||
public class VersionChecker implements Listener {
|
||||
Plugin plugin;
|
||||
String checkurl = "https://coding.net/u/502647092/p/{0}/git/raw/{1}/src/plugin.yml";
|
||||
String branch = "master";
|
||||
public String checkurl = "https://coding.net/u/502647092/p/%s/git/raw/%s/src/plugin.yml";
|
||||
public String branch = "master";
|
||||
|
||||
public VersionChecker(Plugin plugin) {
|
||||
this.plugin = plugin;
|
||||
@ -37,6 +37,10 @@ public class VersionChecker implements Listener {
|
||||
}
|
||||
|
||||
public String getCheckUrl(String pluginName, String branch) {
|
||||
System.out.println(checkurl);
|
||||
System.out.println(pluginName);
|
||||
System.out.println(branch);
|
||||
System.out.println(String.format(checkurl, pluginName, branch));
|
||||
return String.format(checkurl, pluginName, branch);
|
||||
}
|
||||
|
||||
@ -73,6 +77,7 @@ public class VersionChecker implements Listener {
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
plugin.getLogger().warning("版本更新检查失败!");
|
||||
}
|
||||
}
|
||||
|
@ -2,25 +2,25 @@
|
||||
version: 1.0
|
||||
#基础语言配置
|
||||
Base:
|
||||
offline: "§c玩家 {0} 不存在或不在线!"
|
||||
offline: "§c玩家 %s 不存在或不在线!"
|
||||
no-permission: '§c你没有此命令的权限.'
|
||||
playercommand: '§c此命令只能由玩家执行.'
|
||||
#基础传送系统
|
||||
Teleport:
|
||||
tp: '§a传送开始 {0}秒 后到达 目的地 §d世界: {1} §3X: {2} Z: {3}!'
|
||||
accept: '§a已接受玩家: {0} §a的传送请求!'
|
||||
acceptfrom: '§a玩家: {0}§a接受了您的请求!'
|
||||
deny: '§c已拒绝玩家: {0} §c的传送请求!'
|
||||
denyfrom: '§c玩家: {0}§c拒绝了您的请求!'
|
||||
tp: '§a传送开始 %s秒 后到达 目的地 §d世界: %s §3X: %s Z: %s!'
|
||||
accept: '§a已接受玩家: %s §a的传送请求!'
|
||||
acceptfrom: '§a玩家: %s§a接受了您的请求!'
|
||||
deny: '§c已拒绝玩家: %s §c的传送请求!'
|
||||
denyfrom: '§c玩家: %s§c拒绝了您的请求!'
|
||||
offline: '§c目标玩家已离线 本次传送取消!'
|
||||
none: '§c没有找到需要传送的队列!'
|
||||
sethomesuccess: '§a家设置成功!'
|
||||
sethomeerror: '§c请站在床上设置家!'
|
||||
homelose: '§c你的床丢失了或者被方块阻挡了!'
|
||||
top: '&a已传送至当前位置最高方块!'
|
||||
tpsend: '§a已经向玩家 {0} §a发送传送请求!'
|
||||
tpa: '§a玩家: {0}§a请求传送到你这里!'
|
||||
tphere: '§b玩家: {0}§b请求你传送到他那里!'
|
||||
tpsend: '§a已经向玩家 %s §a发送传送请求!'
|
||||
tpa: '§a玩家: %s§a请求传送到你这里!'
|
||||
tphere: '§b玩家: %s§b请求你传送到他那里!'
|
||||
tpaccept: '§a输入命令/tpaccept 或 /tpok 接受传送'
|
||||
tpdeny: '§c输入命令/tpdeny 或 /tpno 拒绝传送'
|
||||
nobackloc: '§c未找到可以Back的地点!'
|
Loading…
Reference in New Issue
Block a user