package net.avatar.realms.spigot.commandsign;

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

public class CommandSignCommands implements CommandExecutor{
	
	private CommandSign plugin;
	
	public CommandSignCommands (CommandSign plugin) {
		this.plugin = plugin;
	}

	@Override
	public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
		
		if (!(sender instanceof Player)) {
			return false;
		}
		
		return true ;
	}

}

@@ -193,16 +193,55 @@
 layer;%0A%0A
+import net.md_5.bungee.api.ChatColor;%0A%0A
 public c
@@ -555,43 +555,910 @@
 %0A%09%09%09
-return false;%0A%09%09%7D%0A%09%09%0A%09%09return true 
+sender.sendMessage(ChatColor.RED + %22You must be a played to execute this command.%22);%0A%09%09%09return false;%0A%09%09%7D%0A%09%09%0A%09%09if (args.length %3C 1 ) %7B%0A%09%09%09sender.sendMessage(ChatColor.RED + %22You need an argument to use this command.%22);%0A%09%09%09return false;%0A%09%09%7D%0A%09%09%0A%09%09String subCmd = args%5B0%5D;%0A%09%09%0A%09%09if (subCmd.equalsIgnoreCase(%22Create%22) %7C%7C subCmd.equalsIgnoreCase(%22Cr%22)) %7B%0A%09%09%09return create((Player) sender);%0A%09%09%7D%0A%09%09else if (subCmd.equalsIgnoreCase(%22Edit%22)) %7B%0A%09%09%09return edit((Player) sender);%0A%09%09%7D%0A%09%09else if (subCmd.equalsIgnoreCase(%22Delete%22) %7C%7C subCmd.equalsIgnoreCase(%22Del%22)) %7B%0A%09%09%09return delete ((Player) sender);%0A%09%09%7D%0A%09%09else %7B%0A%09%09%09sender.sendMessage(ChatColor.RED + %22Invalid Subcommand. Must be : create, edit or delete%22);%0A%09%09%09return false;%0A%09%09%7D%0A%09%7D%0A%09%0A%09%0A%09private boolean create (Player player) %7B%0A%09%09return true;%0A%09%7D%0A%09%0A%09private boolean edit (Player player) %7B%0A%09%09return true;%0A%09%7D%0A%09%0A%09private boolean delete (Player player) %7B%0A%09%09return true
 ;%0A%09%7D

Set the bases of command signs management