getGeneratorList() public static method

public static getGeneratorList ( ) : string[]
return string[]
Ejemplo n.º 1
0
 public function onSCommand(CommandSender $c, Command $cc, $scmd, $data, array $args)
 {
     if (count($args) != 0) {
         return false;
     }
     if (MPMU::apiVersion("1.12.0")) {
         $c->sendMessage(implode(", ", Generator::getGeneratorList()));
     } else {
         $c->sendMessage("normal, flat");
         $c->sendMessage(TextFormat::RED . mc::_("[MW] Plugin provided world generators\n are not included in\n this list."));
     }
     return true;
 }