feat: reset owner when egg is placed
This commit is contained in:
parent
d8ecb3a900
commit
4a4fdaefed
1 changed files with 2 additions and 1 deletions
|
|
@ -90,7 +90,8 @@ public class MiscListener implements Listener {
|
|||
public void onBlockPlace(BlockPlaceEvent event) {
|
||||
if (Egg.hasEgg(event.getBlock())) {
|
||||
data.updateEggLocation(event.getBlock());
|
||||
data.setEggOwner(event.getPlayer(), config);
|
||||
data.resetEggOwner(false, config);
|
||||
announce(String.format("%s placed the dragon egg!", event.getPlayer().getDisplayName()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue