Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
VeronicaDiazTaylor committed May 5, 2018
1 parent fa88b83 commit 9e92f7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 5 additions & 1 deletion src/economysignbusiness/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9e92f7b

Please sign in to comment.