mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2024-12-01 13:03:43 +01:00
Merge pull request #9 from Xayanix/master
Allow admins to reset player's minions
This commit is contained in:
commit
286f8f14f1
@ -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