Skip to content

Commit

Permalink
Display messages for players not in world too
Browse files Browse the repository at this point in the history
  • Loading branch information
mattboy9921 committed Aug 22, 2023
1 parent dc9a48b commit 3f8859e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/java/net/mattlabs/skipnight/Vote.java
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,6 @@ private void updateAll(Component message) {
}

if (message != null) messageList.add(message);

// TODO move this so not in overworld gets messages too
// Send messages
for (Component messageToSend : messageList) {
SkipNight.getInstance().getPlatform().player(player).sendMessage(messageToSend);
}
}
// Not in Overworld
else {
Expand All @@ -403,6 +397,10 @@ private void updateAll(Component message) {
voters.remove(voter.getUuid());
}
}
// Send messages
for (Component messageToSend : messageList) {
SkipNight.getInstance().getPlatform().player(player).sendMessage(messageToSend);
}
}
}
playerCount = voters.size();
Expand Down

0 comments on commit 3f8859e

Please sign in to comment.