Refactor commands
This commit is contained in:
@@ -72,7 +72,7 @@ fun firmamentCommand() = literal("firmament") {
|
|||||||
thenArgument("item", string()) { item ->
|
thenArgument("item", string()) { item ->
|
||||||
suggestsList { RepoManager.neuRepo.items.items.keys }
|
suggestsList { RepoManager.neuRepo.items.items.keys }
|
||||||
thenExecute {
|
thenExecute {
|
||||||
val itemName = SkyblockId(getString(context, "item"))
|
val itemName = SkyblockId(get(item))
|
||||||
source.sendFeedback(Text.translatable("firmament.price", itemName.neuItem))
|
source.sendFeedback(Text.translatable("firmament.price", itemName.neuItem))
|
||||||
val bazaarData = ItemCostData.bazaarData[itemName]
|
val bazaarData = ItemCostData.bazaarData[itemName]
|
||||||
if (bazaarData != null) {
|
if (bazaarData != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user