fix nullpointer spawn
This commit is contained in:
		
							parent
							
								
									b1fb09b753
								
							
						
					
					
						commit
						87570b4061
					
				|  | @ -59,9 +59,11 @@ public class Example extends JavaPlugin implements Listener, CommandExecutor { | ||||||
|        } |        } | ||||||
| 
 | 
 | ||||||
|        // teleport player in a few seconds to spawn |        // teleport player in a few seconds to spawn | ||||||
|  |        if (player.getKingdom()  != null ) { | ||||||
|             UltimateKingdom.getKingdomServer().TeleportManager().TelePortPlayer(player.getPlayer(), player.getKingdom().getSpawn(), |             UltimateKingdom.getKingdomServer().TeleportManager().TelePortPlayer(player.getPlayer(), player.getKingdom().getSpawn(), | ||||||
|                 "Kingdom Spawn"); |                 "Kingdom Spawn"); | ||||||
|        } |        } | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user