What is the code to reload to plugin?

Discussion in 'Plugin Development' started by oran10majar, Nov 19, 2013.

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

    oran10majar

    Hello, What is the code to reload the plugin?

    In the title to = the
     
  2. Offline

    AtomSponge

    In your main pluginclass:
    Code:java
    1. getServer().getPluginManager().disablePlugin(this);
    2. getServer().getPluginManager().enablePlugin(this);


    If you want to reload the whole server, use:
    Code:java
    1. getServer().reload();
     
Thread Status:
Not open for further replies.

Share This Page