[Request] Random Legendary Plugin

Hi, i need someone to make me a plugin that gives someone a random legendary via command.

Try this:

And then some code (untested):

val pokemonNames = listOf(
  "Arktos",
  "Mewtu",
  "Lugia"
)

registerCommand("giverandomlegendary") {
  action(onlyPlayers = true) {
    val randomPoke = pokemonNames.randomElement
    val command = "pokegive ${player.name} $randomPoke"
    Server.console.executeCommand(command)
  }
}

how would i implement this into the scripts folder
what type of file do i make.

so i made a .sk file and pasted it, then i restarted the server. So i logged in and tried /giverandomlegendary and /pokegive name randompoke but it didnt work

Please at least even try to read the wiki.

That is the page about the script files.