diff options
author | Maximusbarcz <maxim.baranek@gmail.com> | 2023-01-09 21:48:21 +0100 |
---|---|---|
committer | Maximusbarcz <maxim.baranek@gmail.com> | 2023-01-09 21:48:21 +0100 |
commit | 5f1004168668f12f41c6deb9f026041373d45ba1 (patch) | |
tree | dc8d1d539726347d976ae8a171280ad22a5bd807 /src/main/java/dev/mayaqq/ygasi/registry/CommandRegistry.java | |
parent | ab1ddc8e008ed93392ea3918da1d669dd1b4822c (diff) | |
download | ygasi-5f1004168668f12f41c6deb9f026041373d45ba1.tar.gz ygasi-5f1004168668f12f41c6deb9f026041373d45ba1.tar.bz2 ygasi-5f1004168668f12f41c6deb9f026041373d45ba1.zip |
Its a frog, frog in a blender! And also other stuff I guess
Diffstat (limited to 'src/main/java/dev/mayaqq/ygasi/registry/CommandRegistry.java')
-rw-r--r-- | src/main/java/dev/mayaqq/ygasi/registry/CommandRegistry.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/dev/mayaqq/ygasi/registry/CommandRegistry.java b/src/main/java/dev/mayaqq/ygasi/registry/CommandRegistry.java index 44ba603..781ef4d 100644 --- a/src/main/java/dev/mayaqq/ygasi/registry/CommandRegistry.java +++ b/src/main/java/dev/mayaqq/ygasi/registry/CommandRegistry.java @@ -58,7 +58,7 @@ public class CommandRegistry { ServerPlayerEntity player = EntityArgumentType.getPlayer(context, "target"); player.resetStat(Stats.CUSTOM.getOrCreateStat(SKILL_POINTS)); player.resetStat(Stats.CUSTOM.getOrCreateStat(StatRegistry.SKILL_POINTS_TOTAL)); - context.getSource().sendMessage(Text.translatable("commands.ygasi.skillpoints.reset", player.getEntityName()).formatted(Formatting.GREEN)); + player.sendMessage(Text.translatable("commands.ygasi.skillpoints.reset", player.getEntityName()).formatted(Formatting.GREEN)); return 1; }))) .then(literal("add") @@ -76,7 +76,7 @@ public class CommandRegistry { .then(CommandManager.argument("target", EntityArgumentType.player()) .executes(context -> { ServerPlayerEntity player = EntityArgumentType.getPlayer(context, "target"); - context.getSource().sendMessage(Text.translatable("commands.ygasi.skillpoints.get", player.getEntityName(), player.getStatHandler().getStat(Stats.CUSTOM.getOrCreateStat(SKILL_POINTS)), player.getStatHandler().getStat(Stats.CUSTOM.getOrCreateStat(SKILL_POINTS_TOTAL))).formatted(Formatting.GREEN)); + player.sendMessage(Text.translatable("commands.ygasi.skillpoints.get", player.getEntityName(), player.getStatHandler().getStat(Stats.CUSTOM.getOrCreateStat(SKILL_POINTS)), player.getStatHandler().getStat(Stats.CUSTOM.getOrCreateStat(SKILL_POINTS_TOTAL))).formatted(Formatting.GREEN)); return 1; })))) .then(literal("config") |