mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
Refactored GlobalEventBus
This commit is contained in:
23
src/main/java/org/toop/eventbus/Events.java
Normal file
23
src/main/java/org/toop/eventbus/Events.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package org.toop.eventbus;
|
||||
|
||||
import org.toop.server.Server;
|
||||
|
||||
/**
|
||||
* Events that are used in the GlobalEventBus class.
|
||||
*/
|
||||
public class Events {
|
||||
|
||||
public static class ServerEvents {
|
||||
/**
|
||||
* Triggers when a command is sent to a server.
|
||||
*/
|
||||
public record OnCommand(Server.Command command, String[] args, Server.Message result) {}
|
||||
|
||||
/**
|
||||
* Triggers on changing the server backend.
|
||||
*/
|
||||
public record OnChangingServerBackend(Server.ServerBackend backend) {}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user