Added velocity data listener

This commit is contained in:
Auxilor
2021-11-05 14:30:43 +00:00
parent 43d2835087
commit 1bae159f94
7 changed files with 62 additions and 25 deletions

View File

@@ -58,6 +58,14 @@ public class Prerequisite {
"Requires server to be running BungeeCord (or a fork)"
);
/**
* Requires the server to be running an implementation of Velocity.
*/
public static final Prerequisite HAS_VELOCITY = new Prerequisite(
() -> ClassUtils.exists("com.velocitypowered.api.event.player.ServerConnectedEvent"),
"Requires server to be running Velocity (or a fork)"
);
/**
* If the necessary prerequisite condition has been met.
*/