We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e699c2 commit 138bfe8Copy full SHA for 138bfe8
1 file changed
src/testmod/java/org/ladysnake/componenttest/content/VitaCommand.java
@@ -50,6 +50,12 @@ public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
50
return 1;
51
})
52
)
53
+ .then(CommandManager.literal("serverwide")
54
+ .executes(commandContext -> {
55
+ Vita.get(commandContext.getSource().getServer().getScoreboard()).setVitality(IntegerArgumentType.getInteger(commandContext, "amount"));
56
+ commandContext.getSource().sendFeedback(() -> Text.of("success!"), false);
57
+ return 1;
58
+ }))
59
60
61
.then(CommandManager.literal("get")
0 commit comments