Merge branch 'Bonus' of http://184.154.0.242:7990/scm/min/mineplex into Bonus
This commit is contained in:
commit
f3558b144c
@ -1014,7 +1014,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
|||||||
{
|
{
|
||||||
if (Recharge.Instance.use(player, "Carl Inform", 240000, false, false))
|
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()))
|
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!");
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean hasPoll(Player player)
|
||||||
|
{
|
||||||
|
return getNextPoll(Get(player), getClientManager().Get(player).GetRank()) != null;
|
||||||
|
}
|
||||||
|
|
||||||
public void displayPoll(Player player, Poll poll)
|
public void displayPoll(Player player, Poll poll)
|
||||||
{
|
{
|
||||||
String[] answers = poll.getAnswers();
|
String[] answers = poll.getAnswers();
|
||||||
|
Loading…
Reference in New Issue
Block a user