2022-07-16 12:50:09 +00:00
|
|
|
package com.imaginarycode.minecraft.redisbungee.api;
|
2022-04-14 11:59:02 +00:00
|
|
|
|
2022-07-20 08:32:04 +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 {
|
|
|
|
|
2022-07-20 08:32:04 +00:00
|
|
|
Object createPlayerChangedNetworkEvent(UUID uuid, String previousServer, String server);
|
|
|
|
|
|
|
|
Object createPlayerJoinedNetworkEvent(UUID uuid);
|
2022-04-14 11:59:02 +00:00
|
|
|
|
2022-07-20 08:32:04 +00:00
|
|
|
Object createPlayerLeftNetworkEvent(UUID uuid);
|
2022-04-14 11:59:02 +00:00
|
|
|
|
2022-07-20 08:32:04 +00:00
|
|
|
Object createPubSubEvent(String channel, String message);
|
2022-04-14 11:59:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
}
|