More json fixes

This commit is contained in:
N0tMyFaultOG 2020-08-17 18:42:42 +02:00
parent cc562033e7
commit 630284e7ae
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ public class Grant extends Command {
PlayerMetaDataKeys.PERSISTENT_GRANTED_PLOTS)) { PlayerMetaDataKeys.PERSISTENT_GRANTED_PLOTS)) {
if (args[0].equalsIgnoreCase("check")) { if (args[0].equalsIgnoreCase("check")) {
player.sendMessage(TranslatableCaption.of("grants.granted_plots"), player.sendMessage(TranslatableCaption.of("grants.granted_plots"),
Template.of("grants", String.valueOf(access.get().orElse(0)))); Template.of("amount", String.valueOf(access.get().orElse(0))));
} else { } else {
access.set(access.get().orElse(0) + 1); access.set(access.get().orElse(0) + 1);
} }

View File

@ -241,7 +241,7 @@ public class Rate extends SubCommand {
plot.addRating(uuid, event.getRating()); plot.addRating(uuid, event.getRating());
player.sendMessage( player.sendMessage(
TranslatableCaption.of("ratings.rating_applied"), TranslatableCaption.of("ratings.rating_applied"),
Template.of("value", plot.getId().toString()) Template.of("plot", plot.getId().toString())
); );
} }
}; };