#1 Added permission node.

This commit is contained in:
Navoei
2023-03-31 20:06:53 -05:00
parent 3ad078c06d
commit 6732b02b58

View File

@@ -39,6 +39,11 @@ public class DownloadCommand extends SubCommand {
// /cd download url filename
// [0] [1] [2]
if (!player.hasPermission("customdiscs.download")) {
player.sendMessage(ChatColor.RED + "You do not have permission to execute this command!");
return;
}
if (args.length!=3) {
player.sendMessage(ChatColor.RED + "Invalid arguments! ( /customdisc download <url> <filename.extension> )");
return;