Patch Carl reward animation not cleaning up and update the votifier server to use uuid as the key for the status repository
This commit is contained in:
parent
4778d28be4
commit
2881071c74
@ -242,6 +242,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
|||||||
_voteList.add("http://vote3.mineplex.com");
|
_voteList.add("http://vote3.mineplex.com");
|
||||||
}
|
}
|
||||||
_canVote = true;
|
_canVote = true;
|
||||||
|
Bukkit.broadcastMessage("CAN VOTE IS TRUE");
|
||||||
|
|
||||||
_youtubers = new ArrayList<>();
|
_youtubers = new ArrayList<>();
|
||||||
if (!ClansBonus)
|
if (!ClansBonus)
|
||||||
@ -405,14 +406,14 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
|||||||
if (event.getType() != UpdateType.TICK)
|
if (event.getType() != UpdateType.TICK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
_animation.itemClean();
|
||||||
|
|
||||||
if (_canVote)
|
if (_canVote)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!_enabled)
|
if (!_enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_animation.itemClean();
|
|
||||||
|
|
||||||
if (!_animationRunning)
|
if (!_animationRunning)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -118,9 +118,8 @@ public class VotifierManager extends MiniPlugin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String lowerPlayerName = playerName.toLowerCase();
|
final PlayerStatus usStatus = _usPlayerRepo.getElement(uuid.toString());
|
||||||
final PlayerStatus usStatus = _usPlayerRepo.getElement(lowerPlayerName);
|
final PlayerStatus euStatus = _euPlayerRepo.getElement(uuid.toString());
|
||||||
final PlayerStatus euStatus = _euPlayerRepo.getElement(lowerPlayerName);
|
|
||||||
|
|
||||||
System.out.println("Loaded " + playerName + " with uuid " + uuid);
|
System.out.println("Loaded " + playerName + " with uuid " + uuid);
|
||||||
System.out.println("Attempting to award bonus");
|
System.out.println("Attempting to award bonus");
|
||||||
|
Loading…
Reference in New Issue
Block a user