menu
#4583338 Cannot use pocketmine\math\Vector3 as Vector3 because the name is already in use

Submitted by PocketMine-MP 3.15.2

General information

Version: 3.15.2
Git commit: d7a66ad7
Plugin involvement: Direct
Report date: 2020-10-18 00:13:23 +0000 UTC

System Information

PHP version: 7.3.22
Operating system: linux
System banner: Linux server17771 3.10.0-957.12.2.vz7.96.21 #1 SMP Thu Jun 27 15:10:55 MSK 2019 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot use pocketmine\math\Vector3 as Vector3 because the name is already in use
File: plugins/Enchant/src/Enchant/Enchant
Line: #21
Error level: E_COMPILE_ERROR
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use pocketmine\item\enchantment\Enchantment;
use pocketmine\item\enchantment\EnchantmentInstance;
use pocketmine\math\Vector3;
use pocketmine\item\Sword;
use pocketmine\item\Armor;
use pocketmine\item\Tool;
use pocketmine\inventory\PlayerInventory;
use pocketmine\plugin\PluginBase;
use pocketmine\Server;
use pocketmine\math\Vector3;

class Enchant extends PluginBase implements Listener{

public function onEnable() {
$this->getServer()->getPluginManager()->registerEvents($this, $this);
}
public $cooldown = [];

public function onInteract(PlayerInteractEvent $event) {
$block = $event->getBlock();

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies