Event bus security

This is literally the first Java code I've ever written, so please let me know if there's anything stylistic you'd like cleaned up.