Fix null update check. More verbose feedback.
This commit is contained in:
@@ -5,6 +5,7 @@ import java.io.File;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import net.milkbowl.vault.economy.Economy;
|
import net.milkbowl.vault.economy.Economy;
|
||||||
@@ -45,6 +46,8 @@ public class Main extends JavaPlugin {
|
|||||||
try {
|
try {
|
||||||
transferVaults();
|
transferVaults();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
log.log(Level.SEVERE, "PlayerVaults: Failed to check to transfer vaults.");
|
||||||
|
log.log(Level.SEVERE, "PlayerVaults: Report this stack trace to drtshock and gomeow.");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
loadLang();
|
loadLang();
|
||||||
@@ -59,7 +62,11 @@ public class Main extends JavaPlugin {
|
|||||||
update = true;
|
update = true;
|
||||||
name = u.getNewVersion();
|
name = u.getNewVersion();
|
||||||
}
|
}
|
||||||
} catch (Exception e) {}
|
} catch (Exception e) {
|
||||||
|
log.log(Level.SEVERE, "PlayerVaults: Failed to check for updates.");
|
||||||
|
log.log(Level.SEVERE, "PlayerVaults: Report this stack trace to drtshock and gomeow.");
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
commands = new Commands();
|
commands = new Commands();
|
||||||
|
|||||||
Reference in New Issue
Block a user