SavageDeathCompass
Description:
This plugin was created as an alternative to the /back on death command. With DeathCompass enabled, a player is given a compass when they respawn after death. This compass points to their last death location in that world, so they can find their dropped loot. It also works well alongside various death chest and graveyard plugins.
Features:
- Customizable item name, supports color codes
- Customizable item lore with color codes
- Customizable messages with variable substitution
- Option to disable messages individually
- Localization files for messages, item name and lore. default is English, with Spanish and German examples included. If you'd like to improve my translations, or submit a new language file for inclusion in subsequent versions, please PM me!
- Permissions for use and admin commands
- Configurable for which worlds the plugin is enabled
- stores last death locations for each world so they are persistent when changing worlds, logging out/in, and server restarts
- Uses SQLite for persistent storage
- Configurable option to destroy compass on drop, to keep them from cluttering your world. Also destroys compass on death drop if configured
- Configurable delay for setting compass target for better compatibility with other plugins that react to player respawn events
- Destroys compass on any interaction with SavageDeathChests owned by player
- Configurable option to prevent placing death compass in chests/containers
- Customizable sound effects
- A perfect compliment to SavageDeathChest and SavageGraveyards
Permissions:
Permission | Description | Default |
---|---|---|
deathcompass.use |
Give player a DeathCompass when respawning after death | false |
deathcompass.reload |
Allow reloading of configuration file |
op |
deathcompass.admin |
All admin commands |
op |
Commands:
/deathcompass help [command]
Displays short help and usage message.
/deathcompass reload
Reloads config file. Requires deathcompass.reload permission.
/deathcompass status
Displays version info and config settings. Requires deathcompass.status permission.
Installation:
- Place the jar file in your server plugins folder and restart the server.
- Open the
config.yml
file with your favorite text editor, and add any worlds in which you would like the plugin to be active to theenabled-worlds
section, and make any other configuration changes you desire. - Issue the
/deathcompass reload
command; restarting the server is not necessary for configuration changes to take effect - Remember to grant any players or groups that should receive death compasses the
deathcompass.use
permission node, and any administrators of the plugin thedeathcompass.admin
permission node.
Configuration:
Localization Files:
If you'd like to improve these translations, or submit a new language file for inclusion in future versions, please PM me.
Suggestion to make it so that if a death compass it attempted to be dropped in a worldguard region where item-drop is set to deny and compass is set to destroy on drop, to not display the compass has been detroyed message because worlguard has cancelled the drop event after that message is sent but before the destroy event from savagedeathcompass is triggered
In reply to TheDimSimKing:
A new version (v1.13.4) has been uploaded. This is a maintenance release that addresses an issue where an NPE was thrown any time a player changed worlds. Thanks goes to ZethrusTV for bringing this to my attention.
Does the prevent storage option prevent the compass falling into hoppers/hopper minecarts? If not I suggest adding this and I also suggest adding the option to destroy the compass when the players is within a set radius of their death location depending on what's set in config.
And to also add an option to remove the compass after a set amount of time aswell ;)
In reply to TheDimSimKing:
Can you make this multiworld compatible?
I have users complaining about the compass not working in the end.
In reply to ZethrusTV:
In reply to timsavage:
https://paste.ee/p/DnPia
In reply to ZethrusTV:
A new version (v1.13.3) has been uploaded. This is a maintenance release that fixes a bug that sometimes prevented items from being rearranged in inventories.
Also addressed a bug that prevented the plugin from working when a user supplied language file was used. The embedded english language resource file will now be used as a fallback when a message can not be found in a user supplied language file.
There have been no changes made to any configuration or language files.
Hello,
For some reason the plugin occasionally says that the death compass cannot be placed in containers even though the player was not carrying a death compass, instead was just trying to use an anvil or place an item into a chest or take an item out.
EDIT: Noticed this seems to occur when dragging and dropping items in stacks of more than 1. If you place item in singular stack before moving to chest, anvil etc, You do not get the error.
Any idea whats up with this? Using the latest version, it only happens occasionally.
In reply to ZethrusTV:
In reply to timsavage:
A replacement version (v1.13.2) has been uploaded that fixes the bug that prevented players from rearranging items in inventories when this plugin is active. There have been no changes to any configuration files, so simply replacing the plugin jar is all that is required.
I've discovered a bug that prevents rearranging items in a chest when this plugin is active. A new version will be uploaded when the issue is resolved.
A new version (v1.13.2) has been uploaded. The language files have changed, so please back-up and remove these files so the plugin can install new versions on startup.
Won't run on 1.13.2 -
In reply to jmdelisle:
A new version (v1.13.1) has been uploaded. This version removes the (buggy) yaml storage option, so the plugin always uses a SQLite database for persistent storage. A configurable option to prevent placing death compasses in chests/containers has been added, as well as configurable sound effects in the sounds.yml file.
Note that fields names in the config.yml and language/*.yml files have changed. Please remove these files and restart your server to allow the plugin to install the new versions.
getting error
https://hastebin.com/pewaxogupi.sql