Added vomiting, "-all" for Words

This commit is contained in:
Sn0wStorm
2013-07-03 00:31:34 +02:00
parent 09c1e84317
commit 6e2df99c14
6 changed files with 101 additions and 13 deletions
+4 -2
View File
@@ -99,6 +99,7 @@ public class P extends JavaPlugin {
// various Settings
autosave = config.getInt("autosave", 3);
BPlayer.pukeItemId = Material.matchMaterial(config.getString("pukeItem", "SOUL_SAND")).getId();
// loading recipes
ConfigurationSection configSection = config.getConfigurationSection("recipes");
@@ -112,8 +113,9 @@ public class P extends JavaPlugin {
configSection = config.getConfigurationSection("cooked");
if (configSection != null) {
for (String ingredient : configSection.getKeys(false)) {
BIngredients.cookedNames.put(Material.matchMaterial(ingredient), (configSection.getString(ingredient)));
BIngredients.possibleIngredients.add(Material.matchMaterial(ingredient));
Material mat = Material.matchMaterial(ingredient);
BIngredients.cookedNames.put(mat, (configSection.getString(ingredient, null)));
BIngredients.possibleIngredients.add(mat);
}
}