@Override
public void onDebug(String message) {
DebugEvent.fire(player, DebugEvent.MessageType.Info, message);
}
};
player.addPlayerStateHandler(new PlayerStateHandler() {
@Override
public void onPlayerStateChanged(PlayerStateEvent event) {
switch (event.getPlayerState()) {
case Ready: