Adds skeleton classes for the three group commands

This commit is contained in:
2023-03-30 20:24:47 +02:00
parent f9008ca050
commit c29fcdc166
5 changed files with 111 additions and 18 deletions

View File

@ -0,0 +1,19 @@
package net.knarcraft.dropper.command;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;
public class GroupListCommand implements CommandExecutor {
@Override
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s,
@NotNull String[] arguments) {
// TODO: Display all groups if no argument is specified.
// TODO: If a group is set and it exists, list all arenas in the correct order, and numbered (the order denotes
// the order players need to complete the arenas in)
return false;
}
}

View File

@ -0,0 +1,21 @@
package net.knarcraft.dropper.command;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;
public class GroupSetCommand implements CommandExecutor {
@Override
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s,
@NotNull String[] arguments) {
// TODO: Check if the given group is valid
// TODO: Try and get the group from ArenaHandler.getGroup
// TODO: Create a new group if not found
// TODO: Set the group of the arena
// TODO: Announce success
return false;
}
}

View File

@ -0,0 +1,20 @@
package net.knarcraft.dropper.command;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;
public class GroupSwapCommand implements CommandExecutor {
@Override
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s,
@NotNull String[] arguments) {
// TODO: Make sure the two arenas exist
// TODO: Make sure the two arenas belong to the same group
// TODO: Swap the order of the two groups
// TODO: Announce success
return false;
}
}