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


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


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


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


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


    I think best bet is PlayerToggleFlightEvent
  5. Offline


    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


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


    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