1 /*
2  * Copyright (c) 2017-2018 sel-project
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in all
12  * copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20  * SOFTWARE.
21  *
22  */
23 /**
24  * Copyright: 2017-2018 sel-project
25  * License: MIT
26  * Authors: Kripth
27  * Source: $(HTTP github.com/sel-project/selery/source/selery/util/messages.d, selery/util/messages.d)
28  */
29 module selery.util.messages;
30 
31 import selery.lang : Translatable;
32 
33 final class Messages {
34 
35 	@disable this();
36 
37 	enum about {
38 
39 		plugins = Translatable("commands.about.plugins"),
40 		software = Translatable("commands.about.software"),
41 
42 	}
43 
44 	enum deop {
45 
46 		failed = Translatable.all("commands.deop.failed"),
47 		message = Translatable.fromBedrock("commands.deop.message"),
48 		success = Translatable.all("commands.deop.success"),
49 
50 	}
51 
52 	enum difficulty {
53 
54 		success = Translatable.all("commands.difficulty.success"),
55 
56 	}
57 
58 	enum gamemode {
59 
60 		successOther = Translatable.all("commands.gamemode.success.other"),
61 		successSelf = Translatable.all("commands.gamemode.success.self"),
62 
63 	}
64 
65 	enum gamerule {
66 
67 		invalidType = Translatable.fromBedrock("commands.gamerule.type.invalid"),
68 		success = Translatable.all("commands.gamerule.success"),
69 
70 	}
71 
72 	enum generic {
73 
74 		invalidBoolean = Translatable.all("commands.generic.boolean.invalid"),
75 		invalidParameter = Translatable.all("commands.generic.parameter.invalid"),
76 		invalidSyntax = Translatable.fromJava("commands.generic.syntax"),
77 		notFound = Translatable.fromJava("commands.generic.notFound"),
78 		notFoundConsole = Translatable("commands.generic.notFound.console"),
79 		notImplemented = Translatable.fromBedrock("commands.generic.notimplemented"),
80 		numInvalid = Translatable.all("commands.generic.num.invalid"),
81 		numTooBig = Translatable.all("commands.generic.num.tooBig"),
82 		numTooSmall = Translatable.all("commands.generic.num.tooSmall"),
83 		playerNotFound = Translatable("commands.kick.not.found", "commands.generic.player.notFound", "commands.kick.not.found"),
84 		targetNotFound = Translatable.fromBedrock("commands.generic.noTargetMatch"),
85 		targetNotPlayer = Translatable.fromBedrock("commands.generic.targetNotPlayer"),
86 		usage = Translatable.all("commands.generic.usage"),
87 		usageNoParam = Translatable.fromBedrock("commands.generic.usage.noparam"),
88 
89 	}
90 
91 	enum help {
92 
93 		commandAliases = Translatable.fromBedrock("commands.help.command.aliases"),
94 		footer = Translatable.all("commands.help.footer"),
95 		header = Translatable.all("commands.help.header"),
96 		invalidSender = Translatable("commands.help.invalidSender"),
97 
98 	}
99 
100 	enum kick {
101 
102 		successReason = Translatable.all("commands.kick.success.reason"),
103 		success = Translatable.all("commands.kick.success"),
104 
105 	}
106 
107 	enum list {
108 
109 		players = Translatable.all("commands.players.list"),
110 
111 	}
112 
113 	enum message {
114 
115 		incoming = Translatable.all("commands.message.display.incoming"),
116 		outcoming = Translatable.all("commands.message.display.outgoing"),
117 		sameTarget = Translatable.all("commands.message.sameTarget"),
118 
119 	}
120 
121 	enum op {
122 
123 		failed = Translatable.all("commands.op.failed"),
124 		message = Translatable.fromBedrock("commands.op.message"),
125 		success = Translatable.all("commands.op.success"),
126 
127 	}
128 
129 	enum reload {
130 
131 		success = Translatable("commands.reload.success"),
132 
133 	}
134 
135 	enum seed {
136 
137 		success = Translatable.all("commands.seed.success"),
138 
139 	}
140 
141 	enum setmaxplayers {
142 
143 		success = Translatable.all("commands.setmaxplayers.success"), //TODO check java
144 
145 	}
146 
147 	enum stop {
148 
149 		failed = Translatable("commands.stop.failed"),
150 		start = Translatable.all("commands.stop.start"),
151 
152 	}
153 
154 	enum time {
155 
156 		added = Translatable.all("commands.time.added"),
157 		queryDay = Translatable.fromBedrock("commands.time.query.day"),
158 		queryDaytime = Translatable.fromBedrock("commands.time.query.daytime"),
159 		queryGametime = Translatable.fromBedrock("commands.time.query.gametime"),
160 		set = Translatable.all("commands.time.set"),
161 
162 	}
163 
164 	enum toggledownfall {
165 
166 		success = Translatable.all("commands.downfall.success"),
167 
168 	}
169 
170 	enum transferserver {
171 
172 		invalidPort = Translatable.fromBedrock("commands.transferserver.invalid.port"),
173 		success = Translatable.fromBedrock("commands.transferserver.successful"),
174 
175 	}
176 
177 	enum weather {
178 
179 		clear = Translatable.all("commands.weather.clear"),
180 		rain = Translatable.all("commands.weather.rain"),
181 		thunder = Translatable.all("commands.weather.thunder"),
182 
183 	}
184 
185 }