From 561db2f925fbc0d6b14e15f97859346bc5ded71a Mon Sep 17 00:00:00 2001 From: sekwah41 Date: Sat, 2 Nov 2013 16:45:10 +0000 Subject: [PATCH] Registered a packet channel so that the plugin can message bungeecord --- .../src/com/sekwah/advancedportals/AdvancedPortalsPlugin.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Advanced Portals/src/com/sekwah/advancedportals/AdvancedPortalsPlugin.java b/Advanced Portals/src/com/sekwah/advancedportals/AdvancedPortalsPlugin.java index a3f7abb..044a5fb 100644 --- a/Advanced Portals/src/com/sekwah/advancedportals/AdvancedPortalsPlugin.java +++ b/Advanced Portals/src/com/sekwah/advancedportals/AdvancedPortalsPlugin.java @@ -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");