summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/fillr/Getter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit/fillr/Getter.java')
-rw-r--r--src/main/java/org/bukkit/fillr/Getter.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/main/java/org/bukkit/fillr/Getter.java b/src/main/java/org/bukkit/fillr/Getter.java
index f38eda45..1bbd5b4c 100644
--- a/src/main/java/org/bukkit/fillr/Getter.java
+++ b/src/main/java/org/bukkit/fillr/Getter.java
@@ -1,8 +1,11 @@
package org.bukkit.fillr;
import java.io.File;
+import java.util.logging.Level;
+import java.util.logging.Logger;
import org.bukkit.*;
+import org.bukkit.plugin.InvalidDescriptionException;
import org.bukkit.plugin.InvalidPluginException;
public class Getter {
@@ -25,8 +28,8 @@ public class Getter {
player.sendMessage("Finished Download!");
enablePlugin(reader);
player.sendMessage("Loading " + reader.getName());
- } catch (Exception e) {
- e.printStackTrace();
+ } catch (Exception ex) {
+ Logger.getLogger(Getter.class.getName()).log(Level.SEVERE, null, ex);
}
}
@@ -36,8 +39,10 @@ public class Getter {
File plugin = new File(directory, name + ".jar");
try {
server.getPluginManager().loadPlugin(plugin);
- } catch (InvalidPluginException e) {
- e.printStackTrace();
+ } catch (InvalidPluginException ex) {
+ Logger.getLogger(Getter.class.getName()).log(Level.SEVERE, null, ex);
+ } catch (InvalidDescriptionException ex) {
+ Logger.getLogger(Getter.class.getName()).log(Level.SEVERE, null, ex);
}
}
}