GhostPlugin implements the concept of "ghosts". After death, the player enters ghost mode with the goal of recovering their items at the death location within a certain time limit. If they fail to do so, they lose their items. Below is a detailed overview of its features:
After death, the player becomes a ghost:
- They gain invisibility, immortality, and a compass pointing to the death location.
- They have a limited time (e.g. 6 minutes) to reach the death location.
- After meeting the conditions, they are revived and all items are returned to the player's inventory.
- If the player fails to recover their items, they automatically lose all items and are revived.
Main BossBar:
- During ghost mode, a BossBar is displayed with a countdown.
- If the player reaches the death location, the timer stops and the player is revived.
- Death location and item capture:
- The death location and inventory are saved upon death.
- Items are returned to the player if they successfully reach the death location.
Commands:
- /live: The player will instantly revive, but will lose items if in ghost mode.
- /ghostplugin reload: To reload the configuration.
Ghost bans and restrictions:
- Ghosts cannot destroy blocks.
- The compass only works in the same world as the place of death.
Code (YAML):
messages:
prefix
: '&7
[GHOST
]'
ghost
: '
{prefix
} &7You are a ghost! You have 1 minute to reach the location of your
death and recover your items.'
compass
: '
{prefix
} &eYour compass points to the location of your death.'
compass_error
: '
{prefix
} &cThe location of your death could not be found or is in
another world.'
revive
: '
{prefix
} &aYou are alive again, and your items have been restored!'
instant_revive
: '
{prefix
} &cTime is up! You have been revived but lost your items.'
not_ghost
: '
{prefix
} &eYou cannot use this command when you are not a ghost.'
block_break
: '
{prefix
} &cGhosts cannot break blocks!'
reload_success
: '
{prefix
} &aGhostPlugin configuration has been reloaded.'
no_permission
: '
{prefix
} &cYou do not have permission to execute this command.'
bossbar_title
: '
{prefix
} &cTime as a ghost'
bossbar_remaining_time
: '
{prefix
} &cRemaining time
:
{time
} seconds'
settings:
ghost_duration
: 360
# Duration of ghost state in seconds
revive_distance
: 30
# Maximum distance for revival in blocks
Technical Details:
- Supported Versions: Compatible with the latest Minecraft server versions.
- Author: Developed by Mesiacik.
- Email: [email protected]
- Applied and tested on live server: majnuj.com