9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2026-01-04 15:41:31 +00:00

Resolve...

This commit is contained in:
Lumine1909
2025-06-05 11:25:10 +08:00
parent 36f9eda473
commit 59b3d8b4fc
4 changed files with 4 additions and 4 deletions

View File

@@ -41,6 +41,7 @@ import java.util.stream.Collectors;
import static net.kyori.adventure.text.Component.text;
//TODO rewrite
public class BotCommand extends Command implements LeavesSuggestionCommand {
public BotCommand(String name) {

View File

@@ -220,8 +220,6 @@ public class BotList {
}
}
bot.discard();
net.kyori.adventure.text.Component removeMessage = event.removeMessage();
if (removeMessage != null && !removeMessage.equals(net.kyori.adventure.text.Component.empty())) {
this.server.getPlayerList().broadcastSystemMessage(PaperAdventure.asVanilla(removeMessage), false);

View File

@@ -158,8 +158,8 @@ public class ServerBot extends ServerPlayer {
@Override
public void doTick() {
if (this.isDeadOrDying() || this.isRemoved()) {
die(this.damageSources().generic());
if (!this.isAlive()) {
this.die(this.damageSources().generic());
return;
}

View File

@@ -18,6 +18,7 @@ import java.util.UUID;
import java.util.function.BiFunction;
import java.util.function.Supplier;
//TODO onStop for fully terminate action (use, etc.)
public abstract class AbstractBotAction<E extends AbstractBotAction<E>> {
private final String name;