Skip to content

Commit

Permalink
Patch error with undefined Key 0 in $args
Browse files Browse the repository at this point in the history
  • Loading branch information
KanekiLeChomeur authored Jun 13, 2022
1 parent 98a2769 commit 8e7eef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CustomAlerts/src/CustomAlerts/Commands/Commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand Down

0 comments on commit 8e7eef8

Please sign in to comment.