-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PluginMessages.java
83 lines (62 loc) · 4.16 KB
/
PluginMessages.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package cc.carm.plugin.scriptitems.conf;
import cc.carm.lib.configuration.core.ConfigurationRoot;
import cc.carm.lib.mineconfiguration.bukkit.value.ConfiguredMessageList;
public class PluginMessages extends ConfigurationRoot {
public static final ConfiguredMessageList<String> USAGE = ConfiguredMessageList.asStrings().defaults(
"&2&l脚本物品 &f指令帮助",
"&8#&f give &a<玩家名> &a<脚本ID> &2[数量]",
"&8-&7 给予指定玩家指定数量的物品。",
"&8#&f get &a<脚本ID> &2[数量]",
"&8-&7 给予自己指定数量的物品。",
"&8#&f apply &a<脚本ID>",
"&8-&7 为手中的物品直接绑定一个配置。",
"&8#&f reload",
"&8-&7 重载配置文件。"
).build();
public static final ConfiguredMessageList<String> NO_PERMISSION = ConfiguredMessageList.asStrings()
.defaults("&c&l抱歉!&f但您没有权限使用该命令。")
.build();
public final static ConfiguredMessageList<String> COOLDOWN = ConfiguredMessageList.asStrings()
.defaults("&f您需要等待 &a%(time)秒 &f才可再次使用该物品。")
.params("time").build();
public final static ConfiguredMessageList<String> ONLY_PLAYER = ConfiguredMessageList.asStrings()
.defaults("&c抱歉,只有作为玩家时才能使用该指令。").build();
public final static ConfiguredMessageList<String> USE_ITEM = ConfiguredMessageList.asStrings()
.defaults("&f请手持任意物品后再使用该指令。").build();
public final static ConfiguredMessageList<String> NOT_ONLINE = ConfiguredMessageList.asStrings()
.defaults("&f玩家 &a%(player) &f并不在线。")
.params("player").build();
public final static ConfiguredMessageList<String> NOT_EXISTS = ConfiguredMessageList.asStrings()
.defaults("&f脚本配置 &a%(id) &f并不存在。")
.params("id").build();
public final static ConfiguredMessageList<String> WRONG_AMOUNT = ConfiguredMessageList.asStrings()
.defaults("&f请输入正确的数量!")
.build();
public final static ConfiguredMessageList<String> WRONG_ITEM = ConfiguredMessageList.asStrings()
.defaults("&f该脚本并未成功配置具体物品,请使用 &a/ScriptItems apply &f来绑定到指定物品上,或在配置文件中正确配置物品。")
.build();
public final static ConfiguredMessageList<String> GIVEN_ALL = ConfiguredMessageList.asStrings()
.defaults("&f您成功给予 &2%(player) &f了 &a%(amount) &f个 &a%(name) &f。")
.params("player", "amount", "name").build();
public final static ConfiguredMessageList<String> GIVEN_SOME = ConfiguredMessageList.asStrings()
.defaults(
"&f您成功给予 &2%(player) &f了 &a%(amount) &f个 &a%(name) &f。",
"&f但由于目标玩家背包已满,仍有 &a%(remain) &f个 &a%(name) &f未成功放入背包。"
).params("player", "amount", "name", "remain").build();
public final static ConfiguredMessageList<String> APPLIED = ConfiguredMessageList.asStrings()
.defaults("&f成功为手上的 &2%(type) &f绑定了脚本 &a%(name) &f。")
.params("type", "name").build();
public static class RESTRICTIONS extends ConfigurationRoot {
public final static ConfiguredMessageList<String> INVALID = ConfiguredMessageList.asStrings()
.defaults("&c&l抱歉!&f由于配置的时间限制错误,该物品目前暂不可用。")
.build();
public final static ConfiguredMessageList<String> NOT_STARTED = ConfiguredMessageList.asStrings()
.defaults("&f该物品目前还到可使用的时间,请在 &a%(time) &f后使用~")
.params("time")
.build();
public final static ConfiguredMessageList<String> EXPIRED = ConfiguredMessageList.asStrings()
.defaults("&c&l抱歉!&f由于该物品已过最后使用期限,故无法继续使用。")
.params("time")
.build();
}
}