Solved Unable to toggle flight when joining the server

Discussion in 'Plugin Development' started by OLEGSHA, Nov 23, 2014.

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

    OLEGSHA

    Hello everyone,

    I'm having a problem with my plugin. When a player joins the server I want to switch flight mode on, but I can't. For some reason same happens when I change the gamemode, but works fine in rest of the cases.
    I don't know what the problem is, so can anybody tell me what could it be? Actully, I guess it could be Essentials causing trouble.

    List of plugins installed:
    ChatManagerPlus, AutoMessage, PcColoredSigns, WorldEdit, NCP, CMessage, PonyPlugin (the problem's here), PermissionsBukkit, iDisguise, Vault, DeathMessages, CustomLogin, Jail, WorldGuard, Essentials, EssentialsSpawn, EssentialsChat, AuthMe.

    Anyway, thanks!
     
  2. Offline

    Skionz

    OLEGSHA I have had issues with something like this before. Try setting a second delay and then enable flying.
     
  3. Offline

    OLEGSHA

    But I don't do it with this.wait(1000), right? At least throws exceptions to me
     
  4. Offline

    Skionz

    OLEGSHA Never do that on the main thread. Use a delayed task.
     
Thread Status:
Not open for further replies.

Share This Page