mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2024-11-29 12:45:18 +01:00
Reset minions command
This commit is contained in:
parent
35bd93322e
commit
7add395ecf
@ -39,6 +39,21 @@ class AxMinionsCommand {
|
|||||||
receiver.inventory.addItem(item)
|
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")
|
@Subcommand("reload")
|
||||||
@CommandPermission("axminions.command.reload")
|
@CommandPermission("axminions.command.reload")
|
||||||
@Description("Reload the configurations of the plugin")
|
@Description("Reload the configurations of the plugin")
|
||||||
|
Loading…
Reference in New Issue
Block a user