From 841eef6a52542177c38b0927fbb8093a6bd562b3 Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Thu, 8 Oct 2020 18:57:11 +0200 Subject: [PATCH] Fix done message on backup and add done message to grant --- Core/src/main/java/com/plotsquared/core/command/Backup.java | 2 +- Core/src/main/java/com/plotsquared/core/command/Grant.java | 4 ++++ Core/src/main/resources/lang/messages_en.json | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Backup.java b/Core/src/main/java/com/plotsquared/core/command/Backup.java index 5ba71cc03..bf4f47efe 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Backup.java +++ b/Core/src/main/java/com/plotsquared/core/command/Backup.java @@ -322,7 +322,7 @@ public final class Backup extends Command { Template.of("reason", error.getMessage()) ); } else { - player.sendMessage(TranslatableCaption.of("backup_load_success")); + player.sendMessage(TranslatableCaption.of("backups.backup_load_success")); } })); } 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 a40c45ca8..a80ed4a49 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Grant.java +++ b/Core/src/main/java/com/plotsquared/core/command/Grant.java @@ -124,6 +124,10 @@ public class Grant extends Command { String key = "grantedPlots"; byte[] rawData = Ints.toByteArray(amount); DBFunc.addPersistentMeta(uuid.getUuid(), key, rawData, replace); + player.sendMessage( + TranslatableCaption.of("grants.added"), + Template.of("grants", String.valueOf(amount)) + ); } } }); diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json index 6229c9752..6c26eb616 100644 --- a/Core/src/main/resources/lang/messages_en.json +++ b/Core/src/main/resources/lang/messages_en.json @@ -471,6 +471,7 @@ "category.command_category_administration": "Admin", "grants.granted_plots": "Result: grants left.", + "grants.added": " grant(s) have been added.", "events.event_denied": " Cancelled by external plugin.",