Skip to content

Commit

Permalink
Fix nonvotedplayerscache not working on velocity as it should
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Nov 29, 2024
1 parent 348ad9d commit c9d3b16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions VotingPlugin/Resources/Config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ PreloadSkulls: true
SkullLoadDelay: 3000

# Set a skull profile URL
# This is what gets used to cache skulls
# Default: https://sessionserver.mojang.com/session/minecraft/profile/
# Other examples: https://crafthead.net/profile/
SkullProfileAPIURL: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ public void onPluginMessagingReceived(PluginMessageEvent event) {
serverName = in.readUTF();
}
debug("Login: " + player + "/" + uuid + " " + serverName);
if (nonVotedPlayersCache != null) {
nonVotedPlayersCache.addPlayerCheck(uuid, player);
}
if (server.getPlayer(player).isPresent()
&& (getGlobalDataHandler() == null || !getGlobalDataHandler().isTimeChangedHappened())) {
Player p = server.getPlayer(player).get();
Expand Down

0 comments on commit c9d3b16

Please sign in to comment.