RedisBungee/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/EventsPlatform.java

24 lines
556 B
Java
Raw Normal View History

2022-07-16 12:50:09 +00:00
package com.imaginarycode.minecraft.redisbungee.api;
2022-04-14 11:59:02 +00:00
import java.util.UUID;
2022-04-14 11:59:02 +00:00
/**
* Since each platform have their own events' implementation for example Bungeecord events extends Event while velocity don't
*
* @author Ham1255
* @since 0.7.0
*
*/
public interface EventsPlatform {
Object createPlayerChangedNetworkEvent(UUID uuid, String previousServer, String server);
Object createPlayerJoinedNetworkEvent(UUID uuid);
2022-04-14 11:59:02 +00:00
Object createPlayerLeftNetworkEvent(UUID uuid);
2022-04-14 11:59:02 +00:00
Object createPubSubEvent(String channel, String message);
2022-04-14 11:59:02 +00:00
}