mirror of
https://github.com/LeavesMC/Leaves.git
synced 2026-01-04 15:41:31 +00:00
Resolve...
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user