1. Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.


    If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

Solved Can't connect to LilyPad-Connect

Discussion in 'Support' started by masons123456, Feb 24, 2014.

  1. masons123456

    masons123456 New Member

    Hello! I'm having issues with connecting to the Connect with the API.
    Code (text):

    c = getServer().getServicesManager().getRegistration(Connect.class).getProvider();
        if (c.isConnected()) {
           this.getLogger().info("Connected to LilyPad-Connect");
        } else {
           this.getLogger().warning("Couldn't connect to LilyPad-Connect! Disabling Plugin...");
           Bukkit.getPluginManager().disablePlugin(this);
           return;
        }
        }
    When the plugin is initially enabled, it outputs that it can't connect, but if I enable the plugin later on. It successfully connects and there aren't any issues. Thanks in advance!
    Last edited: Feb 24, 2014
  2. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    isConnected() will return false when the server first starts as LilyPad is asynchronous.

Share This Page