Fix advancement naming. Do not need minecraft:

Added in commented out platty advancement roots.
This commit is contained in:
tastybento 2023-04-16 16:10:37 -07:00
parent c94be6d0f6
commit 4f94a5ed98
3 changed files with 1194 additions and 1182 deletions

View File

@ -72,11 +72,11 @@ public class AdvancementsManager {
while (ad.hasNext()) {
Advancement a = ad.next();
int score = getScore(a);
BentoBox.getInstance().logDebug(" 'minecraft:" + a.getKey().getKey() + "': " + score);
BentoBox.getInstance().logDebug(" 'minecraft:" + a.getKey().getKey() + "': " + score);
scoreTotal += score;
}
BentoBox.getInstance().logDebug("Sum total = " + scoreTotal);
*/
*/
}
/**
@ -242,7 +242,7 @@ public class AdvancementsManager {
* @param a - advancement
* @return score of advancement, or 0 if cannot be worked out
*/
public int getScore(Advancement a) {
public int getScore(Advancement a) {
String adv = "advancements." + a.getKey().getKey();
// Unknowns
if (adv.endsWith("/root")) {

File diff suppressed because it is too large Load Diff

View File

@ -353,6 +353,17 @@ area:
# Grant these advancements
grant-advancements:
- minecraft:story/root
#- platy:building/root
#- platy:caving/root
#- platy:combat/root
#- platy:exploration/root
#- platy:forestry/root
#- platy:livestock/root
#- platy:nether_structures/root
#- platy:ocean/root
#- platy:redstone/root
#- platy:collection/root
#- platy:village/root
on-leave:
# What the plugin should reset when the player leaves or is kicked from an area
# Reset Money - if this is true, will reset the player's money to the starting money