Merge pull request #9 from Xayanix/master

Allow admins to reset player's minions
This commit is contained in:
TomTom 2024-04-11 18:06:15 +02:00 committed by GitHub
commit 286f8f14f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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")