mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2025-07-11 23:38:03 +00:00
fixed bug where PlayerNetoworkJoin is not fireing, and also fixed wrong arguments being passed on server change network event, Moved Payload creation to it own Util class, Remove player creation from RedisUtils class and move it to GenericPlayerUtils, and also renamed Bungeecord/Velocity Player Util classes to <PLATFORM>PlayerUtils.java, removed the use of reflection to create event instances
24 lines
556 B
Java
24 lines
556 B
Java
package com.imaginarycode.minecraft.redisbungee.api;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* 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);
|
|
|
|
Object createPlayerLeftNetworkEvent(UUID uuid);
|
|
|
|
Object createPubSubEvent(String channel, String message);
|
|
|
|
|
|
}
|