Reset minions command

This commit is contained in:
Xayanix 2024-04-11 13:42:46 +02:00
parent 35bd93322e
commit 7add395ecf

View File

@ -39,6 +39,21 @@ class AxMinionsCommand {
receiver.inventory.addItem(item)
}
@Subcommand("reset")
@CommandPermission("axminions.command.reset")
@Description("Reset player's minion")
@AutoComplete("*")
fun reset(
sender: CommandSender,
receiver: Player
) {
AxMinionsAPI.INSTANCE.getMinions().fastFor {
if(it.getOwnerUUID() == receiver.uniqueId) {
it.remove()
}
}
}
@Subcommand("reload")
@CommandPermission("axminions.command.reload")
@Description("Reload the configurations of the plugin")