compiling problems

Results 1 to 2 of 2
  1. #1
    Elite Member NmZero is offline
    Member +Rank
    Jul 2012 Join Date
    unknowndogLocation
    202Posts

    compiling problems

    in front of my text there is a red sign error that says: illegal start of expression
    its at this line

    public static void executeAdminCommand(MapleClient c, String [] sub, char heading) {

    using moopleDEV, its in the commands.java
    line 374

    ~NmZero


  2. #2
    Elite Member NmZero is offline
    Member +Rank
    Jul 2012 Join Date
    unknowndogLocation
    202Posts

    Re: compiling problems

    Code:
        public static void executeAdminCommand(MapleClient c, String [] sub, char heading) {
            MapleCharacter player = c.getPlayer();
            if (sub[0].equals("horntail")) {
                player.getMap().spawnMonsterOnGroudBelow(MapleLifeFactory.getMonster(8810026), player.getPosition());
            } else if (sub[0].equals("packet")) {
                player.getMap().broadcastMessage(MaplePacketCreator.customPacket(joinStringFrom(sub, 1)));
            } else if (sub[0].equals("warpworld")) {
                Server server = Server.getInstance();
                byte world = Byte.parseByte(sub[1]);
                if (world <= (server.getWorlds().size() - 1)) {
                    try {
                        String[] socket = server.getIP(world, c.getChannel()).split(":");
                        c.getWorldServer().removePlayer(player);
                        player.getMap().removePlayer(player);//LOL FORGOT THIS ><                    
                        c.updateLoginState(MapleClient.LOGIN_SERVER_TRANSITION);
                        player.setWorld(world);
                        player.saveToDB(true);//To set the new world :O (true because else 2 player instances are created, one in both worlds)
                        c.announce(MaplePacketCreator.getChannelChange(InetAddress.getByName(socket[0]), Integer.parseInt(socket[1])));
                    } catch (Exception ex) {
                        player.message("Error when trying to change worlds, are you sure the world you are trying to warp to has the same amount of channels?");
                    }
    
                } else {
                    player.message("Invalid world; highest number available: " + (server.getWorlds().size() - 1));
                }
    bumb



Advertisement