I need for make my plugin of bedwars example of commands : /bedwars setup red generator, /bedwars setup blue generator, /bedwars setup emerald. but the plugin only executing "generator red" and "spawn red"
U could just put it in 1 file: PHP: new Config($this->getDataFolder() . "generators.yml", CONFIG::YAML, [ "iron" => [], "gold" => [], "diamond" => [], "emerald" => []]);
you just need to make a function that puts the coords of the player when they use "add generator $type" or some other command like: PHP: array_push($this->generators[$type], [$world, $x, $y, $z]);
I am using translate, but How do I create a command I wanted it to have more than 1 argument Example : /bedwars setup red generaror ironu