Add hasPoll
This commit is contained in:
parent
3eb7e91fbb
commit
1c484367a1
@ -1022,7 +1022,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
{
|
||||
if (Recharge.Instance.use(player, "Carl Inform", 240000, false, false))
|
||||
{
|
||||
if(_pollManager.Get(player).shouldPoll() || canVote(player) || canRank(player) || canDaily(player))
|
||||
if(_pollManager.hasPoll(player) || canVote(player) || canRank(player) || canDaily(player))
|
||||
{
|
||||
if(_showCarl.containsKey(player.getName()))
|
||||
UtilPlayer.message(player, C.cDGreen + C.Bold + "Carl the Creeper)" + C.cGreen + " Hey " + player.getName().replace("s", "sss") + "! I have sssome amazing rewardsss for you! Come sssee me!");
|
||||
|
@ -99,6 +99,11 @@ public class PollManager extends MiniDbClientPlugin<PlayerPollData>
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean hasPoll(Player player)
|
||||
{
|
||||
return getNextPoll(Get(player), getClientManager().Get(player).GetRank()) != null;
|
||||
}
|
||||
|
||||
public void displayPoll(Player player, Poll poll)
|
||||
{
|
||||
String[] answers = poll.getAnswers();
|
||||
|
Loading…
Reference in New Issue
Block a user