Move all home deletion to fully format using MineDown, fix #42

This commit is contained in:
WiIIiam278 committed 2021-06-06 01:59:37 +01:00
1 parent b7ae002a9d
commit 63a8f7b7d8
3 files changed
+5 -17

No files matched your search

@@ -151,13 +151,7 @@ public class SettingHandler {
private static void sendDeletionConfirmationWarning(Player player, String deletionType) {
// Send the delete-all confirmation warning
MessageManager.sendMessage(player, "delete_all_" + deletionType + "s_confirm");
MessageManager.sendMessage(player, "delete_all_irreversible_warning");
// Send Confirm button
player.spigot().sendMessage(new ComponentBuilder()
.append(new MineDown(MessageManager.getRawMessage("option_selection_prompt")).toComponent(), ComponentBuilder.FormatRetention.NONE)
.append(deletionConfirmationButton("del" + deletionType), ComponentBuilder.FormatRetention.NONE).create());
}
}
// Delete all of a player's homes
public static void deleteAllHomes(Player player) {