forked from BLOCKFANTASY/LOOHP-Limbo
Added ResourcePack related packets, along with sending and recieving them, and added PlayerResourcePackStatusEvent to simplify reading the incoming packets for plugins.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.loohp.limbo.events.player;
|
||||
|
||||
import com.loohp.limbo.player.Player;
|
||||
import com.loohp.limbo.server.packets.PacketPlayInResourcePackStatus.EnumResourcePackStatus;
|
||||
|
||||
public class PlayerResourcePackStatusEvent extends PlayerEvent {
|
||||
|
||||
private Player player;
|
||||
private EnumResourcePackStatus status;
|
||||
|
||||
public PlayerResourcePackStatusEvent(Player player, EnumResourcePackStatus status) {
|
||||
super(player);
|
||||
}
|
||||
|
||||
public Player getPlayer() {
|
||||
return player;
|
||||
}
|
||||
|
||||
public EnumResourcePackStatus getStatus() {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user