Compatibility
Minecraft: Java Edition
Platforms
Links
Tags
Creators
Details
Kill Confirmation
Adds a confirmation menu to /kill so you don't die by accident.
Type /kill and a small menu pops up. Lime pane is Yes, red pane is Cancel, and every other slot is black glass. Click Yes and you die, click Cancel and nothing happens.
You can also do /kill <player> to kill someone else, and it asks you first there too.
WARNING: Dialog mode does not work on Spigot or Bukkit. It needs Paper, Purpur or Folia (1.21.7+). On Spigot and Bukkit,
type: dialogfalls back to the chest GUI.
Commands
/kill, /kc, /die and /killconf all do the same thing, with or without a player name after them.
/kc reload reloads all the configs without restarting.
Console and command blocks skip the menu and just kill.
Permissions
kc.selflets you kill yourself (everyone by default)kc.otherlets you kill other players (op by default)kc.reloadlets you use/kc reload(op by default)
Config
config.yml
# Leave blank for the default prefix: "<gray>[<red>K<orange>C<gray>]"
prefix: ""
# gui = normal chest GUI (plugins/KillConfirmation/GUI/gui.yml)
# dialog = Minecraft Dialogs (plugins/KillConfirmation/GUI/dialog.yml)
# Paper/Purpur/Folia 1.21.7+ only, falls back to gui on other servers
type: gui
# Ask for confirmation when using /kill <player>
confirm-other: true
messages:
no-permission: "<red>You don't have permission."
player-not-found: "<red>Player <white>{target}<red> not found."
console-usage: "<red>Usage: /kill <player>"
killed: "<gray>Killed <white>{target}<gray>."
cancelled: "<gray>Cancelled."
reloaded: "<green>Configs reloaded."
GUI/gui.yml
Used when type: gui. Every slot you don't list uses the filler item.
# Placeholders: {target} {player}
# Colors: <red> <green> <gold> <orange> <#RRGGBB> <bold> <reset> or &c style codes
title: "<red>Kill Confirmation"
rows: 3 # 1-6
# Every slot not listed under "slots" uses this item
filler:
material: BLACK_STAINED_GLASS_PANE
name: " "
# Slots are numbered from 0 (top-left). Any slot can be overridden.
# action: YES | CANCEL | NONE
slots:
11:
material: LIME_STAINED_GLASS_PANE
name: "<green><bold>YES"
lore:
- "<gray>Kill <white>{target}"
action: YES
15:
material: RED_STAINED_GLASS_PANE
name: "<red><bold>CANCEL"
lore:
- "<gray>Do nothing"
action: CANCEL
GUI/dialog.yml
Used when type: dialog. Dialog buttons can't hold item icons, so put a symbol in the label instead.
# Placeholders: {target}
title: "<red>Kill Confirmation"
can-close-with-escape: true
button-width: 150
body:
- "<gray>Are you sure you want to kill <white>{target}<gray>?"
yes:
label: "<green>✔ Yes"
tooltip: "<gray>Confirm"
no:
label: "<red>✘ Cancel"
tooltip: "<gray>Cancel"
Colors work with <red>, <#RRGGBB> and &c style codes.
Compatibility
Works on Paper, Purpur, Spigot, Bukkit and Folia, from 1.21.11+. Needs Java 21 or newer. No dependencies.
Made by justkillercam


