The -spawn command and any similar commands HAVE BEEN FIXED AND TESTED.
Also, keep in mind you must use the function main I've provided, as the map may crash if you use the normal stuff.
Spoiler for commands:
-cheats<space><space>
-gold #
-lumber #
-int #
-agi #
-str #
-lvl #
-xp #
-hp #
-mp #
-ms #
-debuff (Removes buff from selected unit)
-lock (locks the trade system)
-unlock (Unlocks it)
-charges# ### (First # slot 2nd charges)
-additem # (max is about 90)
-invul
-vul
-kill
-mana (Mana stays at 100%)
-invis (makes unit invisible)
-vis (visible)
-pathoff (walkthrough walls)
-pathon (normal)
-setcolor (red/blue/teal/purple/yellow/orange/green/pink/gray/lb/dg/brown)
-owner (red/blue/teal/purple/yellow/orange/green/pink/gray/lb/dg/brown)
-nocd (no cooldown)
-cdon (cooldown on)
-bindup/down/left/right (IE: -bindup -kill would make it so that when you hit up it kills whatever s selected)
-clearkeys (Clears bindings)
-showkeys (Shows bindings)
-mh (Dispalys map, no server splits, hopefully)
-setname
-size #
-food #
-heal
-copy #
-fast (Hit esc when training units)
-bfast (Hit esc on building structure)
-ufast (Research is instant)(To disable one of these commands add -no to it like -noufast)
-shareall
-share ##
-unshare ##
-ally ##
-unally ##
-soff (share off)
-spawn #### (List)
-ground ####
-add ####
-remove #### (removes the ability)
-g ## #### (gold)
-l ## #### (lumber)
-f ## #### (food)
-spa ## #### (Spawn unit)
-sn ## <name> (setname)
-sc ## (red/blue/teal/purple/yellow/orange/green/pink/gray/lb/dg/brown)
-dead (Sets units animation to dead)
-birth (Sets building to being built)
-attack (Sets unit to attack)
-stand (Sets unit to stand)
-hear (You can see what everyone is saying)
-nohear (back to normal)
-noreplay
-kick ## <message>
-tele (sets patrol to teleport)
-note (sets it back to normal)
-reg <kill/explode/red/blue/teal/purple/yellow/orange/green/pink/gray/lb/dg/brown> (Right-click two spots and a region will be made)
-time ## (Sets time to that hour)
-float ### ### (first #'s is height 2nd are speed)
-stop (Disable unit commands)
-resume (Enables them)
-area #### #### (First #'s are size 2nd Rawcode, then click where you want it)
-autoh ### (Autoheals by precentage)(A little buggy)
-disable (Disable -reg)
-list# (1-8 )
-cheaton ## (Turns cheats on for player specified)
-cheatoff ## (Turns cheats off for player specified)
-unit #### (Spawns specified unit at issued location)
-nounit (Disables -unit)
-act <activator> (Changes activator to whatever specifed, needs a - at the beginning)
-unitid (Shows the unit's rawcode)
-itemid (Shows the unit's item rawcode in first slot)
-destid (Shows rawcode of destructable in Reg)
-destroy (Removes selected units)
-revive (Revives dead hero and spawns at selected unit)
-addhp (Adds hp to any unit, needs to be divisable by 50)
-colors (Displays player numbers by color)
-say###### (# = hex code only 0-9 and A-F will work)(After the hex just put the text you want displayed)
-gold #
-lumber #
-int #
-agi #
-str #
-lvl #
-xp #
-hp #
-mp #
-ms #
-debuff (Removes buff from selected unit)
-lock (locks the trade system)
-unlock (Unlocks it)
-charges# ### (First # slot 2nd charges)
-additem # (max is about 90)
-invul
-vul
-kill
-mana (Mana stays at 100%)
-invis (makes unit invisible)
-vis (visible)
-pathoff (walkthrough walls)
-pathon (normal)
-setcolor (red/blue/teal/purple/yellow/orange/green/pink/gray/lb/dg/brown)
-owner (red/blue/teal/purple/yellow/orange/green/pink/gray/lb/dg/brown)
-nocd (no cooldown)
-cdon (cooldown on)
-bindup/down/left/right (IE: -bindup -kill would make it so that when you hit up it kills whatever s selected)
-clearkeys (Clears bindings)
-showkeys (Shows bindings)
-mh (Dispalys map, no server splits, hopefully)
-setname
-size #
-food #
-heal
-copy #
-fast (Hit esc when training units)
-bfast (Hit esc on building structure)
-ufast (Research is instant)(To disable one of these commands add -no to it like -noufast)
-shareall
-share ##
-unshare ##
-ally ##
-unally ##
-soff (share off)
-spawn #### (List)
-ground ####
-add ####
-remove #### (removes the ability)
-g ## #### (gold)
-l ## #### (lumber)
-f ## #### (food)
-spa ## #### (Spawn unit)
-sn ## <name> (setname)
-sc ## (red/blue/teal/purple/yellow/orange/green/pink/gray/lb/dg/brown)
-dead (Sets units animation to dead)
-birth (Sets building to being built)
-attack (Sets unit to attack)
-stand (Sets unit to stand)
-hear (You can see what everyone is saying)
-nohear (back to normal)
-noreplay
-kick ## <message>
-tele (sets patrol to teleport)
-note (sets it back to normal)
-reg <kill/explode/red/blue/teal/purple/yellow/orange/green/pink/gray/lb/dg/brown> (Right-click two spots and a region will be made)
-time ## (Sets time to that hour)
-float ### ### (first #'s is height 2nd are speed)
-stop (Disable unit commands)
-resume (Enables them)
-area #### #### (First #'s are size 2nd Rawcode, then click where you want it)
-autoh ### (Autoheals by precentage)(A little buggy)
-disable (Disable -reg)
-list# (1-8 )
-cheaton ## (Turns cheats on for player specified)
-cheatoff ## (Turns cheats off for player specified)
-unit #### (Spawns specified unit at issued location)
-nounit (Disables -unit)
-act <activator> (Changes activator to whatever specifed, needs a - at the beginning)
-unitid (Shows the unit's rawcode)
-itemid (Shows the unit's item rawcode in first slot)
-destid (Shows rawcode of destructable in Reg)
-destroy (Removes selected units)
-revive (Revives dead hero and spawns at selected unit)
-addhp (Adds hp to any unit, needs to be divisable by 50)
-colors (Displays player numbers by color)
-say###### (# = hex code only 0-9 and A-F will work)(After the hex just put the text you want displayed)