From 61a8781f62778c4b62088240a196b5dd5fe2bf14 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Wed, 1 Dec 2010 13:33:20 -0800 Subject: [PATCH] fixed unecessary new line insertions, hopefully --- vMinecraftUsers.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vMinecraftUsers.java b/vMinecraftUsers.java index a0a498b40..6f103db87 100644 --- a/vMinecraftUsers.java +++ b/vMinecraftUsers.java @@ -44,10 +44,10 @@ public class vMinecraftUsers { String location = "vminecraftusers.txt"; try { BufferedWriter bw = new BufferedWriter(new FileWriter(location, true)); - bw.append(player.getName()+"::::\r\n"); + bw.append(player.getName()+"::::\r"); bw.newLine(); bw.close(); - } catch (IOException e) { + } catch (Exception e) { log.log(Level.SEVERE, "Exception while trying to add user with BufferedWriter to " + location, e); } finally { try { @@ -55,7 +55,7 @@ public class vMinecraftUsers { writer.close(); } } catch (IOException e) { - log.log(Level.SEVERE, "Exception while closing writer for " + location, e); + log.log(Level.SEVERE, "Exception while closing BufferedWriter to " + location, e); } }