From 8e7eef84fe64d5b318eb927c4ea64974c03c664d Mon Sep 17 00:00:00 2001 From: KanekiLeChomeur <52374013+KanekiLeChomeur@users.noreply.github.com> Date: Mon, 13 Jun 2022 21:54:34 +0200 Subject: [PATCH] Patch error with undefined Key 0 in $args --- CustomAlerts/src/CustomAlerts/Commands/Commands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CustomAlerts/src/CustomAlerts/Commands/Commands.php b/CustomAlerts/src/CustomAlerts/Commands/Commands.php index 4311514..b0649c7 100755 --- a/CustomAlerts/src/CustomAlerts/Commands/Commands.php +++ b/CustomAlerts/src/CustomAlerts/Commands/Commands.php @@ -59,7 +59,7 @@ public function execute(CommandSender $sender, string $commandLabel, array $args } }else{ if($sender->hasPermission("customalerts")){ - $sender->sendMessage(TextFormat::colorize(CustomAlerts::PREFIX . "&cSubcommand &a" . $args[0] . " &cnot found. Use &a/calerts help &cto show available commands")); + $sender->sendMessage(TextFormat::colorize(CustomAlerts::PREFIX . "&cUse &a/calerts help &cto show available commands")); }else{ $sender->sendMessage(TextFormat::colorize("&cYou don't have permissions to use this command")); }