execute @e[name=FunctionRunner,tag=RandomMap,type=armor_stand] ~ ~ ~ blockdata 4 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionNextMap\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Map:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Random\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
clone 3 100 12 5 102 12 499 100 524
setblock 498 101 476 minecraft:wooden_button 3
setblock 499 101 475 minecraft:wooden_button 1
execute @e[name=ReplaceSign,type=area_effect_cloud] ~ ~ ~ detect 500 102 524 wall_sign 2 kill @e[name=ReplaceSign,type=area_effect_cloud]