Compatibility
Minecraft: Java Edition
Platforms
Links
Tags
Creators
Details
PlayerImmortal
A lightweight Bukkit/Spigot/Paper plugin that gives operators (OP) god-mode immunity, preventing death from any damage source.
PlayerImmortal is a minimalistic plugin that allows OP players to toggle immortality on themselves. When active, the player cannot die โ health will never drop below 1 heart (half a heart). Perfect for server administrators who need to test mechanics without the risk of dying, or for builders in dangerous environments.
๐ Table of Contents
- About
- Features
- Installation
- Quick Start
- Commands & Permissions
- Configuration
- Building from Source
- FAQ
- Acknowledgments
- License
๐ About
PlayerImmortal was created to provide a simple, noโfrills way for server operators to enable temporary invulnerability. While creative mode or /god commands exist in other plugins, this plugin focuses on simplicity and lightweight performance โ it only does one thing and does it well.
It is designed for:
- Server Administrators โ who need to test redstone, combat, or parkour without dying.
- Builders โ who work in survival mode but donโt want to be interrupted by mobs or falls.
- Plugin Developers โ who want a minimal example of a Bukkit event listener and command.
Key use cases:
- Quickly toggle immortality with a single command.
- Stay alive while testing game mechanics.
- Avoid accidental death during server maintenance.
โจ Features
- ๐ก๏ธ Toggle Immortality โ Use
/immortalto turn god-mode on or off. - โค๏ธ Health Floor โ Health will never drop below 1.0 HP, preventing death.
- ๐ Operator Only โ Only players with OP privileges can use the command.
- โก Lightweight โ No configuration files, no database, no bloat.
- ๐ฎ Compatible โ Works on Bukkit, Spigot, and Paper 1.21.*.
- ๐ฆ Zero Dependencies โ Pure Bukkit API, no external libraries.
๐ฆ Installation
Manual installation (JAR)
- Download the latest
PlayerImmortal.jarfrom the Modrinth page. - Place the JAR file into your server's
plugins/folder. - Restart your server (or use a plugin manager like
/reloadโ though a full restart is recommended).
๐ Quick Start
- Start your server with the plugin installed.
- Become OP (if not already):
/op YourName - Toggle immortality:
/immortal- First execution:
ยงaImmortal onโ you are now invincible. - Second execution:
ยงcImmortal offโ immortality disabled.
- First execution:
- Test it โ jump from a high cliff or let a zombie hit you; your health will never reach zero.
๐ก Commands & Permissions
| Command | Permission | Description |
|---|---|---|
/immortal |
(none โ OP only) | Toggles immortality for the executing player. |
- The command does not require a specific permission node; it checks if the sender is OP (
player.isOp()). - Only players can execute the command โ console senders are rejected.
- The plugin does not expose any other commands or subcommands.
โ๏ธ Configuration
PlayerImmortal does not use a configuration file.
All behaviour is hardcoded for simplicity. There are no settings to adjust โ just drop it in and use it.
If you wish to customise messages or add permissions, please consider forking the project and modifying the source.
๐ Building from Source
If you prefer to build the plugin yourself:
- Clone the repository:
git clone https://github.com/yourusername/PlayerImmortal.git cd PlayerImmortal - Ensure you have Java 17+ and Maven installed.
- Build:
mvn clean package - The compiled JAR will be in
target/PlayerImmortal-{version}.jar. Copy it to your server'splugins/folder.
โ FAQ
Q: Does this work on versions other than 1.21?
A: The plugin is built against the 1.21.1 API. It may work on older versions that support the EntityDamageEvent API, but we only officially support 1.21.*.
Q: Can I give the command to non-OP players?
A: Currently, no. The plugin explicitly checks player.isOp(). If you need permission-based control, you can modify the source or use a permission plugin with a wrapper.
Q: What happens when I toggle immortality on?
A: You will receive a message ยงaImmortal on. Your health will be capped at 1.0 HP when damage would otherwise kill you. You can still take damage, but you cannot die.
Q: Does it work with other damage sources (fall, fire, void, etc.)?
A: Yes, it cancels all EntityDamageEvent sources by reducing the damage so that health never reaches 0.
Q: I found a bug. Where do I report it?
A: Please open an issue on the GitHub Issues page with steps to reproduce and your server logs.
๐ Acknowledgments
- Bukkit/Spigot/Paper API โ for providing the Minecraft server interface.
- All contributors and testers who help improve this plugin.
๐ License
This project is licensed under the GNU General Public License v3.0 โ see the LICENSE file for details.
Built with โค๏ธ by Mr_Catcraft


