Fixed /points showing buy discount instead of sell
This commit is contained in:
parent
a10a5d1ab9
commit
3b71fdc810
|
|
@ -47,7 +47,7 @@ public class CommandPoints extends SubCommand {
|
||||||
Placeholder.unparsed("villager_type", VillagerType.getVillagerType(key).getDisplayName()),
|
Placeholder.unparsed("villager_type", VillagerType.getVillagerType(key).getDisplayName()),
|
||||||
Placeholder.unparsed("points", String.valueOf(currentPoints)),
|
Placeholder.unparsed("points", String.valueOf(currentPoints)),
|
||||||
Placeholder.unparsed("buy_multiplier", String.valueOf(Price.getCurrentMultiplier(currentPoints, true))),
|
Placeholder.unparsed("buy_multiplier", String.valueOf(Price.getCurrentMultiplier(currentPoints, true))),
|
||||||
Placeholder.unparsed("sell_multiplier", String.valueOf(Price.getCurrentMultiplier(currentPoints, true)))
|
Placeholder.unparsed("sell_multiplier", String.valueOf(Price.getCurrentMultiplier(currentPoints, false)))
|
||||||
)));
|
)));
|
||||||
});
|
});
|
||||||
} else if (args.length == 2){
|
} else if (args.length == 2){
|
||||||
|
|
@ -62,7 +62,7 @@ public class CommandPoints extends SubCommand {
|
||||||
Placeholder.unparsed("villager_type", villagerType.getDisplayName()),
|
Placeholder.unparsed("villager_type", villagerType.getDisplayName()),
|
||||||
Placeholder.unparsed("points", String.valueOf(currentPoints)),
|
Placeholder.unparsed("points", String.valueOf(currentPoints)),
|
||||||
Placeholder.unparsed("buy_multiplier", String.valueOf(Price.getCurrentMultiplier(currentPoints, true))),
|
Placeholder.unparsed("buy_multiplier", String.valueOf(Price.getCurrentMultiplier(currentPoints, true))),
|
||||||
Placeholder.unparsed("sell_multiplier", String.valueOf(Price.getCurrentMultiplier(currentPoints, true)))
|
Placeholder.unparsed("sell_multiplier", String.valueOf(Price.getCurrentMultiplier(currentPoints, false)))
|
||||||
)));
|
)));
|
||||||
} else
|
} else
|
||||||
player.sendMiniMessage(getHelpMessage(), null);
|
player.sendMiniMessage(getHelpMessage(), null);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user