From 9e92f7b231e93c052b469752cb62c604dac8af6e Mon Sep 17 00:00:00 2001 From: OtorisanVardo Date: Sat, 5 May 2018 20:37:47 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.yml | 4 ++-- src/economysignbusiness/EventListener.php | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/plugin.yml b/plugin.yml index 4e7c01d..e2e327e 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,11 +1,11 @@ name: EconomySignBusiness main: economysignbusiness\Main -version: 1.3 +version: 1.3.1 api: - 3.0.0 - 3.0.0-ALPHA11 - 3.0.0-ALPHA12 depend: [EconomyAPI] -prefix: 看板ビジネス +prefix: ESB load: POSTWORLD author: OtorisanVardo \ No newline at end of file diff --git a/src/economysignbusiness/EventListener.php b/src/economysignbusiness/EventListener.php index 3f12ece..a8e4ed0 100644 --- a/src/economysignbusiness/EventListener.php +++ b/src/economysignbusiness/EventListener.php @@ -76,7 +76,11 @@ public function onBreak(BlockBreakEvent $event) if ($tag !== API::PURCHASE_TAG && $tag !== API::SELL_TAG && $tag !== API::EXCHANGE_TAG) { return; } - if (!$player->isOp()) return; + if (!$player->isOp()) { + $player->sendMessage("§c> 削除できる権限がありません"); + $event->setCancelled(); + return; + } switch ($line[0]) { case API::PURCHASE_TAG: case API::SELL_TAG: