adding a list mythic command

This commit is contained in:
0x01fe 2025-02-17 19:51:45 -06:00
parent f2345994ca
commit b617a39b40
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package net.hexa.MythicItems;
import net.hexa.MythicItems.Mythics.MythicItem;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
public class CommandListMythics implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (sender instanceof Player) {
Player player = (Player) sender;
ItemStack item = MythicItem.getMythicById(0).item;
player.getInventory().addItem(item);
}
return true;
}
}

View File

@ -7,3 +7,6 @@ commands:
essence:
description: Gives a Mythic Item Essence
usage: /<command>
listMythics:
description: Lists Mythic Items
usage: /<command>