LegendOfMCPE / EssentialsPE

Port of Bukkit Essentials for @PocketMine Servers (Moved to @poggit-orphanage)
GNU General Public License v3.0
99 stars 21 forks source link

Vanish doesn't work #387

Closed Matthww closed 7 years ago

Matthww commented 7 years ago

Description

When running /v or /vanish an error will come up in the console

Versions

Crashdump or console errors

[10:57:55] [Server thread/CRITICAL]: Unhandled exception executing command 'v' in vanish: Argument 3 passed to pocketmine\entity\Effect::__construct() must be an instance of pocketmine\utils\Color, integer given, called in /home/matthew/server/plugins/EssentialsPE-master/src/EssentialsPE/BaseFiles/BaseAPI.php on line 2242
[10:57:55] [Server thread/CRITICAL]: TypeError: "Argument 3 passed to pocketmine\entity\Effect::__construct() must be an instance of pocketmine\utils\Color, integer given, called in /home/matthew/server/plugins/EssentialsPE-master/src/EssentialsPE/BaseFiles/BaseAPI.php on line 2242" (EXCEPTION) in "src/pocketmine/entity/Effect" at line 146
Sandertv commented 7 years ago

Yeah confirmed. Because I went too far with the branches I have to wait for a bit. Another one of these times where master and api3/blocks branch have the same API but they're not the same. If you want to fix that yourself, you can change those 3 integers you see on that line to new Color($value1, $value2, $value3), I'm waiting for a bit to do that.

Sandertv commented 7 years ago

Please try the api3/blocks branch of EssentialsPE.