Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved PreLoginEvent

Comments in 'Plugin Development' started by CavinMiana, Oct 29, 2015.

  1. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    Hello,

    I just want to know if it's possible to cancel preloginevent if your transferring to another server. For example. When you transfer to another server it says "building terrain". Is there anywayi can cancel that?
    *Sounds like a dumb question but I just want a yes/no answer :)
  2. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
  3. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    Oh ok so if I do
    PHP:
    $event->setCancelled()
    // It will work?
  4. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    No, you forgot semicolon after this statement. After you fix this error it should.
  5. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    Sorry lol. Ok thx!
    (Thread solved)
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PlayerPreLoginEvent happens when player is locating server, before loading terrain.
  7. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    Ik lol

Share This Page

Advertisement