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
Check out the [ClassTransform](https://github.com/Lenni0451/ClassTransform/#usage) documentation for more information on how to use class transformers.
65
+
55
66
### Events
56
67
The only real way to interact with ViaProxy is through events.\
57
68
ViaProxy uses [LambdaEvents](https://github.com/Lenni0451/LambdaEvents) for event handling.\
@@ -60,9 +71,11 @@ You can register a listener using the ``register()`` method in the ``PluginManag
60
71
PluginManager.EVENT_MANAGER.register(this);
61
72
````
62
73
63
-
ViaProxy currently has 15 events:
74
+
ViaProxy currently (at the time of writing) has the following events:
64
75
- Client2ProxyChannelInitializeEvent
65
76
- Client2ProxyHandlerCreationEvent
77
+
- ClientLoggedInEvent
78
+
- ConnectEvent
66
79
- ConsoleCommandEvent
67
80
- FillPlayerDataEvent
68
81
- GetDefaultPortEvent
@@ -77,8 +90,7 @@ ViaProxy currently has 15 events:
77
90
- ResolveSrvEvent
78
91
- ViaLoadingEvent
79
92
80
-
The events ``Client2ProxyChannelInitializeEvent`` and ``Proxy2ServerChannelInitializeEvent`` both have ``PRE`` and ``POST`` states.\
81
-
Some events can be cancelled using the ``setCancelled()`` method.
93
+
Some events have pre- and post-states and some events are cancellable.
82
94
83
95
To listen to an event you have to add the ``@EventHandler`` annotation to the handler method and put the event as the only parameter:
0 commit comments