Add config toggle to back command; add last tp to back command

This commit is contained in:
zontreck 2023-12-23 23:49:31 -07:00
parent a57d06d20a
commit 9fe614fde9
6 changed files with 33 additions and 0 deletions

View file

@ -79,6 +79,9 @@ public class AriasEssentials {
if(TeleportActioner.isBlacklistedDimension(event.getContainer().Dimension))
{
event.setCanceled(true);
} else {
if(AEServerConfig.BACK_ALLOWS_LAST_TP.get())
BackPositionCaches.Update(event.getContainer().PlayerInst.getUUID(), event.getContainer().world_pos);
}
}