if (cmd[0].equals("sz")) {
                if (player.isLocked() || player.getControlerManager().getControler() != null) {
                    player.getPackets().sendGameMessage("You cannot tele anywhere from here.");
                    return true;}
                {
                player.setNextWorldTile(new WorldTile(2667, 10396, 0));
                return true;}
    }  
}
}

my error is closing the file. thats my problem i always get the error when i try to end the statement and close the file

Note that the java compilers generally require that the last line is terminated with a new-line sequence. Try adding an empty line after the end of the code. Many C/C++ compilers have the same problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.