Type mismatch: cannot convert from element type Object to Player
<p>Here is the code. Not sure whats wrong. Happens at the line that says</p>

<pre class="lang-java prettyprint-override"><code>for (Player players : World.getPlayers()) {
    if (cmd[0].equalsIgnoreCase("ticket")) {
        if (player.getRights() &gt; 0) {
            if (World.getTicketList().size() == 0) {
                player.getPackets().sendGameMessage("No one needs help so sit back and relax.");
                return true;
            }
            String username = World.getTicketList().get(0).toString();
            Player p2 = World.getPlayer(username);
            player.setNextWorldTile(p2);
            p2.getPackets().sendGameMessage("Please ask your question to " + Misc.formatPlayerNameForDisplay(player.getUsername()) + ".");
            World.remoteTicket(username.toLowerCase());
            return true;
        }
        if (World.getTicketList().contains(player.getUsername().toLowerCase())) {
            player.getPackets().sendGameMessage("You already submitted a ticket.", true);
            return true;
        }
        World.addToTicket(player.getUsername());
        player.getPackets().sendGameMessage("Your ticket has been submitted. Your ticket number is " + World.getTicketId(player.getUsername()) + 1 + ".");
        player.getPackets().sendGameMessage("Make sure that you are not in a PvP area..");
        String username = World.getTicketList().get(0).toString();
        for (Player players : World.getPlayers()) {
            if (player.getRights() &gt; 0) {
                players.getPackets().sendGameMessage(Misc.formatPlayerNameForDisplay(player.getUsername()) + " has issued a assistance request.", true);
            }
        }
        return true;
    }
}
</code></pre>

<p>EDIT:</p>

<p>Here is the code for getPlayers</p>

<pre class="lang-java prettyprint-override"><code>public static final EntityList getPlayers() {
    return players;
}
</code></pre>
