How can i make player enable to fly in survival mode?


#1

Hello
I’m writing a plugin for sponge vanilla server
How can i make player enable to fly in survival mode?
Flying by double space key i mean


#2
player.offer(Keys.CAN_FLY, true);