@@ -15,7 +15,7 @@ import net.minecraft.entity.player.ServerPlayerEntity
1515
1616/* *
1717 * Class for interacting with command api.
18- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
18+ * @since 2.0.0-SNAPSHOT.1.
1919 */
2020object CommandAPI {
2121 private lateinit var registeredCommands: RootCommandNode <CommandSource >
@@ -27,7 +27,7 @@ object CommandAPI {
2727 * for removing command. Must be called before
2828 * any processor initializing.
2929 * @param dispatcher command dispatcher.
30- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
30+ * @since 2.0.0-SNAPSHOT.1.
3131 */
3232 /*
3333 This is a crutch to replace vanilla commands,
@@ -45,7 +45,7 @@ object CommandAPI {
4545 /* *
4646 * Assign dispatcher for command registering.
4747 * @param dispatcher command dispatcher.
48- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
48+ * @since 2.0.0-SNAPSHOT.1.
4949 */
5050 fun assignDispatcher (
5151 dispatcher : CommandDispatcher <CommandSource >
@@ -58,19 +58,19 @@ object CommandAPI {
5858
5959 /* *
6060 * @return server command dispatcher.
61- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
61+ * @since 2.0.0-SNAPSHOT.1.
6262 */
6363 fun getDispatcher () = dispatcher
6464
6565 /* *
6666 * @return true if dispatcher assigned.
67- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
67+ * @since 2.0.0-SNAPSHOT.1.
6868 */
6969 fun isAssignedDispatcher () = dispatcherAssigned
7070
7171 /* *
7272 * @return all installed and checked commands.
73- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
73+ * @since 2.0.0-SNAPSHOT.1.
7474 */
7575 fun getAllCommands () = CommandProcessor .getCommands()
7676
@@ -79,7 +79,7 @@ object CommandAPI {
7979 * specified name.
8080 * @param command command name to remove without `/`.
8181 * @return true if command removed, false otherwise.
82- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
82+ * @since 2.0.0-SNAPSHOT.1.
8383 */
8484 fun removeCommand (command : String ): Boolean =
8585 registeredCommands.children.removeIf { it.name == command }
@@ -88,7 +88,7 @@ object CommandAPI {
8888 * @param context command context.
8989 * @param argumentName argument name.
9090 * @return true if string exist.
91- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
91+ * @since 2.0.0-SNAPSHOT.1.
9292 */
9393 fun getStringExisting (
9494 context : CommandContext <CommandSource >,
@@ -104,7 +104,7 @@ object CommandAPI {
104104 * @param context command context.
105105 * @param argumentName argument name.
106106 * @return string from command.
107- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
107+ * @since 2.0.0-SNAPSHOT.1.
108108 */
109109 fun getString (
110110 context : CommandContext <CommandSource >,
@@ -115,7 +115,7 @@ object CommandAPI {
115115 * @param context command context.
116116 * @param argumentName argument name.
117117 * @return true if int exist.
118- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
118+ * @since 2.0.0-SNAPSHOT.1.
119119 */
120120 fun getIntExisting (
121121 context : CommandContext <CommandSource >,
@@ -131,7 +131,7 @@ object CommandAPI {
131131 * @param context command context.
132132 * @param argumentName argument name.
133133 * @return int from command.
134- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
134+ * @since 2.0.0-SNAPSHOT.1.
135135 */
136136 fun getInt (
137137 context : CommandContext <CommandSource >,
@@ -142,7 +142,7 @@ object CommandAPI {
142142 * @param context command context.
143143 * @param argumentName argument name.
144144 * @return true if bool exist.
145- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
145+ * @since 2.0.0-SNAPSHOT.1.
146146 */
147147 fun getBoolExisting (
148148 context : CommandContext <CommandSource >,
@@ -158,7 +158,7 @@ object CommandAPI {
158158 * @param context command context.
159159 * @param argumentName argument name.
160160 * @return bool from command.
161- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
161+ * @since 2.0.0-SNAPSHOT.1.
162162 */
163163 fun getBool (
164164 context : CommandContext <CommandSource >,
@@ -169,7 +169,7 @@ object CommandAPI {
169169 * @param context command context.
170170 * @param argumentName argument name.
171171 * @return true if entity exist.
172- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
172+ * @since 2.0.0-SNAPSHOT.1.
173173 */
174174 fun getEntityExisting (
175175 context : CommandContext <CommandSource >,
@@ -185,7 +185,7 @@ object CommandAPI {
185185 * @param context command context.
186186 * @param argumentName argument name.
187187 * @return entity from command.
188- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
188+ * @since 2.0.0-SNAPSHOT.1.
189189 */
190190 fun getEntity (
191191 context : CommandContext <CommandSource >,
@@ -196,7 +196,7 @@ object CommandAPI {
196196 * @param context command context.
197197 * @param argumentName argument name.
198198 * @return true if entities exist.
199- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
199+ * @since 2.0.0-SNAPSHOT.1.
200200 */
201201 fun getEntitiesExisting (
202202 context : CommandContext <CommandSource >,
@@ -212,7 +212,7 @@ object CommandAPI {
212212 * @param context command context.
213213 * @param argumentName argument name.
214214 * @return entities from command.
215- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
215+ * @since 2.0.0-SNAPSHOT.1.
216216 */
217217 fun getEntities (
218218 context : CommandContext <CommandSource >,
@@ -223,7 +223,7 @@ object CommandAPI {
223223 * @param context command context.
224224 * @param argumentName argument name.
225225 * @return true if player exist.
226- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
226+ * @since 2.0.0-SNAPSHOT.1.
227227 */
228228 fun getPlayerExisting (
229229 context : CommandContext <CommandSource >,
@@ -239,7 +239,7 @@ object CommandAPI {
239239 * @param context command context.
240240 * @param argumentName argument name.
241241 * @return player from command.
242- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
242+ * @since 2.0.0-SNAPSHOT.1.
243243 */
244244 fun getPlayer (
245245 context : CommandContext <CommandSource >,
@@ -250,7 +250,7 @@ object CommandAPI {
250250 * @param context command context.
251251 * @param argumentName argument name.
252252 * @return true if players exist.
253- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
253+ * @since 2.0.0-SNAPSHOT.1.
254254 */
255255 fun getPlayersExisting (
256256 context : CommandContext <CommandSource >,
@@ -266,7 +266,7 @@ object CommandAPI {
266266 * @param context command context.
267267 * @param argumentName argument name.
268268 * @return players from command.
269- * @since Mod: 2.0.0-SNAPSHOT.1, API: 1.0.0
269+ * @since 2.0.0-SNAPSHOT.1.
270270 */
271271 fun getPlayers (
272272 context : CommandContext <CommandSource >,
0 commit comments