Hot Summer Deals are Here!
Celebrate with up to 99% off on 17,700 resources
01
Days
06
Hours
24
Mins
12
Secs

Some help

Status
This thread has been locked.

Marck_Feet

Banned
Feedback score
0
Posts
201
Reactions
41
Resources
0
Does anyone knows how do I change this ArrayList to a Collection?

ArrayList<Player> players = new ArrayList<>(plugin.getServer().getOnlinePlayers()); // here I got the problem (getOnlinePlayers() is deprecated)
for (Player player : players) {
// Si hay posibilidad de pelea
if (player.getDisplayName().contains(args[0])) {
// Si la pelea es con el mismo jugador que esta buscando
if (player == challenger) {
challenger.sendMessage(ChatColor.RED + "No te puedes enviar un duelo a ti mismo!!");
return true;

I knew it had changed but I dont know how to fix it. Anyone can help?
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Blowns

Premium
Feedback score
1
Posts
1,014
Reactions
526
Resources
0
Oh god, stop trying to make plugins when you don't know what you're doing
 

Marck_Feet

Banned
Feedback score
0
Posts
201
Reactions
41
Resources
0
money whore
 
Banned forever. Reason: Creating Multiple Account (Matth, https://builtbybit.com/members/matth.17077/)
Status
This thread has been locked.
Top