Advertisement
Guest User

Untitled

a guest
May 7th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.96 KB | None | 0 0
  1.  
  2.                 if(arenaClass.players.size() <= 6){
  3.  
  4.                         int locX = plugin.getConfig().getInt("ArenaLocation" + ".X");
  5.                         int locY = plugin.getConfig().getInt("ArenaLocation" + ".Y");
  6.                         int locZ = plugin.getConfig().getInt("ArenaLocation" + ".Z");
  7.                         int locYaw = plugin.getConfig().getInt("ArenaLocation" + ".Yaw");
  8.                         int locPitch = plugin.getConfig().getInt("ArenaLocation" + ".Pitch");
  9.                         Object locWorld = plugin.getConfig().get("ArenaLocation" + ".World");
  10.                                                
  11.                         player.teleport(new Location((World) locWorld, locX, locY, locZ, locPitch, locYaw));
  12.  
  13.                         arenaClass.players.add(player.getName());
  14.  
  15.                         }else{
  16.  
  17.                                 player.sendMessage(ChatColor.RED + "Game full, you must wait till the round ends");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement