Push fixes
This commit is contained in:
parent
5f435a079e
commit
5ebc7080ee
@ -141,6 +141,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
{
|
||||
incrementDailyStreak(player);
|
||||
awardBonus(player, amount);
|
||||
updateCreeperVisual(player);
|
||||
}
|
||||
|
||||
result.accept(r);
|
||||
@ -177,7 +178,10 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
public void accept(Boolean aBoolean)
|
||||
{
|
||||
if (aBoolean)
|
||||
{
|
||||
awardBonus(player, getRankBonusAmount(player));
|
||||
updateCreeperVisual(player);
|
||||
}
|
||||
|
||||
result.accept(aBoolean);
|
||||
}
|
||||
|
@ -58,7 +58,8 @@ public class VoteButton implements GuiItem, Listener {
|
||||
{
|
||||
//TODO get url from db
|
||||
_url = "http://minecraftservers.org/vote/121070";
|
||||
|
||||
|
||||
setItem();
|
||||
Bukkit.getPluginManager().registerEvents(this, getPlugin());
|
||||
}
|
||||
|
||||
@ -68,7 +69,6 @@ public class VoteButton implements GuiItem, Listener {
|
||||
HandlerList.unregisterAll(this);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void click(ClickType clickType)
|
||||
{
|
||||
@ -113,7 +113,7 @@ public class VoteButton implements GuiItem, Listener {
|
||||
|
||||
if (isAvailable())
|
||||
{
|
||||
material = Material.CHEST;
|
||||
material = Material.JUKEBOX;
|
||||
itemName = C.cGreen + C.Bold + "Vote Bonus";
|
||||
|
||||
lore.add(" ");
|
||||
@ -165,6 +165,8 @@ public class VoteButton implements GuiItem, Listener {
|
||||
{
|
||||
if (_url == null)
|
||||
return false;
|
||||
System.out.println(timeLeft());
|
||||
|
||||
return (timeLeft() <= 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user