Searching for Flying-is-not-enabled-Method

Discussion in 'Plugin Development' started by YellowPhoenix18, Jan 19, 2015.

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

    YellowPhoenix18

    Hello guys, today im searching for a method to get the Bukkit-Flying-is-not-enabled-Method.
    Hopefully someone of you can help me.

    YellowPhoenix18

    P.S.: sry for my bad english ;)
     
  2. Offline

    WinX64

    The one to check if flying is enabled on the server? If that's what you mean, Server#getAllowFlight
     
  3. Offline

    YellowPhoenix18

    No,i mean, a method like an Event.If a player is flying,than i can kick him with a specified message
     
  4. Offline

    xize

    I think best bet is PlayerToggleFlightEvent
     
  5. Offline

    YellowPhoenix18

    Ok,hmm this Method ist only called,when bukkit get player.isFlying, but i need this method to detec Hackers ;)
     
    Last edited: Jan 19, 2015
  6. Offline

    Zandor300

    Check PlayerKickEvent and check if the kickReason is "Flying is not enabled on this server" maybe?
     
  7. Offline

    1Rogue

    If there was an event to detect hackers then there probably wouldn't be any in the first place. You need to manually determine these things yourself using math and location changes.
     
Thread Status:
Not open for further replies.

Share This Page