CivClassic / ExilePearl

For when you really just don't want that dude HERE but don't care if he plays - Paper plugin built for 1.16.5 Minecraft - Anti-grief tool built for players, not mods.
MIT License
0 stars 18 forks source link

Add config option to not teleport on free #18

Closed Lazersmoke closed 6 years ago

Lazersmoke commented 6 years ago

This was in prison pearl, but was lost in the switch to exile pearl. Related: CivClassic/Configs#22

TealNerd commented 6 years ago

this will keep the players in the end, move the check to where it actually teleports players

Lazersmoke commented 6 years ago

Yeah, that's the intent, and how it worked with prison pearl. You take the end portal out or die and it respawns you as normal. It also prevents your inventory from getting dropped.

Do you want it like this:

if(pearl.getPearlType() == PearlType.PRISON) {
  dropInventory(player);
  if(pearlApi.getPearlConfig().getShouldFreeTeleport() && (reason == PearlFreeReason.FREED_BY_PLAYER || reason == PearlFreeReason.PEARL_THROWN)) {
    player.teleport(pearl.getLocation().add(0, 0.5, 0));
  } else {
    SpawnUtil.spawnPlayer(player);
  }
}

So you get random spawned instead of teleported to your imprisoner?

Lazersmoke commented 6 years ago

@TealNerd