Registered a packet channel so that the plugin can message bungeecord

This commit is contained in:
sekwah41 2013-11-02 16:45:10 +00:00
parent 74e1fcf484
commit 561db2f925
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,9 @@ public class AdvancedPortalsPlugin extends JavaPlugin {
public void onEnable() {
// Opens a channel that messages bungeeCord
this.getServer().getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
// thanks to the new config accessor code the config.saveDefaultConfig(); will now
// only copy the file if it doesnt exist!
ConfigAccessor config = new ConfigAccessor(this, "Config.yml");