mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-27 09:42:26 +01:00
Registered a packet channel so that the plugin can message bungeecord
This commit is contained in:
parent
74e1fcf484
commit
561db2f925
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user