menu
#3551845 Cannot use isset() on the result of an expression (you can use "null !== expression" instead)

Submitted by PocketMine-MP 3.11.2

General information

Version: 3.11.2
Git commit: a37d7401
Plugin involvement: Direct
Report date: 2020-01-14 11:21:10 +0000 UTC

System Information

PHP version: 7.2.21
Operating system: win
System banner: Windows NT DESKTOP-35UCJQO 10.0 build 18362 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot use isset() on the result of an expression (you can use "null !== expression" instead)
File: plugins/blockCopyParticle/src/blockCopyParticle/main
Line: #34
Error level: E_COMPILE_ERROR
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
        if($player-> getInventory()-> getItemInHand()-> getId() == 280) {
$this-> pos1 = new Position($block-> getX(), $block-> getY(), $block-> getZ(), $block-> getLevel());
$event-> setCancelled();
$player-> sendMessage("§b§l[§f system§b ] : §f첫번째 지점이 설정되었습니다.");
}
}
public function onBlockTouch(PlayerInteractEvent $event) {
$player = $event-> getPlayer();
$block = $event-> getBlock();
if(isset(BlockBreakEvent::getBlock())) return true;
if($player-> getInventory()-> getItemInHand()-> getId() == 280) {
$this-> pos2 = new Position($block-> getX(), $block-> getY(), $block-> getZ(), $block-> getLevel());
$event-> setCancelled();
$player-> sendMessage("§b§l[§f system§b ] : §f두번째 지점이 설정되었습니다.");
}
}
public function onCommand(CommandSender $sender, Command $command, $label, array $args): bool {
$player = $sender-> getPlayer();
$cmd = $command-> getName();
$prefix = "§b§l[§f system§b ] : §f";

Loaded Plugins

  • Show

Server Settings

  • Show