From 8055468f2085ead907268f0561116e0d60ac57f0 Mon Sep 17 00:00:00 2001 From: Jocy Date: Mon, 22 May 2017 18:12:15 +0200 Subject: [PATCH] Bugfix, CustomVotesPlugin Widget --- plugins/MCTeam/CustomVotesPlugin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/MCTeam/CustomVotesPlugin.php b/plugins/MCTeam/CustomVotesPlugin.php index c3fab596..180dd0da 100644 --- a/plugins/MCTeam/CustomVotesPlugin.php +++ b/plugins/MCTeam/CustomVotesPlugin.php @@ -702,12 +702,13 @@ class CustomVotesPlugin implements SidebarMenuEntryListener, CommandListener, Ca $label->setTextColor('F80'); $label->setText('$sStarted by ' . $this->currentVote->voter->nickname); + //Time Gauge $timeGauge = new Gauge(); $frame->addChild($timeGauge); $timeGauge->setY(1.5); $timeGauge->setSize($width * 0.95, 6); - $timeGauge->setDrawBlockBackground(false); + $timeGauge->setDrawBackground(false); if (!$timeUntilExpire) { $timeUntilExpire = 1; } @@ -730,7 +731,7 @@ class CustomVotesPlugin implements SidebarMenuEntryListener, CommandListener, Ca $frame->addChild($voteGauge); $voteGauge->setY(-4); $voteGauge->setSize($width * 0.65, 12); - $voteGauge->setDrawBlockBackground(false); + $voteGauge->setDrawBackground(false); $voteGauge->setRatio($votePercentage + 0.10 - $votePercentage * 0.10); $gaugeColor = ColorUtil::floatToStatusColor($votePercentage); $voteGauge->setColor($gaugeColor . '6');