From 03c26a6ca201803076f05dc5e5238caa2831c1b3 Mon Sep 17 00:00:00 2001 From: Vankka Date: Wed, 31 May 2023 00:01:14 +0300 Subject: [PATCH] Add hover for resyncs with nothing done in-game --- .../common/command/combined/commands/ResyncCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/discordsrv/common/command/combined/commands/ResyncCommand.java b/common/src/main/java/com/discordsrv/common/command/combined/commands/ResyncCommand.java index d116bd29..8508ab10 100644 --- a/common/src/main/java/com/discordsrv/common/command/combined/commands/ResyncCommand.java +++ b/common/src/main/java/com/discordsrv/common/command/combined/commands/ResyncCommand.java @@ -102,7 +102,9 @@ public class ResyncCommand extends CombinedCommand { .withDiscordFormatting(Text.Formatting.BOLD), new Text(")").withGameColor(NamedTextColor.GRAY) ), - total > 0 ? Collections.singletonList(new Text(resultHover)) : Collections.emptyList() + total > 0 + ? Collections.singletonList(new Text(resultHover)) + : (execution instanceof GameCommandExecution ? Collections.singletonList(new Text("Nothing done")) : Collections.emptyList()) ); }); });