Refactor bootstrap procedure, use enum for command loading

This commit is contained in:
William committed 2022-08-09 14:18:48 +01:00
1 parent eff21a16d5
commit ec1c0b744f
42 files changed
+982 -718

No files matched your search

@@ -1,6 +1,6 @@
package net.william278.huskhomes.command;
import net.william278.huskhomes.player.Player;
import net.william278.huskhomes.player.OnlineUser;
import org.jetbrains.annotations.NotNull;
import java.util.List;
@@ -13,10 +13,10 @@ public interface TabCompletable {
/**
* What should be returned when the player attempts to TAB-complete the command
*
* @param player {@link Player} doing the TAB completion
* @param onlineUser {@link OnlineUser} doing the TAB completion
* @param args Current command arguments
* @return List of String arguments to offer TAB suggestions
*/
List<String> onTabComplete(@NotNull Player player, @NotNull String[] args);
List<String> onTabComplete(@NotNull OnlineUser onlineUser, @NotNull String[] args);
}