This commit is contained in:
PEMapModder
2016-02-22 16:05:45 +08:00
parent 56644fed9d
commit 6945256e30
2 changed files with 9 additions and 0 deletions

View File

@ -108,6 +108,7 @@ use pocketmine\network\protocol\DisconnectPacket;
use pocketmine\network\protocol\EntityEventPacket;
use pocketmine\network\protocol\FullChunkDataPacket;
use pocketmine\network\protocol\Info as ProtocolInfo;
use pocketmine\network\protocol\InteractPacket;
use pocketmine\network\protocol\MovePlayerPacket;
use pocketmine\network\protocol\PlayerActionPacket;
use pocketmine\network\protocol\PlayStatusPacket;
@ -2299,6 +2300,11 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$cancelled = false;
if($packet->action === InteractPacket::ACTION_RIGHT_CLICK){
// TODO handle
break;
}
if(
$target instanceof Player and
$this->server->getConfigBoolean("pvp", true) === false