How is it possible to add fast a large amount of items to an array. Like forlooping a area of blocks an then add it to an array foreach block. Possible? If yes please tell me
Technically anything is possible in PMMP. + I'm not really sure what you mean. Could you please explain in more detail, with proper English grammar please?
The array can be quickly filled with a loop, but at the expense of saying "Like forlooping a area of blocks an then add it to an array foreach block." could you tell us in more detail?
You can use array push to push data into an array. PHP: array_push($array, $values ); Example: PHP: $array = [];foreach($this->plugin->getServer()->getOnlinePlayers() as $player){ array_push($array, $player);}