a
This commit is contained in:
parent
e3483f1acc
commit
f4f8f09a06
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue