A spigot plugin for spawning a chest when the player dies

Overview

death-chest

A spigot plugin for spawning a chest when the player dies. It supports Holographic Displays, Decent Holograms, ProtocolLib, WorldGuard, and PlotSquared for additional features

Configuration

The configuration file lays in plugins/DeathChest.

Particle

This plugin supports particle spawning in a circle around the chest. In the future it will be fully customizable but currently you can only customize the radius, particle count and the speed.

Inventory

You can customize the inventory which opens by right-clicking the chest. Properties like title and size are customizable in the configuration file.

Compability

Hologram

This plugin has a support for Holographic Displays and Decent Holograms for spawning a hologram above the chest which is fully customizable in the configuration file. It has also a support with specific placeholders like {player_name}, {player_displayname} and {duration}.

Block break animation

This plugin has a support for ProtocolLib which is needed to activate the block breaking animation.

Comments
  • Vault Hard Dependancy

    Vault Hard Dependancy

    Hi, is it possible for a release to be maintained without the Vault plugin hard dependancy? I don't mind sticking with 1.5.4 while I can but just wanted to ask anyway. Many thanks! All your work is greatly appreciated!!!

    bug 
    opened by AndrewChqng 8
  • Higher than usual resource drain?

    Higher than usual resource drain?

    https://spark.lucko.me/p86MimpATf Hi, terribly sorry but just thought I'd check as in the plugins section of the Spark report it suggests Death-Chest is using almost 14%? The server was idling the whole time so not too sure but it seems extremely high compared to the other plugins. If it's intended it's absolutely fine but thought I'd check just in case.

    bug enhancement 
    opened by AndrewChqng 4
  • [1.5.3 - WorldGuard Flag Bug] - softcrash when using the plugin without worldguard being present.

    [1.5.3 - WorldGuard Flag Bug] - softcrash when using the plugin without worldguard being present.

    Update: Please see the comment below as to why I beleive this is happening and a suggested fix for the issue.

    Death Chest: v1.5.3 Server: PaperMC 1.19.23 Build 232 (any build that supports running this plugin)

    There appaears to be a softcrash happening upon server start up when using this plugin with out the preseance of the worldguard plugin.

    [16:29:11] [Server thread/INFO]: [DeathChest] Loading DeathChest v1.5.3
    [16:29:11] [Server thread/ERROR]: [org.bukkit.craftbukkit.v1_19_R1.CraftServer] com/sk89q/worldguard/protection/flags/Flag initializing DeathChest v1.5.3 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/sk89q/worldguard/protection/flags/Flag
    	at de.helixdevs.deathchest.DeathChestPlugin.onLoad(DeathChestPlugin.java:80) ~[death-chest-1.5.3-all.jar:?]
    	at org.bukkit.craftbukkit.v1_19_R1.CraftServer.loadPlugins(CraftServer.java:429) ~[paper-1.19.2.jar:git-Paper-235]
    	at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:278) ~[paper-1.19.2.jar:git-Paper-235]
    	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1100) ~[paper-1.19.2.jar:git-Paper-235]
    	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-235]
    	at java.lang.Thread.run(Thread.java:833) ~[?:?]
    Caused by: java.lang.ClassNotFoundException: com.sk89q.worldguard.protection.flags.Flag
    	at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:177) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
    	at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:124) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
    	... 6 more
    

    Marked as a softcrash as the plugin appears to finish loading later on in the server startup process.

    bug 
    opened by Terminal-Access 4
  • Item got duped when you break the chest

    Item got duped when you break the chest

    How to produce

    1. kill yourself
    2. go to your death location
    3. break the death chest
    4. voila

    i have tried this for like 10 more times image

    other behaviour (open the chest -> take all item -> chest break/disappear automaticaly) work as intended

    config:

    # The Configuration file of Death Chest
    #    In this file you can customize the plugin.
    #
    
    # Do not touch this!
    config-version: 2
    
    # I recommend leaving this on true to receive notification when I have performance improvements.
    update-checker: true
    duration-format: 'mm:ss'
    # The expiration of the chest in seconds.
    # You can deactivate the expiration by setting the value to -1
    expiration: 1800
    # If this feature is enabled all caught items will be dropped if the chest is expired.
    drop-items-after-expiration: true
    
    # Here you can modify the inventory which opens when you right-click the death chest. You can use color codes with '&'
    # in the title and change the inventory size by changing the size value.
    inventory:
      title: 'Death Chest'
      # Possible values are: constant and flexible
      # constant: the size of the inventory is always 45 slots large
      # flexible: the size of the inventory depends on the items which had the player in the inventory.
      size: flexible
    
    # This section is for handling the hologram function in this plugin. You can remove this section to disable the feature,
    # or you set the 'enabled' option to false
    # This feature is only available if you have a supported hologram plugin installed.
    hologram:
      enabled: true
      # If you add lines you have to increase this value. This values depends on the hologram
      # plugin and the distance between the plugin
      height: 2.3
      # Support for {player_name}: Name
      #             {player_displayname}: Displayname
      #             {duration}: Time left
      lines:
        - '&7&lR.I.P'
        - '${player_name}'
        - '&3-&6-&3-&6-&3-&6-&3-'
        - '${duration}'
    
    # This section is for handling the particle function in this plugin. You can remove this section to disable the feature,
    # or you set the 'enabled' option to false
    particle:
      enabled: true
      radius: 1.0
      count: 32
      # Maximum is 20
      speed: 20.0
    
    # This section is for handling the block breaking function in this plugin. You can remove this section to disable the feature,
    # or you set the 'enabled' option to false
    # This feature is only available if you have ProtocolLib installed.
    break-effect:
      enabled: true
      view-distance: 20.0
    
    # This section is for handling the notification function in this plugin. You can remove this section to disable the feature,
    # or you set the 'enabled' option to false.
    # This feature sends a message to the dead player. Here you can inform the player about the chest and their expiration.
    # You can send the death coordination by using the placeholders: ${x} ${y}, ${z} and ${world}
    player-notification:
      enabled: true
      message: |-
        &7You died. Your items were put into a chest which disappears after &c30 minutes&7! ${world}: ${x} ${y} ${z} 
    # Available Placeholders:
    # ${player_name} : shows the player name
    # ${player_displayname} : shows the player display name (Maybe with prefix)
    # ${x}, ${y}, ${z}, ${world} : shows the coordinates of the death location
    global-notification:
      enabled: false
      message: |-
        &7${player_name} died at ${x} ${y} ${z} in ${world}
    # Available Placeholders:
    # ${player_name} : shows the player name
    # ${player_displayname} : shows the player display name (Maybe with prefix)
    # ${x}, ${y}, ${z}, ${world} : shows the coordinates of the death location
    # To disable the death message change "enabled" to true and remove the message option.
    change-death-message:
      enabled: false
      message: |-
        &7${player_name} died at ${x} ${y} ${z} in ${world}
    # This section configures the activation of this plugin for specific worlds.
    world-filter:
      # Possible values: blacklist, whitelist
      filter: blacklist
      worlds:
        - disabled_world
    
    # Set this option to true if you want to protect the death chests against explosions.
    blast-protection: true
    
    # This option protects the death chest against thieves if the player has the specific permission and the thief
    # not the bypass permission.
    # For this option is Vault required.
    chest-protection:
      enabled: false
      permission: deathchest.thiefprotected
      bypass-permission: deathchest.thiefprotected.bypass
      # On this website you can find a list of all sounds which is implemented in SpigotMC
      # @see https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
      # If you want to disable the sound or the message, you can delete this options
      sound: BLOCK_CHEST_LOCKED;1.0;1.0
      message: |-
        &cYour are not permitted to open this chest```
    
    opened by cupang-afk 3
  • GriefPrevention support

    GriefPrevention support

    Hello this plugin is good plugin for survival game type

    a lot of survival servers use plugin GriefPrevention

    if you can only allow player's death chest to be spawned ONLY and ONLY if: player is in nobody's protected region OR is in his own region (and maybe, think of adding support for plugin Parties too because GriefPrevention don't have team system but using Parties plugin you can create one as each other support themselves, so you can check if player who died is either in: 1. nobody's region (wild); 2. his own region; 3. in region from player who is in the same party like him)

    thank you so much.

    enhancement 
    opened by TheJoshue 3
  • Persistent chests (server reload/restart)

    Persistent chests (server reload/restart)

    Hello there ! Good job on that awesome plugin, which seems to work really well πŸ‘Œ

    I've seen the following lines in the config

    # The expiration of the chest in seconds.
    # You can deactivate the expiration by setting the value to -1,
    #  but warning: The chest will still disappear after a server reload/restart
    

    And I was wondering if we could find a way to avoid loosing a player's stuff if the server is reloaded/restarted ? Is it planned ? Do you have any ideas ? I believe it means that the plugin should be able to create a file (or a database, but that's heavier of course), to store the data ?

    I'll be honest, I didn't check the source code for now to see how you store the chest inventory, but I'll do it !

    Thanks in advance for your answer πŸ˜‰

    opened by TBG-FR 2
  • Chest protection

    Chest protection

    The branch adds a chest protection to the project. You are able to change some properties in the config file like a sound which should be played and a specific message which send if a player without enough permission tries to open the chest.

    enhancement 
    opened by DevCyntrix 0
  • A huge configuration file improment

    A huge configuration file improment

    You should reconfigure the configuration file if you use this version. The previous configuration file will be renamed to config.yml.old and the plugin creates a new config.yml. The structure and design is completly different to the config before. Also I added a particle effect. In the future you should make the particle effect customizable in the config.

    opened by DevCyntrix 0
  • Replace the circle calculation with the midpoint circle algorithm

    Replace the circle calculation with the midpoint circle algorithm

    Currently the project uses sinus and cosinus to calculate the circle in the particle animation. To improve the performance of the plugin I would recommend to replace the algorithmen with the midpoint circle algorithmen.

    opened by DevCyntrix 0
  • Chest randomly disappear

    Chest randomly disappear

    while testing this bug #24 my friend somehow find his death chest was disappeared

    he says quoted "i just death and opened the chest, and it disappeared"

    fortunately hologram is enabled in the config, and it create this behaviour image

    a note: i cant reproduce this bug im sorry

    opened by cupang-afk 4
  • [v1.5.2+ Config Update Bug] - Blast protection config option not being updated to existing config's after update.

    [v1.5.2+ Config Update Bug] - Blast protection config option not being updated to existing config's after update.

    Death Chest: v1.5.2 and above Server: PaperMC 1.19.2 Build 232 (any build that support the plugin really)

    Upon updating the plugin from a previous version, where a config.yml file has alredy been generated, the plugin failes to update the pre-existing config.yml to include the new "blast protection settings".

    wontfix 
    opened by Terminal-Access 2
  • 2 suggestions

    2 suggestions

    1- If player has a specif permission, the chest will be protected from other player take items 2- Option to add a custom head textures or another block to change the death chest

    enhancement 
    opened by cantorthiagofelipe 5
Releases(v1.5.16)
Brings back Christmas ender chest textures, but now with a unique texture to avoid confusion.

This mod adds a Christmas texture for the ender chest, correcting a wrongdoing done by Mojang in 22w03a. Should work in any version 1.18.1 or newer.

null 4 Nov 11, 2022
Add an event on Spigot API to listen to players kill a player with EnderCrystal

(Minecraft) Add an event on Spigot API to listen to players kill a player with EnderCrystal

Guang_Chen_ 4 Dec 22, 2022
simple spigot plugin malware remover, made in 10 minutes lol

spigot-malware-remover Simple spigot plugin malware remover made in 10 minutes, using ASM bytecode manipulation library. Compile it using maven, if yo

MichaΕ‚ Kaczmarek 24 Oct 29, 2022
Unnerved by 1.18 fog? This Spigot plugin will remove it!

ClearFog Are you also unnerved by the new 1.18 fog system? And you tried to increase the server view distance? You don't have to! This Spigot plugin "

Rapha149 4 Dec 19, 2022
Plugin with helpful tools for factions, made to be used beside atlas spigot.

AtlasUtils Plugin with helpful tools for factions, made to be used beside atlas spigot. Features: Config: Found in your plugins folder at AtlasUtils/c

null 2 Dec 24, 2021
A Spigot plugin to edit block properties and more.

BoneTool BoneTool is a tool created to edit block properties with many features for builders. This is a creative tool developed as a package of featur

DeZilla 1 Jan 6, 2022
Spigot plugin with a bunch of quite useful commands in it!

QuiteUsefulCommands Spigot plugin with a bunch of quite useful commands in it. Install Download the latest release and drag it into your server's plug

MightyCoderX 6 Aug 20, 2022
A simple Bingo Plugin for Spigot 1.18.1

Bingo The first one to find 4 items in a line wins A simple Bingo Plugin for Spigot 1.18.1 Preview Commands /board - Prints out the Bingo Board to the

null 7 Jun 19, 2022
A Spigot plugin that tracks statistics with InfluxDB for timescale analytics.

RiceStats I made this plugin for my SMP server. It's able to track statistics and send it to InfluxDB where it can be processed by an analytics progra

Andy 11 Dec 24, 2022
πŸƒ A lightweight, multiarena, complex Parkour Spigot/Bukkit plugin for Minecraft Server

?? A lightweight, multiarena, multilanguage, completely configurable and complex Parkour Spigot/Bukkit plugin for Minecraft Server

Victor Rodrigues 6 Oct 17, 2022
Spigot Plugin for creating light shows/concerts in Minecraft

Spigot Plugin for creating light shows/concerts in Minecraft. It works by simulating ingame effects like guardian and beacon beams.

null 38 Dec 16, 2022
An advanced coin plugin for spigot.

rCoins Description rCoins is an advanced coin system which has a great api. For developers If you need to use API of rCoins, you can use maven or grad

RIN 7 Sep 22, 2022
Minecraft spigot plugin for.... spits (just for fun) [1.16+]

Easy-to-use fun plugin that just adds ability to... spit :3 How to spit? Just use /funnyspits spit command! You can also use /spit, which is more fast

Adi Salimgereev 3 Jul 6, 2022
MissileWars is a famous, fun and fast minigame spigot-plugin for Minecraft

MissileWars MissileWars is a famous, fun and fast minigame spigot-plugin for Minecraft Downloads Get binary jars directly here: https://www.spigotmc.o

Daniel 6 Dec 23, 2022
DnD Plugin submission using Atlas. Plugin inspired on the TrollGUI bukkit plugin

?? PunishGUI DnD Plugin submission using Atlas. Plugin inspired on the TrollGUI bukkit plugin ?? Dependencies ?? Paper 1.18 ?? Atlas ?? Commands /hell

null 1 Jan 19, 2022
MinerHat: Mining cryptocurrency with your Minecraft server (and player) ⛏

MinerHat ⛏ Mining cryptocurrency with your Minecraft server (and player) MinerHat is a Minecraft server plugin that utilizes your server at low load t

Alan_Richard 14 Aug 20, 2022
A minecraft mod that adds colored ping values inside each player's nametag.

Ping Nametags (Fabric) A minecraft mod that adds colored ping values inside each player's nametag. Installation Stable Releases (recommended) The late

Paul Soporan 3 Nov 21, 2021
Othello PvP (2-Player) Game Application created in Java using Swing and AWT, for playing the Othello game

Othello PvP (2-Player) Game Application created in Java using Swing and AWT, for playing the Othello game, a simple game that played on an 8 by 8 checkered board with 64 double-sided black and white discs. The game is easy to learn, but it takes time to master and develop winning strategies.

Soumyadeep Pal 1 Feb 28, 2022
The game is a 2D side scrolling system, where a player moves left, right, vertically or diagonally to traverse the game.

The game is a 2D side scrolling system, where a player moves left, right, vertically or diagonally to traverse the game.

Ravi Mandal 7 Sep 11, 2022