I've added the if thing but there still repeating:
if(!$addedPlatformMaps){
$remapDivision[$remapCount] = "Building Platform";
$remapName[$remapCount] = "x axis +";
$remapCmd[$remapCount] = "xAxisP";
$remapCount++;
$remapName[$remapCount] = "x axis -";
$remapCmd[$remapCount] = "xAxisN";
$remapCount++;
$remapName[$remapCount] = "y axis +";
$remapCmd[$remapCount] = "yAxisP";
$remapCount++;
$remapName[$remapCount] = "y axis -";
$remapCmd[$remapCount] = "yAxisN";
$remapCount++;
$remapName[$remapCount] = "z axis +";
$remapCmd[$remapCount] = "zAxisP";
$remapCount++;
$remapName[$remapCount] = "z axis -";
$remapCmd[$remapCount] = "zAxisN";
$remapCount++;
}