From 630284e7aeed5d61637aa6e8b883f79b31e79348 Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Mon, 17 Aug 2020 18:42:42 +0200 Subject: [PATCH] More json fixes --- Core/src/main/java/com/plotsquared/core/command/Grant.java | 2 +- Core/src/main/java/com/plotsquared/core/command/Rate.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Grant.java b/Core/src/main/java/com/plotsquared/core/command/Grant.java index f1a970b89..ca5a832d7 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Grant.java +++ b/Core/src/main/java/com/plotsquared/core/command/Grant.java @@ -90,7 +90,7 @@ public class Grant extends Command { PlayerMetaDataKeys.PERSISTENT_GRANTED_PLOTS)) { if (args[0].equalsIgnoreCase("check")) { 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 { access.set(access.get().orElse(0) + 1); } diff --git a/Core/src/main/java/com/plotsquared/core/command/Rate.java b/Core/src/main/java/com/plotsquared/core/command/Rate.java index 3172a0078..b649842a8 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Rate.java +++ b/Core/src/main/java/com/plotsquared/core/command/Rate.java @@ -241,7 +241,7 @@ public class Rate extends SubCommand { plot.addRating(uuid, event.getRating()); player.sendMessage( TranslatableCaption.of("ratings.rating_applied"), - Template.of("value", plot.getId().toString()) + Template.of("plot", plot.getId().toString()) ); } };