Possible to run plugin on both BungeeCord and Spigot?

Discussion in 'Spigot Plugin Development' started by Simo389, May 8, 2015.

  1. So I have a Spigot plugin which does various HTTP requests to a server. It doesn't use any listeners/commands or anything like that. It just extends JavaPlugin, has onEnable() and onDisable() and provides several public methods that can be used by other plugins.

    Is it possible to modify this to run on both Spigot and BungeeCord? As it uses no Bukkit methods I'm guessing it is. Anyone have any ideas how on earth how? :p
     
  2. Have both a bungee.yml and plugin.yml file in the plugin's root directory, bungeecord tries to look for the bungee.yml file before it looks for the plugin.yml file (as seen here).
     
    #2 hamzaxx, May 8, 2015
    Last edited: May 8, 2015
    • Useful Useful x 2
    • Like Like x 1
    • Agree Agree x 1
  3. You can use 'bungee.yml' for BungeeCord and 'plugin.yml' for Bukkit. BungeeCord checks for the 'bungee.yml' file first before resorting to using the 'plugin.yml' file.
     
    • Like Like x 1