@Override
    public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args)
    {
        if (commandLabel.equalsIgnoreCase("censor"))
        {
            if (sender instanceof Player)
            {
                Player p = (Player) sender;
                if (p.hasPermission("censors.censor"))
                {
                    if (args.length != 1)
                    {
                        return false;
                    }
                    else
                    {
                        PlayerData playerdata = PlayerData.getPlayerData(p);
                        switch (args[0])
                        {
                            case "on":
                                p.sendMessage("Censor enabled.");
                                playerdata.setCensorEnabled(true);
                                return true;
                            case "off":
                                p.sendMessage("Censor disabled.");
                                playerdata.setCensorEnabled(false);
                                return true;
                        }
                    }
                }
                else
                {
                    p.sendMessage(ChatColor.RED + "You do not have permission to use this command.");
                    return true;
                }
            }
            else
            {
                sender.sendMessage("You cannot use this command from the console.");
                return true;
            }
        }
        return false;
    }