Browse Source

Well... This should now work...

pull/2/merge
Ad5001 2 years ago
parent
commit
51a14b7d3b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/Ad5001/FloatingTexts/Main.php

+ 1
- 1
src/Ad5001/FloatingTexts/Main.php View File

@@ -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…
Cancel
Save