DynmapCore
DynmapCore copied to clipboard
Error given for setting world order is misleading.
I was just trying to set the world order on one of my servers, and ran across what seemed like an odd error. I ran the command /dmap worldset dim1 order:3, and it gave me an error message relating to the center of the world:
Cannot set center on disabled or undefined world
Didn't make sense to me as I was not fidgeting with the map center at all, I just don't care for the extra dimensions from the FTB pack I'm running being sorted above the standard Minecraft dimensions.
Upon running the error through Google, I found that I had mistyped the world name. I found the error message in DynmapMapCommands.java, and I figure that when it was being refactored you copied/pasted the block but forgot to change the message given for setting the world order on line 249. I forked, and will submit a PR shortly. I would suggest making a note in the error messages regarding the fact that the issue could be due to a misspelled dimension name as the current message could seem vague to a user, but I will leave that up to you unless you want me to work on it.