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

Commit

Permalink
Merge pull request #85 from KenCir:KenCir/issue84
Browse files Browse the repository at this point in the history
[バグ] ワールド土地保護を無効にしてもアイテムを置くことができない #84
  • Loading branch information
KenCir authored Aug 8, 2021
2 parents 054bd0e + 236b877 commit d6ed951
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: OutiServerPlugin
description: おうちサーバー用プラグイン
author: Ken_Cir
version: 3.1.0
version: 3.1.1
api: 3.0.0
main: OutiServerPlugin\Main

Expand Down
2 changes: 1 addition & 1 deletion src/OutiServerPlugin/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function onBlockPlace(BlockPlaceEvent $event)
$event->setCancelled();
}
}
else {
elseif (!$player->isOp() and !in_array($levelname, $this->plugin->config->get('Land_Protection_Allow', array()))) {
$event->setCancelled();
}
}
Expand Down

0 comments on commit d6ed951

Please sign in to comment.