mirror of
https://github.com/SunNetservers/MiniGames.git
synced 2025-07-01 13:44:44 +02:00
Adds skeleton classes for the three group commands
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user