Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

Commit

Permalink
We don't do hypotheticals here
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonw4331 committed Oct 5, 2020
1 parent 7dfa09c commit 14fcd7a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/MyPlot/MyPlot.php
Original file line number Diff line number Diff line change
Expand Up @@ -870,20 +870,6 @@ public function sellPlot(Plot $plot, float $price) : bool {
return $this->savePlot($plot);
}

/**
* Checks if a player can buy a plot
*
* @api
*
* @param Plot $plot
* @param Player $player
*
* @return bool
*/
public function canBuyPlot(Plot $plot, Player $player) : bool {
return $this->getEconomyProvider() !== null and $plot->isForSale() and $this->getEconomyProvider()->getMoney($player) >= $plot->price;
}

/**
* Buys a plot
*
Expand Down

0 comments on commit 14fcd7a

Please sign in to comment.