owo
This commit is contained in:
parent
1b7ace7aa8
commit
2081ed9423
1 changed files with 8 additions and 6 deletions
|
@ -13,6 +13,7 @@ import net.minecraft.client.network.ClientPlayerEntity;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class ChomeNSBotCommandSuggestions extends Listener {
|
public class ChomeNSBotCommandSuggestions extends Listener {
|
||||||
|
@ -67,13 +68,14 @@ public class ChomeNSBotCommandSuggestions extends Listener {
|
||||||
commands = children.subList(1, children.size())
|
commands = children.subList(1, children.size())
|
||||||
.stream()
|
.stream()
|
||||||
.map(
|
.map(
|
||||||
(eachCum) ->
|
(eachCum) -> new ChomeNSBotCommand(
|
||||||
new ChomeNSBotCommand(
|
|
||||||
ChipmunkMod.CONFIG.bots.chomens.prefix + ((TextComponent) eachCum).content(),
|
ChipmunkMod.CONFIG.bots.chomens.prefix + ((TextComponent) eachCum).content(),
|
||||||
ChomeNSBotCommand.TrustLevel.valueOf(((TextComponent) eachCum.children().get(0)).content())
|
ChomeNSBotCommand.TrustLevel.valueOf(((TextComponent) eachCum.children().get(0)).content())
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.toList();
|
.toList();
|
||||||
} catch (Exception ignored) {}
|
} catch (Exception ignored) {
|
||||||
|
ignored.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue