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

Commit

Permalink
KillRate-1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroliu committed Jul 16, 2015
1 parent 92bb683 commit 5fed133
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions KillRate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ that. You are more likely to get a response and help that way.

_NOTE:_

This documentation was last updated for version **1.2.2**.
This documentation was last updated for version **1.2.3**.

Please go to
[github](https://github.com/alejandroliu/pocketmine-plugins/tree/master/KillRate)
for the most up-to-date documentation.

You can also download this plugin from this [page](https://github.com/alejandroliu/pocketmine-plugins/releases/tag/KillRate-1.2.2).
You can also download this plugin from this [page](https://github.com/alejandroliu/pocketmine-plugins/releases/tag/KillRate-1.2.3).

<!-- template-end -->

Expand Down Expand Up @@ -183,7 +183,7 @@ $server->getPluginManager()->getPlugin("KillRate")->function()

* 1.2.3:
* MySqlMgr: Fixed typo

* Fixed bug with setting rewards/points to false (Reported by @reidq7)
* 1.2.2
* small tweaks on the comments of the config file...
* Added achievements
Expand Down
2 changes: 1 addition & 1 deletion KillRate/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: KillRate
version: 1.2.2
version: 1.2.3
main: aliuly\killrate\Main
api: 1.10.0
load: POSTWORLD
Expand Down
6 changes: 3 additions & 3 deletions KillRate/src/aliuly/killrate/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,13 @@ public function updateScores($perp,$vic) {
//echo "VIC=$vic PERP=$perp\n";//##DEBUG
$this->updateDb($perp,$vic);
$awards = [ false,false];
if (isset($this->cfg["settings"]["points"])) {
if ($this->cfg["settings"]["points"]) {
// Add points...
list($points,$money) = $this->getPrizes($vic);
$this->updateDb($perp,"points",$points);
$awards[0] = $points;
}
if (isset($this->cfg["settings"]["rewards"])) {
if ($this->cfg["settings"]["rewards"]) {
// Add money...
list($points,$money) = $this->getPrizes($vic);
MoneyAPI::grantMoney($this->money,$perp,$money);
Expand Down Expand Up @@ -399,7 +399,7 @@ public function deadDealer($pv) {
if ($streak > $this->cfg["settings"]["kill-streak"]) {
if ($this->cfg["settings"]["achievements"]) $pp->awardAchievement("serialKiller");
$this->getServer()->broadcastMessage(TextFormat::YELLOW.mc::_("%1% has a %2% kill streak",$pp->getName(),$streak));
if (isset($this->cfg["settings"]["rewards"])) {
if ($this->cfg["settings"]["rewards"]) {
list($points,$money) = $this->getPrizes($vic);
$pp->sendMessage(TextFormat::GREEN.
mc::_("You earn an additional $%1% for being in kill-streak!",$money));
Expand Down

0 comments on commit 5fed133

Please sign in to comment.