Make Player flying?! (Gamemode)

Discussion in 'Plugin Development' started by Baba43, May 12, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Baba43

    Hey, I want to activate the flying after I set someone into creative mode because I want to prevent him from falling down..
    I tried p.setFlying but it doesnt work.. any suggestions?
     
  2. Offline

    wouter0100

    Code:java
    1. player.setFlying(true);

    Must work..
     
  3. Offline

    geekygenius

    I'd need to experiment, but flying disables when you touch the ground. If you call setFlying() while the player is on the ground, that might be problematic. Teleport them a half block up first if this is a problem.
     
Thread Status:
Not open for further replies.

Share This Page