Jump to content

java.lang.IllegalStateException: Asynchronous player kick!


TheRedCraft
 Share

Recommended Posts

hallo ich habe ein problem bei meinen plugin und bekomme diese fehlermeldung 

[12:46:49 WARN]: Exception in thread "Timer-57" 
[12:46:49 WARN]: java.lang.IllegalStateException: Asynchronous player kick!
[12:46:49 WARN]: 	at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:14)
[12:46:49 WARN]: 	at org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer.kickPlayer(CraftPlayer.java:214)
[12:46:49 WARN]: 	at de.n3yut9j.api.API.kickall(API.java:109)
[12:46:49 WARN]: 	at de.n3yut9j.api.API$1.run(API.java:79)
[12:46:49 WARN]: 	at java.util.TimerThread.mainLoop(Timer.java:555)
[12:46:49 WARN]: 	at java.util.TimerThread.run(Timer.java:505)

wass soll ich dagegen machen hier der code:

//Zeile 109
public static void kickall(String grund){
		for(Player all : Bukkit.getOnlinePlayers()){
			all.kickPlayer(grund);
		}
	}
//zeile 79
kickall("§cDer Server Reloadet bitte Rejoin in 20 sek \n §bDein Server Team"); /*<- Dieser befehl ist in einen zimer der so aussied*/
                                                                                    
//timer
			Timer rltimer = new Timer();
			rltimer.schedule(new TimerTask() {
				int timerrl = 10;
				@Override
				public void run() {
                                                                                    
                                                                                    
                }                                                                    
                                                                                  
          }, 0, 1000);
                                                                                    

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...
B
B