Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.07 KB | None | 0 0
  1.     private LanaAzul lanaa;
  2.     private LanaRoja lanar;
  3.     public static boolean LanaAzul = true;
  4.     SettingsManager settings = SettingsManager.getInstance();
  5.    
  6.     @EventHandler
  7.     public void onEntityDeath(PlayerRespawnEvent e){
  8.         Player p = e.getPlayer();
  9.     if(LanaAzul = true) {
  10.            
  11.             World wr = Bukkit.getServer().getWorld(settings.getData().getString("spawns.blue.world"));
  12.             double xr = settings.getData().getDouble("spawns.blue.x");
  13.             double yr = settings.getData().getDouble("spawns.blue.y");
  14.             double zr = settings.getData().getDouble("spawns.blue.z");
  15.            
  16.             p.teleport(new Location(wr, xr, yr, zr));
  17.           } else if(LanaAzul != true) {
  18.              
  19.               World wr = Bukkit.getServer().getWorld(settings.getData().getString("spawns.lobby.world"));
  20.                 double xr = settings.getData().getDouble("spawns.lobby.x");
  21.                 double yr = settings.getData().getDouble("spawns.lobby.y");
  22.                 double zr = settings.getData().getDouble("spawns.lobby.z");
  23.                
  24.                 p.teleport(new Location(wr, xr, yr, zr));
  25.              
  26.           }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement