Skip to content

Commit

Permalink
fix(chat): do not check player count during server start-up on Discor…
Browse files Browse the repository at this point in the history
…d messages (fixes #84) (#91)
  • Loading branch information
axieum authored Jul 28, 2023
1 parent c112c2e commit 8cddbeb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ public static void dispatch(
)
{
// Fetch the Minecraft server instance, only if there is at least one player logged in
Minecord.getInstance().getMinecraft().filter(server -> server.getCurrentPlayerCount() > 0).ifPresent(server ->
Minecord.getInstance().getMinecraft().filter(server ->
server.getPlayerManager() != null && server.getCurrentPlayerCount() > 0
).ifPresent(server ->
// Prepare a stream of configured chat entries
Arrays.stream(getConfig().entries)
.parallel()
Expand Down

0 comments on commit 8cddbeb

Please sign in to comment.