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.
Commands
/netevents [reload|tryconnect|ping|debug]
Permission:netevents.status
No arguments
: prints status reportreload
: Reloads config and reconnects to serverstryconnect
: Retries connecting to any servers that could not be accessedping
: 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
what is "passphrase" set and no work
how to use it?please tell me
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
Shit's broke, yo.
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)?
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.
How Do Enable Netevents I need It For PermissionsEx ? Please help!
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:
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
I'm going for the "master-slave" layout from the wiki page. So I set:
All of my servers, when starting up, throw a bunch of
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?
When restarting or reloading NetEvents tells me:
How do I remove this message? And can I monitor what the server send each other somehow?
After doing some testing, I would get connection errors using ports other than the actual server ports.
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?