Add hover for resyncs with nothing done in-game

This commit is contained in:
Vankka 2023-05-31 00:01:14 +03:00
parent 5d63417fbb
commit 03c26a6ca2
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -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())
);
});
});