This commit is contained in:
Minecon724 2022-02-03 12:58:15 +01:00
parent e3483f1acc
commit f4f8f09a06
1 changed files with 5 additions and 5 deletions

View File

@ -75,8 +75,8 @@ public class Main extends JavaPlugin implements Listener {
}
Integer duration = Integer.valueOf(parts[1]);
effects.put(effectType, duration);
} catch (IllegalArgumentException e) {
Bukkit.getLogger().severe("Unable to parse potion effects!");
} catch (Exception e) {
Bukkit.getLogger().severe("Exception while parsing " + s);
e.printStackTrace();
continue;
}
@ -95,9 +95,9 @@ public class Main extends JavaPlugin implements Listener {
throw new IllegalArgumentException(parts[0] + " is not a Material");
}
List<Integer> data = new ArrayList<Integer>();
data.add(Integer.parseInt(drops[1]));
data.add(Integer.parseInt(drops[2]));
data.add(Integer.parseInt(drops[3]));
data.add(Integer.parseInt(parts[1]));
data.add(Integer.parseInt(parts[2]));
data.add(Integer.parseInt(parts[3]));
drops.put(material, data);
} catch (Exception e) {
Bukkit.getLogger().severe("Exception while parsing " + s);