Added more default recipes + small fixes

BStats shows that >75% of users don't add any recipes themselves. So even if I would have preferred not to, i've added more default recipes to make it easier for everyone
+Fixed Brew Create with space in name
+Changed look of Quality Stars (now with half-stars)
+Fixed Cauldron Recipe with Multiple Ingredients
This commit is contained in:
Sn0wStorm
2019-12-06 18:57:41 +01:00
parent bc79248db5
commit 214bb52939
16 changed files with 2018 additions and 119 deletions
+32 -3
View File
@@ -253,19 +253,48 @@ public class P extends JavaPlugin {
} else if (recipes < 11) {
return "7-10";
} else if (recipes == 11) {
// There are 11 default recipes, so show this as its own slice
// There were 11 default recipes, so show this as its own slice
return "11";
} else if (recipes <= 31) {
} else if (recipes == 20) {
// There are 20 default recipes, so show this as its own slice
return "20";
} else if (recipes <= 29) {
if (recipes % 2 == 0) {
return recipes + "-" + (recipes + 1);
} else {
return (recipes - 1) + "-" + recipes;
}
} else if (recipes < 35) {
return "30-34";
} else if (recipes < 40) {
return "35-39";
} else if (recipes < 45) {
return "40-44";
} else if (recipes <= 50) {
return "45-50";
} else {
return "More than 31";
return "More than 50";
}
}));
metrics.addCustomChart(new Metrics.SimplePie("wakeups", () -> {
if (!BConfig.enableHome) {
return "disabled";
}
int wakeups = Wakeup.wakeups.size();
if (wakeups == 0) {
return "0";
} else if (wakeups <= 5) {
return "1-5";
} else if (wakeups <= 10) {
return "6-10";
} else if (wakeups <= 20) {
return "11-20";
} else {
return "More than 20";
}
}));
metrics.addCustomChart(new Metrics.SimplePie("v2_mc_version", () -> {
String mcv = Bukkit.getBukkitVersion();
mcv = mcv.substring(0, mcv.indexOf('.', 2));