#Bedwars plugin help

1 messages · Page 1 of 1 (latest)

hollow violet
#

this should lead to my code

#

Please help me

#

Im trying to create a Bedwars plugin

#

I always get an error on "start" at "public class start implements CommandExecutor {", @Override and at "onCommand" when I Insert:

public Deque<Player> createRandomOnlinePlayerQueue() {
List<Player> list = new ArrayList<>(Bukkit.getOnlinePlayers());
Collections.shuffle(list);
return new ArrayDeque<>(list);

leaden rune
#

what error?

#

send the full stack trace please

hollow violet
#

I think it just doesn't find the unimplementet methods correctly, but I dont know how to fix this

leaden rune
#

send the error please.

hollow violet
#

start: The type start must implement the inherited abstract method CommandExecutor.onCommand(CommandSender, Command, String, String[])

#

@Override: The annotation @Override is disallowed for this location

hollow violet
#

onCommand: Illegal modifier for parameter onCommand; only final is permitted

hollow violet
#

pretty much at the end of the code

leaden rune
hollow violet
#

yeah, sorry

#

I fixed it

#

Oh, I haven't fixed it, it creates a new link

#

But the code in this link doesn't give any errors