This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
api/src/test/java/fr/atlasworld/network/api/test/listener/NetworkServerEventListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package fr.atlasworld.network.api.test.listener; | ||
|
||
import fr.atlasworld.network.api.event.EventHandler; | ||
import fr.atlasworld.network.api.event.EventListener; | ||
import fr.atlasworld.network.api.server.event.ServerInstallationCompletedEvent; | ||
import fr.atlasworld.network.api.server.event.ServerStateChangedEvent; | ||
import fr.atlasworld.network.api.test.TestModule; | ||
|
||
public class NetworkServerEventListener implements EventListener { | ||
@EventHandler | ||
private void onServerStatusChanged(ServerStateChangedEvent event) { | ||
TestModule.LOGGER.info("{} changed status from {} to {}.", event.getServer().getUserReadableName(), event.oldStatus(), event.newStatus()); | ||
} | ||
|
||
@EventHandler | ||
private void onServerInstallComplete(ServerInstallationCompletedEvent event) { | ||
TestModule.LOGGER.info("{} has finished installation.", event.getServer().getUserReadableName()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters