Skip to content

Commit c9d3b16

Browse files
committed
Fix nonvotedplayerscache not working on velocity as it should
1 parent 348ad9d commit c9d3b16

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

VotingPlugin/Resources/Config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ PreloadSkulls: true
607607
SkullLoadDelay: 3000
608608

609609
# Set a skull profile URL
610+
# This is what gets used to cache skulls
610611
# Default: https://sessionserver.mojang.com/session/minecraft/profile/
611612
# Other examples: https://crafthead.net/profile/
612613
SkullProfileAPIURL: ''

VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,9 @@ public void onPluginMessagingReceived(PluginMessageEvent event) {
510510
serverName = in.readUTF();
511511
}
512512
debug("Login: " + player + "/" + uuid + " " + serverName);
513+
if (nonVotedPlayersCache != null) {
514+
nonVotedPlayersCache.addPlayerCheck(uuid, player);
515+
}
513516
if (server.getPlayer(player).isPresent()
514517
&& (getGlobalDataHandler() == null || !getGlobalDataHandler().isTimeChangedHappened())) {
515518
Player p = server.getPlayer(player).get();

0 commit comments

Comments
 (0)