Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Commit

Permalink
Clean-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroliu committed Aug 25, 2015
1 parent a3fcc20 commit 54d661e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions KillRate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,4 @@ The contents of these "ini" files are key-value pairs:

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

3 changes: 2 additions & 1 deletion KillRate/resources/KillRateEx.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
use aliuly\killrate\api\KillRateResetEvent;
use aliuly\killrate\common\MPMU;


class KillRateEx extends PluginBase implements CommandExecutor,Listener{
public $kr;
public $pp;
Expand Down Expand Up @@ -78,7 +79,7 @@ public function onScoreAdd(KillRateScoreEvent $ev) {
if ($clevel >= 5) return; // max level is 5!
if (!$ev->getPoints() || $ev->getPoints() < 0) return; // Actually deducting points!

$cscore = $this->kr->getScore($ev->getPlayer());
$cscore = $this->kr->api->getScore($ev->getPlayer());
$threshold = ($clevel + 1) * ($clevel + 1) * 1000;
//echo "cscore=$cscore - threshold=$threshold\n";//##DEBUG

Expand Down

0 comments on commit 54d661e

Please sign in to comment.