Better exception handling

This commit is contained in:
filoghost 2015-05-04 15:16:22 +02:00
parent 67103162a9
commit 49de578382
2 changed files with 3 additions and 4 deletions

View File

@ -84,7 +84,7 @@ public class ChestCommands extends JavaPlugin {
}
AttributeRemover.setup();
if (settings.update_notifications) {
new SimpleUpdater(this, 56919).checkForUpdates(new ResponseHandler() {

View File

@ -7,6 +7,7 @@ import org.bukkit.inventory.ItemFlag;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import com.gmail.filoghost.chestcommands.ChestCommands;
import com.gmail.filoghost.chestcommands.util.Utils;
public class AttributeRemover {
@ -52,9 +53,7 @@ public class AttributeRemover {
useReflection = true;
} catch (Exception e) {
e.printStackTrace();
ChestCommands.getInstance().getLogger().info("Could not enable the attribute remover for this version (" + e + "). Attributes will show up on items.");
}
}