Commit graph

27 commits

Author SHA1 Message Date
modmuss50
a02b4463f9 21w19a 2021-05-12 20:23:04 +01:00
modmuss50
bb68760067 Bump version 2021-03-22 19:04:47 +00:00
Jason
04be5bc849 Fix sendError discrepency with client commands (#1358)
This fixes a discrepancy between how error messages are formatted in client commands vs server commands.

(cherry picked from commit f63a27820f)
2021-03-22 19:02:21 +00:00
modmuss50
f9d6353a62 Bump version 2021-02-23 18:31:52 +00:00
Juuxel
2d24a8b238 Client-sided commands (#1115)
* Move command API icon to correct location

* Add client-sided command API

* Add jd note about threads

* Add license headers

* ArgumentBuilders => ClientArgumentBuilders

* Yeet custom prefixes

* Migrate testmod to lifecycle-events-v1

* Improve client command test

* Make client command test more similar to the server one

* Update to new yarn names

* Add handling for requires() in command suggestions

* Remove outdated TODO

* Playerification

* Clarify comments in ClientCommandInternals

* Use "s" instead of "it"

* Improve CommandSyntaxException logging

* Add missing import

* Add /fcc help command

* Add comments about server-client precedence rules

* Add missing license header

* Add /fabric-command-api-v1:client as an alias for /fcc

(cherry picked from commit 871300cf73)
2021-02-23 18:28:41 +00:00
modmuss50
92519afafe Version bump 2021-01-19 19:38:22 +00:00
i509VCB
f8cf2bb436 Add custom value denoting module lifecycles. (#1253)
* Add custom value denoting module lifecycles.

* Make the module validation work.

My hand has been forced - we must use buildSrc since JsonSlurper is not available in main buildscript.

* Apply task to each project and dont cross projects

* A horrible hack

* Wait what

* It works now.

* Not needed

* Drop unneeded maven repo, cache map lookup

(cherry picked from commit daa38b3d82)
2021-01-19 18:54:23 +00:00
Thalia Nero
9f7a7423f3 Add module dependencies to maven POM (#1104) 2020-11-15 19:46:01 +00:00
modmuss50
a4467d2a9c Bump version 2020-10-27 18:36:48 +00:00
i509VCB
74aedfbe43
Update command api to use new non-tail constructor inject (#1140)
* Update command api to use new non-tail constructor inject

This removes a redirect in fabric api and fixes the location of the command api's icon.

* Update lifecycle events for command-api-v1 testmod
2020-10-27 18:18:09 +00:00
modmuss50
5ce5339883 Checkstyle
Nothing to see here
2020-06-18 22:13:03 +01:00
modmuss50
53a97948b3 Simplify server command registration, fixing server commands being registered too late. 2020-06-18 22:01:21 +01:00
modmuss50
f444f16314 Bump Version 2020-06-15 22:05:41 +01:00
i509VCB
bef4575888
Fix issue with commands being registered on dedicated servers after a resource reload. (#822)
* Add a small datapack to test if custom commands work with command functions

* Fix issue with commands being registered on dedicated servers after a /reload

Also this adds testmods for command functions to verify they are registered properly.

* Clarify a comment

* Use the variable we allocate lol
2020-06-15 22:03:11 +01:00
modmuss50
4e84b64f5c Fix log spam for mods that are not datapacks. Also bump version for release 2020-06-05 20:09:24 +01:00
modmuss50
31d35604b1 Simplify and fix Dedicated server commands 2020-06-05 19:52:07 +01:00
modmuss50
3c5f026f0d 1.16-pre2 2020-06-05 12:42:58 +01:00
modmuss50
1405d94241 Fix command test 2020-06-04 21:32:45 +01:00
modmuss50
346247d7d1 Checkstyle 2020-06-04 21:24:25 +01:00
modmuss50
0d474ec430 1.16-pre1 2020-06-04 21:20:20 +01:00
modmuss50
da175ad6ad 20w22a 2020-05-29 15:56:10 +01:00
modmuss50
fbdec5486a Checkstyle fixes
(ง'̀-'́)ง
2020-05-07 22:27:19 +01:00
modmuss50
57dbcc4ce5 Version bumps 2020-05-07 22:12:06 +01:00
i509VCB
d83d36ad00 Create command api test mod (#607)
* Create command api test mod

* Verify the callback is only called once per server instance.
2020-05-07 22:08:14 +01:00
modmuss50
fcb6b9aa64 Update MixinMinecraftDedicatedServer to 1.16 2020-05-02 21:22:33 +01:00
modmuss50
5644fa286e Fix commands on servers. (#604)
* Fix commands on servers.

Based off the same fix I made a year or two ago...

* Fix
2020-05-02 21:21:35 +01:00
i509VCB
52d30836ba Migrate commands to v1 (#539)
* Migrate commands to v1

* Update fabric-commands-v1/src/main/resources/fabric.mod.json

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update fabric-commands-v1/src/main/java/net/fabricmc/fabric/api/command/v1/CommandRegistrationCallback.java

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* commands -> command and improved javadoc.

* Fix the stragglers

* swap dedicated and dispatcher params

* Update fabric-command-v1/src/main/java/net/fabricmc/fabric/api/command/v1/CommandRegistrationCallback.java

Whoops forgot that one

Co-Authored-By: Juuxel <6596629+Juuxel@users.noreply.github.com>

* module name order has been restored.

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2020-04-29 22:15:05 +01:00