package com.herocc.bukkit.core.commands;

import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;

import com.herocc.bukkit.core.Core;

public class CommandFakeblock implements CommandExecutor {
  private final Core plugin = Core.getPlugin();
  
  public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
    if (cmd.getName().equalsIgnoreCase("fakeblock")) {
    sender.sendMessage("Testing..");
  }

}

@@ -35,16 +35,44 @@
 mands;%0A%0A
+import org.bukkit.Material;%0A
 import o
@@ -98,16 +98,16 @@
 ommand;%0A
-
 import o
@@ -181,16 +181,49 @@
 dSender;
+%0Aimport org.bukkit.entity.Player;
 %0A%0Aimport
@@ -253,16 +253,55 @@
 .Core;%0A%0A
+import net.md_5.bungee.api.ChatColor;%0A%0A
 public c
@@ -351,18 +351,17 @@
 cutor %7B%0A
-  
+%09
 private 
@@ -402,13 +402,55 @@
 ();%0A
-  %0A  
+%0A%09@SuppressWarnings(%22deprecation%22)%0A%09@Override%0A%09
 publ
@@ -535,17 +535,14 @@
  arg
-s
 ) %7B%0A
-    
+%09%09
 if (
@@ -592,47 +592,396 @@
 ) %7B%0A
-    sender.sendMessage(%22Testing..%22);%0A  
+%09        if (sender.hasPermission(%22core.head.get%22)) %7B%0A%09        %09Player player = (Player) sender;%0A%09        %09player.sendBlockChange(player.getLocation(), Material.WOOL, (byte) 0);%0A%09        %09sender.sendMessage(%22The block has changed!%22);%0A%09        %7D else %7B%0A%09        %09sender.sendMessage(ChatColor.RED + %22Sorry, You do not have permission to use this command!%22);%0A%09        %7D%0A%09%09%7D%0A%09%09return false;%0A%09
 %7D%0A%0A%7D

Add more functions to this command.