Guest User

Untitled

a guest
Jun 23rd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. if (playerCommand.startsWith("removeobject")) {
  2. c.sendMessage ("The object at X:"+c.absX+" Y:"+c.absY+" was dumped.");
  3. String filePath = "./src/server/world/removedobjects/";
  4. BufferedWriter bw = null;
  5. try
  6. {
  7. bw = new BufferedWriter(new FileWriter(filePath, true));
  8. bw.write("{"+c.absX+", "+c.absY+"},");
  9. bw.newLine();
  10. bw.flush();
  11. }
  12. catch (IOException ioe)
  13. {
  14. ioe.printStackTrace();
  15. }
  16. finally
  17. {
  18. if (bw != null)
  19. {
  20. try
  21. {
  22. bw.close();
  23. }
  24. catch (IOException ioe2)
  25. {
  26. }
  27. }
  28. }
  29. }
Add Comment
Please, Sign In to add comment