mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-26 20:16:16 +01:00
Better exception handling
This commit is contained in:
parent
67103162a9
commit
49de578382
@ -84,7 +84,7 @@ public class ChestCommands extends JavaPlugin {
|
||||
}
|
||||
|
||||
AttributeRemover.setup();
|
||||
|
||||
|
||||
if (settings.update_notifications) {
|
||||
new SimpleUpdater(this, 56919).checkForUpdates(new ResponseHandler() {
|
||||
|
||||
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user