SpongePowered/Royale

Lobby World Handling

Closed this issue · 3 comments

The following need to happen for Lobby. Only affects people becoming registered players or are already registered.

Other world -> Lobby

  • The following only affects people without the admin perm. special.admin
  • Set player to Adventure
  • Set player CAN_FLY to true

Instance -> Lobby

  • Clear inventory
  • Heal player health to full
  • Heal player hunger to full
  • Heal player hunger saturation to full
  • Reset potion effects to none
  • Set player to Adventure
  • Set player CAN_FLY to true

Lobby -> Instance

  • Clear inventory
  • Heal player health to full
  • Heal player hunger to full
  • Heal player hunger saturation to full
  • Remove player potion effects
  • Set player to Survival
  • Set player CAN_FLY to false

Other world -> Instance

  • Clear inventory
  • Heal player health to full
  • Heal player hunger to full
  • Heal player hunger saturation to full
  • Remove player potion effects
  • Set player to Survival
  • Set player CAN_FLY to false

Implemented in 4320c00.

Missed a few things, reopening this.

Re-Closing as @Aaron1011 covered this as well.