Skip to content

Commit

Permalink
fix rejoin
Browse files Browse the repository at this point in the history
  • Loading branch information
matsu1213 committed Jul 27, 2024
1 parent 69a9b42 commit 8d0b0ae
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ public void sendQuickMessage(PlayerJoinEvent e) {
//LeonGunWar.getQuickBar().send(e.getPlayer());
if(!LeonGunWar.getPlugin().getMainConfig().isLobby){
if(LeonGunWar.getPlugin().getManager().isMatching()){
LeonGunWar.getPlugin().getManager().addPlayerIntoBattle(e.getPlayer());
Bukkit.getScheduler().runTaskLater(LeonGunWar.getPlugin(), new Runnable() {
@Override
public void run() {
LeonGunWar.getPlugin().getManager().addPlayerIntoBattle(e.getPlayer());
}
}, 5L);

}else {
LeonGunWar.getPlugin().getManager().addEntryPlayer(e.getPlayer());
}
Expand Down

0 comments on commit 8d0b0ae

Please sign in to comment.