You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HelightDev edited this page Sep 2, 2019
·
2 revisions
Setup
To register a listener or to publish Message in the first place, you have to construct a MessagePerson using a person. After that you can access Methods like
addListener(Class, Listener)
Registers a listener for all "Packets" which are instances of Class which won't be unregistered, after the player has quit the specific server
addListenerTemp(Class, Listener)
Registers a listener for all "Packets" which are instances of Class which will be unregistered, after the player has quit the specific server
publish(Object)
Publishes a Object/"Packet" to all PerNotia instances, including itself