Skip to content

Commit

Permalink
Fixed land is not checking the correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
onebone committed Nov 7, 2014
1 parent 1e6443f commit 69a91de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion EconomyLand/plugin.yml
Expand Up @@ -9,7 +9,7 @@ api:
- 1.3.1
- 1.4.0
- 1.4.1
version: "2.0.1"
version: "2.0.2"
author: onebone
depend: [EconomyAPI]

Expand Down
7 changes: 4 additions & 3 deletions EconomyLand/src/onebone/economyland/EconomyLand.php
Expand Up @@ -517,10 +517,11 @@ public function onBreakEvent(BlockBreakEvent $event){
public function permissionCheck(BlockEvent $event){
/** @var $player Player */
$player = $event->getPlayer();
$block = $event->getBlock();

$x = $player->x;
$z = $player->z;
$level = $player->getLevel()->getFolderName();
$x = $block->getX();
$z = $block->getZ();
$level = $block->getLevel()->getFolderName();

if(in_array($level, $this->config->get("non-check-worlds"))){
return false;
Expand Down

0 comments on commit 69a91de

Please sign in to comment.