
Protect your tamed animals from damage, even when you're offline! Lightweight plugin with HEX color support and full configurability for Minecraft 1.16.5-1.21.11.
Protect your tamed animals from damage, even when you're offline!
DontKillFriends is a lightweight Minecraft plugin that prevents other players from harming your beloved pets. Whether you're online or offline, your tamed animals stay safe from both player attacks and environmental damage.
&#RRGGBB)/kill command| Command | Description | Permission |
|---|---|---|
/dkf version |
Show plugin version | dontkillfriends.version |
/dkf reload |
Reload plugin configuration | dontkillfriends.reload |
Aliases: /dontkillfriends = /dkf
| Permission | Description | Default |
|---|---|---|
dontkillfriends.version |
View plugin version | op |
dontkillfriends.reload |
Reload plugin config | op |
dontkillfriends.bypass |
Bypass pet protection (can damage any tamed animal) | op |
# Main protection settings
protect-offline-pets: true # Protect pets of offline players
debug-logs: false # Show debug messages in console
# Pet attack prevention
prevent-tamed-pets-attack: true # Prevent tamed pets from attacking each other
prevent-mobs-attack-pets: true # Prevent hostile mobs from attacking tamed pets
# Damage types to protect from
immortal-from-explosion: true # Explosions
immortal-from-drowning: true # Drowning
immortal-from-suffocation: true # Suffocation
immortal-from-fire: true # Fire and lava
immortal-from-campfire: true # Campfires
immortal-from-lightning: true # Lightning
immortal-from-fall: true # Fall damage
immortal-from-dragon: true # Dragon breath
immortal-from-host: true # Owner damage
immortal-from-projectile: true # Arrows and projectiles
immortal-from-magic: true # Potions and magic
immortal-from-cramming: true # Entity cramming damage
immortal-from-void: true # Void damage and /kill command
# Localization
language: "en_US.yml" # Language file from messages folder
# Update checking
check-for-updates: true # Check for new versions on Modrinth
commandTabComplete: true # TAB completion for commands
The plugin supports multiple languages through the messages/ folder. Available languages:
en_US.yml)ru_RU.yml)es_ES.yml)de_DE.yml)fr_FR.yml)pt_BR.yml)zh_CN.yml)ja_JP.yml)To change language, set language: "your_language.yml" in config.yml. You can also create custom language files by copying an existing one and modifying the messages.
You can use HEX colors in messages:
&#FF6B6B - RedECDC4 - Teal&#FFD93D - YellowbFB98 - Light Green&#FF69B4 - Hot Pink&#ff5e1a - Orangead5ff - CyanExample: "&#FF6B6B&lDanger! &#FFD93DYou cannot hurt this pet!"
When someone attempts to attack your tamed pets, you'll receive a notification the next time you log in:
DontKillFriends-x.x.x.jar in your server's plugins folderplugins/DontKillFriends/config.yml/dkf reload to apply changesThe plugin automatically detects Folia and uses appropriate schedulers:
GlobalRegionScheduler for global tasksEntityScheduler for player-specific tasksNo special configuration needed - just place the JAR in your plugins folder!
If you encounter issues:
debug-logs: true in config.yml/dkf reload to apply changes