Dispatch Command after Join

Discussion in 'BungeeCord Plugin Development' started by MisterErwin, May 11, 2013.

  1. Hello together,

    how can I dispatch a command for a player on a server, after the player has joined the server?
    Code (Text):
    @Subscribe
    public void onPlayerJoinServer(ServerConnectedEvent event){
          event.getPlayer().chat("/mycmd");
     
    The code works, but the player dispatchs the command on the server, he was before.
    (e.g. I'm online on A and do /server B , I'll "dispatch" the command on A)

    Is there any other event?

    Thanks,
    MisterErwin
     
  2. md_5

    Administrator Developer

    Added ServerSwitchEvent just now to latest build, use it instead.
     
    • Like Like x 1
  3. Ok... Thank you ;)
     
  4. Hey, my Server Need Devoloper! Do you want to help me ??? Please!More Information: Contact [email protected]!
    Thank you!
     
  5. joehot200

    Supporter

    Please stop spamming the forums. Instead, make your own thread. This is the third time now.
     
    • Agree Agree x 2
    • Funny Funny x 1