13
0
geforkt von Mirrors/Paper

Fixed Updatr stuff

By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2011-01-05 23:00:13 +00:00
Ursprung 88c998f4a2
Commit 6f77375dc5
2 geänderte Dateien mit 15 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -1,8 +1,11 @@
package org.bukkit.fillr; package org.bukkit.fillr;
import java.io.File; import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.*; import org.bukkit.*;
import org.bukkit.plugin.InvalidDescriptionException;
import org.bukkit.plugin.InvalidPluginException; import org.bukkit.plugin.InvalidPluginException;
public class Getter { public class Getter {
@ -25,8 +28,8 @@ public class Getter {
player.sendMessage("Finished Download!"); player.sendMessage("Finished Download!");
enablePlugin(reader); enablePlugin(reader);
player.sendMessage("Loading " + reader.getName()); player.sendMessage("Loading " + reader.getName());
} catch (Exception e) { } catch (Exception ex) {
e.printStackTrace(); Logger.getLogger(Getter.class.getName()).log(Level.SEVERE, null, ex);
} }
} }
@ -36,8 +39,10 @@ public class Getter {
File plugin = new File(directory, name + ".jar"); File plugin = new File(directory, name + ".jar");
try { try {
server.getPluginManager().loadPlugin(plugin); server.getPluginManager().loadPlugin(plugin);
} catch (InvalidPluginException e) { } catch (InvalidPluginException ex) {
e.printStackTrace(); Logger.getLogger(Getter.class.getName()).log(Level.SEVERE, null, ex);
} catch (InvalidDescriptionException ex) {
Logger.getLogger(Getter.class.getName()).log(Level.SEVERE, null, ex);
} }
} }
} }

Datei anzeigen

@ -4,6 +4,8 @@ import org.bukkit.*;
import org.bukkit.plugin.*; import org.bukkit.plugin.*;
import java.io.File; import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Updater { public class Updater {
public static String directory = Fillr.directory; public static String directory = Fillr.directory;
@ -95,8 +97,10 @@ public class Updater {
File plugin = new File(directory, name + ".jar"); File plugin = new File(directory, name + ".jar");
try { try {
server.getPluginManager().loadPlugin(plugin); server.getPluginManager().loadPlugin(plugin);
} catch (InvalidPluginException e) { } catch (InvalidPluginException ex) {
e.printStackTrace(); Logger.getLogger(Getter.class.getName()).log(Level.SEVERE, null, ex);
} catch (InvalidDescriptionException ex) {
Logger.getLogger(Getter.class.getName()).log(Level.SEVERE, null, ex);
} }
} }