ok so i decided to go to thw wasteland to mine resources and when i type a command it says town commands can only be used in town and idk how to get out of the wasteland
You have to be in a safe zone, for example, one of the spawn points. Each one can be found exactly 2,000 blocks from the coordinates (0, 0).
If you're in-game use the /map command. It gets you an URL pointing to the live map for your server (another option is the server overview). Make your way back to an outpost (the safe area) and then you can TP away again.
Do as others suggested, /map. Find your name on the list on the right side, click it. The map should center on you. Then use the mouse to move the map around until you find a spawn area.
By the way, (0, 0) (x, z) is also known as the "origin" point of a Minecraft world. I'm not trying to correct anything wrong from the original explanation. "Origin" is an alternative to saying "0, 0". That's all.
i now have another suggestion: use ur compass! do: /assist new if u dont have one. compass now points 2 outpost when ur out in wasteland. a bit like a cross with a circle around it. Try this: https://smp2.emc.gs/?worldname=wastelands&mapname=flat&zoom=5&x=19&y=64&z=12