Plugin for setting custom death messages.
The plugin supports work with mods.
The plugin takes into account the in-game rule of showing death messages.
All messages are stored in localization files → {CONFIG_DIR}/localeapi/wasted/*.
Initially, the plugin does not contain death messages. They will be added to the localization by default with each new unique player death.
If you’d like, you can provide me with a default localization file filled with all the vanilla death messages and I’ll add it to the next release.
%player% - The Player Who Died
%killer% - Player Killer
%indirect-killer%- Killer player who indirectly used %killer%
%item% - An item in the hands of a murderer.
I’ve seen this in like five places and I have no idea what the purpose of it is. What’s wrong with just TextSerializers.FORMATTING_CODE.deserialize(string)?
Why are you @Injecting a logger but then overwriting it with a LoggerFactory call?
Why are you using the /assets directory, but then using getResource anyway instead of the Asset API?
Why do you have a custom mcmod.info instead of letting it auto-generate?
I had problems with the loss of text formatting, possibly because of my mistakes. So I decided to change it to the standard one for the game.
I have little experience so far. I will take this into account in the future.
I tried to use the Asset API, but every time I got an error that the file was not found. I already had the code ready for Asset, but I could not use it.
I type the code in Eclipse, this program can not generate it.
There is nothing that what you wrote will do that what I wrote won’t do.
Possibly your bug is that you are trying to use the full file path. With the asset API you are not supposed to have the /assets/myplugin, only the file name after that.
The Sponge API is what autogenerates it, not your IDE. Anything using Maven or Gradle, or that explicitly enabled APT, should have it autogenerated.
Turn on debug in the config. In the console, the plugin displays the cause of death of the player. Next, enter it in the config.
Sponge developers changed some of the names after I published the plugin, which is why you got this problem.
A new version has been released for Wasted, it is available for download here.
Support API10.
The format for writing text to localization files has been changed.
Added message variation indicating a block when a player dies from falling, drowning, or strangulation. This can seriously increase the size of the localization, but allows for more elaborate message customization.
If you notice bugs or some messages won’t be written/read(from localization), report it on GitHub or Discord.
A new version has been released for Wasted, it is available for download here.
Upgrade to SpongeAPI11.
Updating dependencies. The code of the plugin has not been changed.
Due to ORE restrictions on the number of colors for tags possible when publishing a new version of the plugin, all new versions will be published with one of two tags - Release or UNSTABLE.