Skip to content

Commit

Permalink
API3.0.0 supported
Browse files Browse the repository at this point in the history
  • Loading branch information
VeronicaDiazTaylor committed Jun 18, 2018
1 parent 1f106f8 commit c3d6d42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/economysignbusiness/utils/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use pocketmine\item\Item;
use onebone\economyapi\EconomyAPI;
use pocketmine\scheduler\PluginTask;
use pocketmine\scheduler\Task;


class API
Expand Down Expand Up @@ -141,8 +141,8 @@ public function checkDoProgress($player, $block)
{
$player->sendMessage("§bもう一度タッチしてください");
$player->cooltime = $block->asVector3();
$handler = $this->owner->getServer()->getScheduler()->scheduleDelayedTask(
new class($this->owner, $player) extends PluginTask
$handler = $this->owner->getScheduler()->scheduleDelayedTask(
new class($this->owner, $player) extends Task
{
function __construct($owner, $player)
{
Expand Down

1 comment on commit c3d6d42

@narapons
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

エラーです
ErrorException: "Undefined property: pocketmine\Player::$cooltime" (EXCEPTION) in "src/pocketmine/entity/Entity" at line 2231

PocketMine 3.6.4使用

Please sign in to comment.