mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-16 07:14:58 +01:00
(misc:GiveAllCommand.java) Add feedback for missing arguments
This commit is contained in:
@@ -30,6 +30,7 @@ public class GiveAllCommand implements CommandHandler {
|
|||||||
String type = args.get(0).toLowerCase();
|
String type = args.get(0).toLowerCase();
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
default -> this.sendMessage(sender, "Error: Invalid type");
|
||||||
case "m", "materials", "mats" -> {
|
case "m", "materials", "mats" -> {
|
||||||
List<GameItem> items = new ArrayList<>();
|
List<GameItem> items = new ArrayList<>();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user