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 #87 from KenCir:KenCir/issue86
Browse files Browse the repository at this point in the history
[バグ] 保護されている土地のチェストやかまどがひらけてしまうバグ #86
  • Loading branch information
KenCir authored Aug 8, 2021
2 parents d6ed951 + caaef98 commit 8e27521
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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.1
version: 3.1.2
api: 3.0.0
main: OutiServerPlugin\Main

Expand Down
5 changes: 3 additions & 2 deletions src/OutiServerPlugin/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ public function onInteract(PlayerInteractEvent $event)
if ($item->getName() === 'OutiWatch' && !isset($this->plugin->applewatch->check[$name])) {
$this->plugin->applewatch->check[$name] = true;
$this->plugin->applewatch->Form($player);
} elseif ($slotid and !isset($this->plugin->casino->slot->sloted[$name])) {
}
if ($slotid and !isset($this->plugin->casino->slot->sloted[$name])) {
$pos = new Vector3($block->x, $block->y, $block->z);
$sign = $block->getLevel()->getTile($pos);
if ($sign instanceof Tile) {
Expand Down Expand Up @@ -152,7 +153,7 @@ public function onBreak(BlockBreakEvent $event)
$player->sendMessage("§b[チェストショップ] §f>> §6このShopを閉店しました");
}
}
elseif ($landid) {
if ($landid) {
if (!$this->plugin->db->CheckLandOwner($landid, $name) and !$this->plugin->db->checkInvite($landid, $name) and $this->plugin->db->CheckLandProtection($landid) and !$player->isOp()) {
$event->setCancelled();
}
Expand Down

0 comments on commit 8e27521

Please sign in to comment.