since i had nothing to do at work i decided to make a new !goto command. an easier editable command.
so this is the command. it should also fix the "ArrayIndexOutOfBounds" error since im not using any normal arrays 
first you need this import
PHP Code:
import java.util.HashMap;
then replace the old !goto command with this one
PHP Code:
// if syntax is not right
// give error message
if (splitted.length < 2){
mc.dropMessage("Syntax: !goto <mapname>");
}else{
// init gotomaps hashmap
HashMap<String, Integer> gotomaps = new HashMap<String, Integer>();
// add maps to gotomaps hashmap
gotomaps.put("gmmap", 180000000);
gotomaps.put("southperry", 60000);
gotomaps.put("amherst", 1010000);
gotomaps.put("henesys", 100000000);
gotomaps.put("ellinia", 101000000);
gotomaps.put("perion", 102000000);
gotomaps.put("kerning", 103000000);
gotomaps.put("lith", 104000000);
gotomaps.put("sleepywood", 105040300);
gotomaps.put("florina", 110000000);
gotomaps.put("orbis", 200000000);
gotomaps.put("happy", 209000000);
gotomaps.put("elnath", 211000000);
gotomaps.put("ludi", 220000000);
gotomaps.put("aqua", 230000000);
gotomaps.put("leafre", 240000000);
gotomaps.put("mulung", 250000000);
gotomaps.put("herb", 251000000);
gotomaps.put("omega", 221000000);
gotomaps.put("korean", 222000000);
gotomaps.put("nlc", 600000000);
gotomaps.put("excavation", 990000000);
gotomaps.put("pianus", 230040420);
gotomaps.put("horntail", 240060200);
gotomaps.put("mushmom", 100000005);
gotomaps.put("griffey", 240020101);
gotomaps.put("manon", 240020401);
gotomaps.put("horseman", 682000001);
gotomaps.put("balrog", 105090900);
gotomaps.put("zakum", 280030000);
gotomaps.put("papu", 220080001);
gotomaps.put("showa", 801000000);
gotomaps.put("guild", 200000301);
gotomaps.put("shrine", 800000000);
gotomaps.put("fm", 910000000);
gotomaps.put("skelegon", 240040511);
// if place is in hashmap
if (gotomaps.containsKey(splitted[1])){
// prepare for changemap
MapleMap target = cserv.getMapFactory().getMap(gotomaps.get(splitted[1]));
MaplePortal targetPortal = target.getPortal(0);
MapleCharacter player = c.getPlayer();
// changemap
player.changeMap(target, targetPortal);
}else{
// else give error message
mc.dropMessage("There is no such place !!!");
}
}
the good thing about this new command is that it is way more easier to add / edit places.
when you want to add a new place to the command you just have to add this
PHP Code:
gotomaps.put("mapname", MapID);
Note: tested this on v60 server but it should work on any other server version too.
Note2: please make sure that the var "cserv" is available in your script. else just add it xD
PHP Code:
ChannelServer cserv = c.getChannelServer();
hope this helps a little bit 
Credits: to me 
btw this is my first release 
[EDIT]
Note3:
PHP Code:
HashMap<String, Integer> gotomaps = new HashMap<String, Integer>();
that's correct. so don't change it >.<