Skip to content

Commit a3a1b46

Browse files
committed
Add extra check for time queues on proxy
1 parent 3bd41af commit a3a1b46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

VotingPlugin/src/com/bencodez/votingplugin/bungee/VotingPluginBungee.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ public synchronized void vote(String player, String service, boolean realVote, b
13951395
if (getConfig().getGlobalDataEnabled()) {
13961396
if (getGlobalDataHandler().isTimeChangedHappened()) {
13971397
getGlobalDataHandler().checkForFinishedTimeChanges();
1398-
if (timeQueue) {
1398+
if (timeQueue && getGlobalDataHandler().isTimeChangedHappened()) {
13991399
timeChangeQueue.add(new VoteTimeQueue(player, service,
14001400
LocalDateTime.now().atZone(ZoneId.systemDefault()).toInstant().toEpochMilli()));
14011401
getLogger().info("Cachcing vote from " + player + "/" + service

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ public synchronized void vote(String player, String service, boolean realVote, b
14681468
if (getConfig().getGlobalDataEnabled()) {
14691469
if (getGlobalDataHandler().isTimeChangedHappened()) {
14701470
getGlobalDataHandler().checkForFinishedTimeChanges();
1471-
if (timeQueue) {
1471+
if (timeQueue && getGlobalDataHandler().isTimeChangedHappened()) {
14721472
timeChangeQueue.add(new VoteTimeQueue(player, service,
14731473
LocalDateTime.now().atZone(ZoneId.systemDefault()).toInstant().toEpochMilli()));
14741474
getLogger().info("Cachcing vote from " + player + "/" + service

0 commit comments

Comments
 (0)