Hi. I'm fairly new to Java. Anyway, I have written code which makes you invisible after you die, now what I want it to do is, after two minutes make you back visible... I used this code to make dead player invisible. Code:java for (Player players : Bukkit.getOnlinePlayers()){players.hidePlayer(p);} Help appreciated. Thanks.
could you show us the rest of the method eg. the player death event listener so i can help more, here is an example of the scheduler running a task. Code:java this.getServer().getScheduler().runTaskLater(this, new Runnable(){ @override public void run(){ //code here to make player visible } }, 20*20L); that should run the task 2 mins after it is called to be scheduled. hope this helps! You will probobly need to pass in the player or the player name to the task so that you know what player to unvanish