Precondition: Get chunk coords Post: Print to screen an ascii map PHP: public function drawMap ($player, $x, $z) { // 1 2 3 4 5 6 7 8 9 0 1 // A // B // C // D X // E // F // G $tcx = $x - 3; $tcz = $z -5; $iy = 0; $ix = 0; while ($iy <= 7) { $tarray = array(); while ($ix <= 11) { //$result = $this->plugin->query("SELECT * FROM plots WHERE $tcx = x AND $tcz = z;"); $array = $this->plugin->factionFromPoint($iy,$ix); //$array = $result->fetchArray(SQLITE3_ASSOC); if (empty($array)) { array_push($tarray, " "); } else { $player->sendMessage(TextFormat::BLUE . $array); array_push($tarray, $array); } $ix++; } $fout = implode(" ", $tarray); //$player->sendMessage(TextFormat::BLUE . $fout); $ix = 0; $iy++; } }