Let players teleport to their graves
Switch on the teleport from /graves, charge for it, and give ranks a discount or a free trip.
Players click their grave in /graves and arrive one block above it, even on another server. It is off by default.
Steps#
Open the settings
Run /gravesadmin, click Settings, then Extras.
Switch it on
Click Teleport. In the file this is teleport.enabled.
Set a price (optional)
Click Teleport cost and type the amount. 0 is free. Click Currency to pick which ExyliaLib currency is charged; empty is ExyliaLib's default currency. A cost needs ExyliaEconomy or Vault.
Give perks
exyliagraves.teleport.free skips the cost, and exyliagraves.teleport.cost.<amount> lowers it for a rank.
Check that it works#
Die, run /graves and left-click your grave. You should be taken to it, with the cost shown in chat if there is one. If you are in combat, you are asked to wait.
Going further#
Make it free for everybody#
Leave Teleport cost at 0.
Staff#
Staff with exyliagraves.admin.view teleport to anybody's grave from /gravesadmin list, free, whether teleporting is on or not and whether they are in combat or not.
The rules in detail#
Off by default. Turn it on in config.yml:
teleport:
enabled: true
cost: 250A player then left-clicks one of their graves in /graves and is taken one block above it, on whichever
server it stands. They need exyliagraves.teleport (everybody by default) and must not be in combat.
| Situation | Answer |
|---|---|
teleport.enabled is false | "You cannot teleport to a grave; you have to walk." |
No exyliagraves.teleport | "You do not have permission to do that." |
| Tagged in combat | "You cannot teleport while in combat. Wait 12s." |
| Cannot pay | "Teleporting to a grave costs $250." |
| It worked | "Taking you to your grave. Cost: $250." |
Combat is ExyliaLib's combat tag, which reads DeluxeCombat, PvPManager or a bridge another plugin registers.
The cost#
teleport.cost is charged in the currency named by teleport.currency (an ExyliaLib currency id: Vault
money, gems, an item or XP currency). Empty is ExyliaLib's default currency, the one set as
default-currency in plugins/ExyliaLib/economy.yml. It is written the way that currency writes
amounts. A rank can pay less with exyliagraves.teleport.cost.<amount> (the smallest number wins; it only
lowers the cost). 0 is free, and
exyliagraves.teleport.free (operators by default) skips it. With a cost above zero and no economy
available, the teleport is refused as if the player could not pay.
The money is taken before the teleport starts and given back when it does not arrive — "The teleport did not happen, so $250 was refunded." — followed by why:
| Why | Message |
|---|---|
| The grave is on another server that cannot be reached | "That server cannot be reached right now." |
| Its world is not loaded | "That world is not loaded." |
| No safe place to land, or any other failure | "The teleport failed." |
A teleport to another server goes through ExyliaLib's cross-server teleports, which need Redis. A refund that itself fails is written to the console with the player and the amount.
Staff with exyliagraves.admin.view teleport to anybody's grave from
/gravesadmin list, free, whether teleporting is on or not and whether they
are in combat or not.
Something missing on this page? Tell us on Discord