Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (playerCommand.startsWith("removeobject")) {
- c.sendMessage ("The object at X:"+c.absX+" Y:"+c.absY+" was dumped.");
- String filePath = "./src/server/world/removedobjects/";
- BufferedWriter bw = null;
- try
- {
- bw = new BufferedWriter(new FileWriter(filePath, true));
- bw.write("{"+c.absX+", "+c.absY+"},");
- bw.newLine();
- bw.flush();
- }
- catch (IOException ioe)
- {
- ioe.printStackTrace();
- }
- finally
- {
- if (bw != null)
- {
- try
- {
- bw.close();
- }
- catch (IOException ioe2)
- {
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment