mirror of
https://github.com/SPAWNRYS-ban/FUCK-CustomDiscs.git
synced 2026-01-30 08:39:38 +05:00
#1 Added permission node.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user