config.getAll in nukkit? sort from highest to low and get the key/value in a variable, its possible?

LewBr

Member
can someone help me and tell if it's possible to re-create this code of pocketmine to Java-Nukkit?
```
array = $configstats->getAll();

arsort($array);
$arraykeys = array_keys($array);
$arrayvalues = array_values($array);


$arraycor1 = $this->plugin->cores[$arraykeys[0]];
$arraycor2 = $this->plugin->cores[$arraykeys[1]];
$arraycor3 = $this->plugin->cores[$arraykeys[2]];

$valueprim = $arrayvalues[0];
$valuesegu = $arrayvalues[1];
$valueterc = $arrayvalues[2];
```
I've tryed to create arsort for Java by googling and looking in forum like StackOverflow, but nothing works correctly..]
If you can send me an example if it's possible, i'll be appreciate, thanks.
 
Top