delaying return to hub
This commit is contained in:
parent
a7ceb24b15
commit
961163c135
@ -5,6 +5,7 @@ import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Difficulty;
|
||||
import org.bukkit.Location;
|
||||
@ -1144,7 +1145,7 @@ public class UHC extends TeamGame
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void playerJoinable(PlayerJoinEvent event)
|
||||
public void playerJoinable(final PlayerJoinEvent event)
|
||||
{
|
||||
if (!_joinable || GetState() != GameState.Recruit)
|
||||
{
|
||||
@ -1153,7 +1154,16 @@ public class UHC extends TeamGame
|
||||
UtilPlayer.message(event.getPlayer(), " ");
|
||||
|
||||
event.getPlayer().playSound(event.getPlayer().getLocation(), Sound.ENDERDRAGON_GROWL, 10f, 1f);
|
||||
Manager.GetPortal().SendPlayerToServer(event.getPlayer(), "Lobby");
|
||||
|
||||
Bukkit.getScheduler().runTaskLater(Manager.GetPlugin(), new Runnable()
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
Manager.GetPortal().SendPlayerToServer(event.getPlayer(), "Lobby");
|
||||
}
|
||||
|
||||
} , 5);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user