NetEvents

NetEvents is the next generation in inter-server interaction. It provides a simple interface for plugins to pass events over an entire network of servers while hiding the complexities of networking. While other plugins focus on making the multiserver experience seamless for players, NetEvents makes the multiserver experience seamless for plugins.

Server admins

You're most likely here because a plugin you're using can be improved with NetEvents. If not, remember that NetEvents is designed to help other plugins, not work on its own.

NetEvents can be configured to match pretty much any server network. Some examples are shown here

Plugin developers

NetEvents provides all the facilities needed to make inter-server events easy. See the wiki page for basic API information. NetEvents is available in Maven and licensed under Apache 2.0 -- see the previously linked page for info.

Source - Javadoc

Commands

  • /netevents [reload|tryconnect|ping|debug]
    Permission: netevents.status
    No arguments: prints status report
    reload: Reloads config and reconnects to servers
    tryconnect: Retries connecting to any servers that could not be accessed
    ping: Send a ping event to all connected servers (Prints message to server log)
    debug: Toggle debug logging

Plugins using NetEvents

  • PermissionsEx as of v1.21

You must login to post a comment. Don't have an account? Register to get one!

  • 10 comments
  • Avatar of fr233 fr233 Jun 19, 2015 at 07:47 UTC - 0 likes

    how to use it?please tell me

  • Avatar of DaddyEric2 DaddyEric2 Nov 06, 2014 at 01:29 UTC - 0 likes

    I am pretty certain that this is going to be configured like this.

    # The address to listen on
    listen-at: 0.0.0.0:25566 < Use different Port for each server or diff IP's for each server
    # A list of servers that events will be passed on to.
    forward-to:
       # - mc.daddyeric.com:2566 #Lobby server  NOTE how this is commented out for the matching port up top
        - mc.daddyeric.com:2567 #main server
       -  mc.daddyaric.com:2568 #kitpvp server

     # Passphrase to use for encryption
    passphrase: changeme < must be changed and match each server that you have netevents on
     Tips: if you are using bungee and i would hope that you are!  use different IP's for each server if necessary if you are running cross hosting server IP then change the IP addresses as necessary in the forward to

    Last edited Nov 06, 2014 by DaddyEric2
  • Avatar of BeastMC BeastMC Aug 11, 2014 at 09:00 UTC - 2 likes

    Shit's broke, yo.

  • Avatar of ColonelJdog ColonelJdog Jul 06, 2014 at 04:12 UTC - 0 likes

    Does anyone have a working example config(s) I could base mine off of?

    Also, is the address to listen-at your proxy server IP? Or is it the IP of the Bukkit server the plugin is currently on?

    And, are the ports the same ones used to connect to the servers (25565), or our rcon ports (25575 for me)?

    Last edited Jul 06, 2014 by ColonelJdog

    Owner, Ioncraft: Minecraft Server
    IP: play.ioncraft.org

    http://i.imgur.com/0J5rp94.png

  • Avatar of Absentee23 Absentee23 Jul 02, 2014 at 11:29 UTC - 1 like

    This plugin is such a pain to setup, or just isn't working. I can't tell which. I've tried both the connection schemes listed on examples. I can successfully get two servers connected, but woah, throw a third in there and it just can't handle it. The only difference is the port number. They are "already connected" despite /netevents showing they aren't... All three are running on the same machine, could that have something to do with it?

    And when I get those two connected and pinging eachother, a /netevents reload breaks it, saying they are already connected! Then I need to restart...

    Seems so unreliable and I'll be uninstalling it for now. Please document your plugins a bit better, though it SEEMS straightfoward, so either that or fix it. Tried current latest on bukkitdev, and the latest on jenkins.

    Last edited Jul 02, 2014 by Absentee23
  • Avatar of DJmodric55 DJmodric55 Jun 27, 2014 at 14:31 UTC - 0 likes

    How Do Enable Netevents I need It For PermissionsEx ? Please help!

  • Avatar of cheracc cheracc Jun 24, 2014 at 01:01 UTC - 0 likes

    I cannot make this work for the life of me. Could someone help me out? For simplicity's sake, lets say I have these servers:

    lobby on 25566
    creative on 25567
    survival on 25568
    

    I cannot set the "listen-at" to the same port as the server, or I get a "port is already in use" error. This leads me to believe each server needs its own unique port. So I did

    lobby listens at 24466
    creative listens at 24467
    survival listens at 24468
    

    I'm going for the "master-slave" layout from the wiki page. So I set:

    lobby forwards to 24467(creative) and 24468(survival)
    creative forwards to 24466(lobby)
    survival forwards to 24466(lobby)
    

    All of my servers, when starting up, throw a bunch of

    [20:59:12 INFO]: [NetEvents] Disconnected from Forwarder{conn=null, reconnectAddress=/127.0.0.1:24467}: This server already connected!
    

    And none of the servers show as connected when I do "netevents" in console

    Obviously I am doing something wrong, but I can't figure it out. Please help?

    Last edited Jun 24, 2014 by cheracc
  • Avatar of FabiUnne FabiUnne May 25, 2014 at 01:25 UTC - 0 likes

    When restarting or reloading NetEvents tells me:

    [NetEvents] Disconnected from Forwarder{conn=null, reconnectAddress=/127.0.0.1:25582}: This server already connected!
    

    How do I remove this message? And can I monitor what the server send each other somehow?

    Last edited May 25, 2014 by FabiUnne

    German Bukkit Server: Dirts4Free.de

  • Avatar of TheOneTrueBob TheOneTrueBob May 24, 2014 at 01:07 UTC - 0 likes

    After doing some testing, I would get connection errors using ports other than the actual server ports.

    I'm not a Bob-wanna-be. I am the one true Bob. There were no other Bob's before me.

  • Avatar of Melonking Melonking Apr 25, 2014 at 01:03 UTC - 0 likes

    Defiantly looks useful, I find the setup explanation for this a little confusing, are the ports supposed to be the same as the servers port? Or does this require a separate port to itself?

  • 10 comments

Facts

Date created
Jan 24, 2014
Categories
Last update
Mar 30, 2014
Development stage
Release
License
Apache License version 2.0
Curse link
NetEvents
Reverse relationships
1
Downloads
1,845
Recent file

Authors