menu
#3551819 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:15:20 +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: #23
Error level: E_COMPILE_ERROR
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

class main extends PluginBase implements Listener {
public function onEnable() {
@mkdir($this-> getDataFolder());
$this-> positionDB = new Config( $this-> getDataFolder(). "positionDB.yml", Config::YAML, []);
$this-> pDB = $this-> positionDB-> getAll();
$this-> getServer()-> getPluginManager()-> registerEvents($this, $this);
}
public function onSetPos(BlockBreakEvent $event, PlayerInteractEvent $event2) {
if(isset($event-> getBlock())) {
$player = $event-> getPlayer();
$block = $event-> getBlock();
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두번째 지점이 설정되었습니다.");
}
}
else {
$player = $event2-> getPlayer();

Loaded Plugins

  • Show

Server Settings

  • Show