SetImmortal 图标

SetImmortal

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/setimmortal
资源信息

Minecraft 版本: 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11

平台: bukkit paper

资源介绍
  1. Overview

SetImmortal is a Paper plugin for Minecraft Java 1.21.10 that allows operators or console to grant or remove an immortal status for any username. Immortal players still appear to take damage normally (animation, sound, knockback, fire, etc.) but never lose health. The system works even if the player is offline because usernames are stored instead of active player objects.

  1. Commands

/setimmortal — Adds a player to the immortal list

/removeimmortal — Removes a player from the immortal list

Rules:

Only OP or console can use commands

Duplicate entries are prevented

Works for offline players

  1. How It Works

The plugin listens to damage events. When a player takes damage:

Check if entity is a player

Check if username is in immortal list

If yes → set damage to 0 (do not cancel event)

This preserves all visual and physical effects while preventing health loss.

  1. Storage System

File automatically generated:

plugins/SetImmortal/players.yml

Format:

immortals:

  • PlayerName

Rules:

Loads safely if missing

Saves instantly after changes

Never deletes other entries accidentally

  1. Damage Protection Coverage

Health loss is prevented from all damage sources, including:

PvP, mobs, fall damage, fire/lava, explosions, magic, suffocation, custom plugin damage

  1. Permissions

Allowed:

Server console

Operators

Denied:

All non-OP players

(No permission plugin required.)

  1. Stability Requirements

The plugin must not crash if:

data file missing

file empty

player offline

invalid username

server reload

command typo

  1. Plugin.yml Requirements

Must include:

name

main class

version

api-version

commands list

  1. Code Standards

clean class structure

null-safe checks

no deprecated API

no NMS usage

uses plugin data folder API

safe file handling

  1. Expandability Design

Architecture should allow easy future additions such as:

immortallist command

clear command

UUID support

permission nodes

temporary immortality

world-specific immortality

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Manifest - Paintings

价格:0 墨喵币
下载量:0

查看详情
Seamless Survival Overhaul

价格:0 墨喵币
下载量:0

查看详情
Ancient City Map

价格:0 墨喵币
下载量:0

查看详情
CroakLib

价格:0 墨喵币
下载量:0

查看详情