DeathChest.put(blockchest, inv); e.getDrops().clear(); p.getInventory().clear(); Variables.playing.remove(p); Variables.spectating.add(p); p.setDisplayName(ChatColor.translateAlternateColorCodes('&', Settings.cfg.getString("Prefix")) + "§7" + p.getName() + "§f"); p.setCustomName(ChatColor.translateAlternateColorCodes('&', Settings.cfg.getString("Prefix")) + "§7" + p.getName() + "§f"); p.setPlayerListName(ChatColor.translateAlternateColorCodes('&', Settings.cfg.getString("Prefix")) + "§7" + p.getName() + "§f"); p.setCustomNameVisible(true); p.setGameMode(GameMode.SURVIVAL); p.setAllowFlight(true); p.getInventory().clear(); ((CraftPlayer) p).getHandle().playerConnection .a(new PacketPlayInClientCommand(PacketPlayInClientCommand.EnumClientCommand.PERFORM_RESPAWN)); p.teleport(LocationCreator.getConfigLocation("Spawn.Spectator", Variables.cfg)); Scoreboard.setScoreboard(p); GameState.checkWinning(killer); for (Player all : Bukkit.getOnlinePlayers()) Scoreboard.setScoreboard(p); if (p.getKiller() != null) { GameState.checkWinning(killer); if (Variables.playing.size() == 1) { File file1 = StatsSystem.file; YamlConfiguration cfg1 = YamlConfiguration.loadConfiguration(file1); winner = p.getKiller().getName(); int wins = cfg1.getInt(winner + ".Points") + 1; cfg1.set(winner + ".Wins", wins);