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");
|
||||
}
|
||||
_canVote = true;
|
||||
Bukkit.broadcastMessage("CAN VOTE IS TRUE");
|
||||
|
||||
_youtubers = new ArrayList<>();
|
||||
if (!ClansBonus)
|
||||
@ -260,7 +261,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
}
|
||||
else
|
||||
{
|
||||
if(carlLocation != null)
|
||||
if (carlLocation != null)
|
||||
{
|
||||
_carlNpc.setLocation(carlLocation);
|
||||
}
|
||||
@ -405,14 +406,14 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
if (event.getType() != UpdateType.TICK)
|
||||
return;
|
||||
|
||||
_animation.itemClean();
|
||||
|
||||
if (_canVote)
|
||||
return;
|
||||
|
||||
if (!_enabled)
|
||||
return;
|
||||
|
||||
_animation.itemClean();
|
||||
|
||||
if (!_animationRunning)
|
||||
return;
|
||||
|
||||
|
@ -118,9 +118,8 @@ public class VotifierManager extends MiniPlugin
|
||||
}
|
||||
}
|
||||
|
||||
String lowerPlayerName = playerName.toLowerCase();
|
||||
final PlayerStatus usStatus = _usPlayerRepo.getElement(lowerPlayerName);
|
||||
final PlayerStatus euStatus = _euPlayerRepo.getElement(lowerPlayerName);
|
||||
final PlayerStatus usStatus = _usPlayerRepo.getElement(uuid.toString());
|
||||
final PlayerStatus euStatus = _euPlayerRepo.getElement(uuid.toString());
|
||||
|
||||
System.out.println("Loaded " + playerName + " with uuid " + uuid);
|
||||
System.out.println("Attempting to award bonus");
|
||||
|
Loading…
Reference in New Issue
Block a user