This commit is contained in:
ayunami2000 2022-04-21 19:49:34 -04:00
parent e219717db6
commit e2bd6401ae
2 changed files with 5 additions and 3 deletions

View File

@ -89,9 +89,11 @@ public class Main extends JavaPlugin implements CommandExecutor, Listener {
@EventHandler
public void onPlayerJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();
videoMapCodec.beginPlaybackBukkit(videoMapCodec.getURL(), videoMapCodec.isLoopEnable(), videoMapCodec.getDuration()).send(player);
syncToPlayer(player);
if (videoMapCodec != null && videoMapCodec.getURL() != null) {
Player player = event.getPlayer();
videoMapCodec.beginPlaybackBukkit(videoMapCodec.getURL(), videoMapCodec.isLoopEnable(), videoMapCodec.getDuration()).send(player);
syncToPlayer(player);
}
}
@Override