Fix done message on backup and add done message to grant

This commit is contained in:
N0tMyFaultOG 2020-10-08 18:57:11 +02:00
parent 2eee1ef203
commit 841eef6a52
3 changed files with 6 additions and 1 deletions

View File

@ -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"));
}
}));
}

View File

@ -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))
);
}
}
});

View File

@ -471,6 +471,7 @@
"category.command_category_administration": "<gray>Admin</gray>",
"grants.granted_plots": "<prefix><gold>Result: <gray><amount> </gray>grants left.</gold>",
"grants.added": "<prefix><gold><grants></gold> <gray>grant(s) have been added.</gray>",
"events.event_denied": "<prefix><gold><value> </gold><gray>Cancelled by external plugin.</gray>",