mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Fix done message on backup and add done message to grant
This commit is contained in:
parent
2eee1ef203
commit
841eef6a52
@ -322,7 +322,7 @@ public final class Backup extends Command {
|
|||||||
Template.of("reason", error.getMessage())
|
Template.of("reason", error.getMessage())
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
player.sendMessage(TranslatableCaption.of("backup_load_success"));
|
player.sendMessage(TranslatableCaption.of("backups.backup_load_success"));
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -124,6 +124,10 @@ public class Grant extends Command {
|
|||||||
String key = "grantedPlots";
|
String key = "grantedPlots";
|
||||||
byte[] rawData = Ints.toByteArray(amount);
|
byte[] rawData = Ints.toByteArray(amount);
|
||||||
DBFunc.addPersistentMeta(uuid.getUuid(), key, rawData, replace);
|
DBFunc.addPersistentMeta(uuid.getUuid(), key, rawData, replace);
|
||||||
|
player.sendMessage(
|
||||||
|
TranslatableCaption.of("grants.added"),
|
||||||
|
Template.of("grants", String.valueOf(amount))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -471,6 +471,7 @@
|
|||||||
"category.command_category_administration": "<gray>Admin</gray>",
|
"category.command_category_administration": "<gray>Admin</gray>",
|
||||||
|
|
||||||
"grants.granted_plots": "<prefix><gold>Result: <gray><amount> </gray>grants left.</gold>",
|
"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>",
|
"events.event_denied": "<prefix><gold><value> </gold><gray>Cancelled by external plugin.</gray>",
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user