@Override
    public boolean onCommand(CommandSender cs, Command cmnd, String string, String[] strings) {
        if(!cs.hasPermission("dynamicmarket.admin")) {
            cs.sendMessage("You do not have permissions for this command");
            return true;
        }
        
        if(strings.length == 0)
            return true;
        
        String sub = strings[0];
        
        if(sub.equals("add") && strings.length == 7)
            addItem(cs,strings);
        else if(sub.equals("rm") && strings.length == 2)
            rmItem(cs, strings[1]);
        else if(sub.equals("list"))
            listItems(cs);
        else if(sub.equals("check") && strings.length == 2)
            checkItem(cs,strings[1]);
        
        return true;
    }