fix: fix deprecated warnings
This commit is contained in:
parent
19482a09fd
commit
0bc668fc50
1 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ public class MiscListener implements Listener {
|
||||||
if (Egg.hasEgg(event.getBlock())) {
|
if (Egg.hasEgg(event.getBlock())) {
|
||||||
data.updateEggLocation(event.getBlock());
|
data.updateEggLocation(event.getBlock());
|
||||||
data.resetEggOwner(false, config);
|
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);
|
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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue