+ toggling it with /revivetoggle ritualname it is now possible to allow players to rename items to the person's ign they want to revive (Case-Sensitive)
+ using other plugins like ExecutableItems it is now possible to add custom items that also work for the price of the command (unfortunately no support for the ritual currently)
+fixed a bug breaking revival through the ritual with a price of any item with different Item IDs and name (e.g. Block of Iron having the ID iron_block)
+general code cleanup
As per a suggestion on discord I added the possibility to set the price for the ritual.
Command:
/ritualprice
It works basically the same way /reviveprice does but it sets it for the ritual instead of the command.
(The price will also only ever be 1 of said item)
Added the ability to revive player at their death spot
changed /revivetoggle to /revivetoggle method/spawn
You will be able to choose between command and ritual as normal with /revivetoggle method and toggle with /revivetoggle spawn between spawning at world spawn and at the most recent death spot of the target player.
Fixed the method of revival resetting to ritual when running /reload. Also actually started saving the method now since apparently past me thought it'd be a good idea to create a config entry for method but then not save it.
As per request of someone on discord I added the possibility to revive people through a ritual of burning a Totem of Undying.
You can switch between the command and the ritual with /revivetoggle.
This will toggle between the two modes of reviving aka turns one off and the other one on.
There is one downside of the Ritual though. Since the plugin just detects a totem being burned it seems to be impossible for me to detect who burned it so when the Ritual is turned off the player will unfortunately just lose the totem.
Now when someone gets revived they get revived at the world spawn.
(World spawn is always connected to the main world. It doesn't work on minigame servers or something similar to that but I do not think that is very important)