Skip to content

Commit

Permalink
Fixed an error that can happen on bungee
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Jan 27, 2025
1 parent f5d34ad commit 1b28966
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ public void setVoteCacheVotePartyIncreaseVotesRequired(int votes) {
public void warn(String message) {
getLogger().warning(message);
}

@Override
public void reloadCore(boolean mysql) {
reloadPlugin(mysql);
Expand Down Expand Up @@ -709,8 +709,10 @@ public void run() {
}

for (String player : getVotingPluginProxy().getCachedOnlineVotes().keySet()) {
getVotingPluginProxy().checkOnlineVotes(getProxy().getPlayer(UUID.fromString(player)).getName(),
player, null);
ProxiedPlayer p = getProxy().getPlayer(UUID.fromString(player));
if (p != null) {
getVotingPluginProxy().checkOnlineVotes(p.getName(), player, null);
}
}
}
}, 120l, 60l, TimeUnit.SECONDS);
Expand Down

0 comments on commit 1b28966

Please sign in to comment.