Well... This should now work...
This commit is contained in:
parent
ffe5ff3acb
commit
51a14b7d3b
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class Main extends PluginBase implements \pocketmine\event\Listener {
|
|||
if($event instanceof \pocketmine\event\entity\EntityDamageByEntityEvent) {
|
||||
if($event->getDamager() instanceof Player &&
|
||||
isset($this->sessions[$event->getDamager()->getName()])) {
|
||||
$event->getEntity()->addEffect(\pocketmine\entity\Effect::getEffectByName("invisibility")->setAmbiant(true)->setVisible(false));
|
||||
$event->getEntity()->addEffect(\pocketmine\entity\Effect::getEffectByName("invisibility")->setAmbient(true)->setVisible(false));
|
||||
$event->getEntity()->setNameTag($this->sessions[$event->getDamager()->getName()]);
|
||||
$event->getEntity()->setNameTagAlwaysVisible(true);
|
||||
$event->getEntity()->setNameTagVisible(true);
|
||||
|
|
Loading…
Reference in a new issue