fix: fix deprecated warnings

This commit is contained in:
HerozDotExe 2026-02-06 14:49:07 +01:00
parent 19482a09fd
commit 0bc668fc50

View file

@ -91,7 +91,7 @@ public class MiscListener implements Listener {
if (Egg.hasEgg(event.getBlock())) {
data.updateEggLocation(event.getBlock());
data.resetEggOwner(false, config);
announce(String.format("%s placed the dragon egg!", event.getPlayer().getDisplayName()));
announce(String.format("%s placed the dragon egg!", event.getPlayer().getName()));
}
}
@ -219,7 +219,7 @@ public class MiscListener implements Listener {
}
data.resetEggOwner(false, config);
announce(String.format("%s died and lost the dragon egg!", event.getEntity().getDisplayName()));
announce(String.format("%s died and lost the dragon egg!", event.getEntity().getName()));
}
}